web-sys-0.3.81/.cargo_vcs_info.json0000644000000001540000000000100125160ustar { "git": { "sha1": "4ea9d98ce6448028743534ecc5584af28446fd2e" }, "path_in_vcs": "crates/web-sys" }web-sys-0.3.81/Cargo.lock0000644000000152110000000000100104710ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "bumpalo" version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" [[package]] name = "cfg-if" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" [[package]] name = "futures" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", "futures-executor", "futures-io", "futures-sink", "futures-task", "futures-util", ] [[package]] name = "futures-channel" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", ] [[package]] name = "futures-core" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", "futures-util", ] [[package]] name = "futures-io" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "futures-sink" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", "futures-io", "futures-macro", "futures-sink", "futures-task", "memchr", "pin-project-lite", "pin-utils", "slab", ] [[package]] name = "js-sys" version = "0.3.81" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec48937a97411dcb524a265206ccd4c90bb711fca92b2792c407f268825b9305" dependencies = [ "once_cell", "wasm-bindgen", ] [[package]] name = "log" version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" [[package]] name = "memchr" version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" [[package]] name = "once_cell" version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "pin-project-lite" version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "proc-macro2" version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] [[package]] name = "rustversion" version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "slab" version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" [[package]] name = "syn" version = "2.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "unicode-ident" version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d" [[package]] name = "wasm-bindgen" version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1da10c01ae9f1ae40cbfac0bac3b1e724b320abfcf52229f80b547c0d250e2d" dependencies = [ "cfg-if", "once_cell", "rustversion", "wasm-bindgen-macro", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-backend" version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "671c9a5a66f49d8a47345ab942e2cb93c7d1d0339065d4f8139c486121b43b19" dependencies = [ "bumpalo", "log", "proc-macro2", "quote", "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ca60477e4c59f5f2986c50191cd972e3a50d8a95603bc9434501cf156a9a119" dependencies = [ "quote", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f07d2f20d4da7b26400c9f4a0511e6e0345b040694e8a75bd41d578fa4421d7" dependencies = [ "proc-macro2", "quote", "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" version = "0.2.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bad67dc8b2a1a6e5448428adec4c3e84c43e561d8c9ee8a9e5aabeb193ec41d1" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" version = "0.3.81" dependencies = [ "futures", "js-sys", "wasm-bindgen", ] web-sys-0.3.81/Cargo.toml0000644000001617020000000000100105230ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.57" name = "web-sys" version = "0.3.81" authors = ["The wasm-bindgen Developers"] build = false include = [ "/LICENSE-*", "/src", ] autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = """ Bindings for all Web APIs, a procedurally generated crate from WebIDL """ homepage = "https://wasm-bindgen.github.io/wasm-bindgen/web-sys/index.html" documentation = "https://wasm-bindgen.github.io/wasm-bindgen/api/web_sys/" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/web-sys" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=web_sys_unstable_apis"] [features] AbortController = [] AbortSignal = ["EventTarget"] AddEventListenerOptions = [] AesCbcParams = [] AesCtrParams = [] AesDerivedKeyParams = [] AesGcmParams = [] AesKeyAlgorithm = [] AesKeyGenParams = [] Algorithm = [] AlignSetting = [] AllowedBluetoothDevice = [] AllowedUsbDevice = [] AlphaOption = [] AnalyserNode = [ "AudioNode", "EventTarget", ] AnalyserOptions = [] AngleInstancedArrays = [] Animation = ["EventTarget"] AnimationEffect = [] AnimationEvent = ["Event"] AnimationEventInit = [] AnimationPlayState = [] AnimationPlaybackEvent = ["Event"] AnimationPlaybackEventInit = [] AnimationPropertyDetails = [] AnimationPropertyValueDetails = [] AnimationTimeline = [] AssignedNodesOptions = [] AttestationConveyancePreference = [] Attr = [ "EventTarget", "Node", ] AttributeNameValue = [] AudioBuffer = [] AudioBufferOptions = [] AudioBufferSourceNode = [ "AudioNode", "AudioScheduledSourceNode", "EventTarget", ] AudioBufferSourceOptions = [] AudioConfiguration = [] AudioContext = [ "BaseAudioContext", "EventTarget", ] AudioContextLatencyCategory = [] AudioContextOptions = [] AudioContextState = [] AudioData = [] AudioDataCopyToOptions = [] AudioDataInit = [] AudioDecoder = [] AudioDecoderConfig = [] AudioDecoderInit = [] AudioDecoderSupport = [] AudioDestinationNode = [ "AudioNode", "EventTarget", ] AudioEncoder = [] AudioEncoderConfig = [] AudioEncoderInit = [] AudioEncoderSupport = [] AudioListener = [] AudioNode = ["EventTarget"] AudioNodeOptions = [] AudioParam = [] AudioParamMap = [] AudioProcessingEvent = ["Event"] AudioSampleFormat = [] AudioScheduledSourceNode = [ "AudioNode", "EventTarget", ] AudioSinkInfo = [] AudioSinkOptions = [] AudioSinkType = [] AudioStreamTrack = [ "EventTarget", "MediaStreamTrack", ] AudioTrack = [] AudioTrackList = ["EventTarget"] AudioWorklet = ["Worklet"] AudioWorkletGlobalScope = ["WorkletGlobalScope"] AudioWorkletNode = [ "AudioNode", "EventTarget", ] AudioWorkletNodeOptions = [] AudioWorkletProcessor = [] AuthenticationExtensionsClientInputs = [] AuthenticationExtensionsClientInputsJson = [] AuthenticationExtensionsClientOutputs = [] AuthenticationExtensionsClientOutputsJson = [] AuthenticationExtensionsDevicePublicKeyInputs = [] AuthenticationExtensionsDevicePublicKeyOutputs = [] AuthenticationExtensionsLargeBlobInputs = [] AuthenticationExtensionsLargeBlobOutputs = [] AuthenticationExtensionsPrfInputs = [] AuthenticationExtensionsPrfOutputs = [] AuthenticationExtensionsPrfValues = [] AuthenticationResponseJson = [] AuthenticatorAssertionResponse = ["AuthenticatorResponse"] AuthenticatorAssertionResponseJson = [] AuthenticatorAttachment = [] AuthenticatorAttestationResponse = ["AuthenticatorResponse"] AuthenticatorAttestationResponseJson = [] AuthenticatorResponse = [] AuthenticatorSelectionCriteria = [] AuthenticatorTransport = [] AutoKeyword = [] AutocompleteInfo = [] BarProp = [] BaseAudioContext = ["EventTarget"] BaseComputedKeyframe = [] BaseKeyframe = [] BasePropertyIndexedKeyframe = [] BasicCardRequest = [] BasicCardResponse = [] BasicCardType = [] BatteryManager = ["EventTarget"] BeforeUnloadEvent = ["Event"] BinaryType = [] BiquadFilterNode = [ "AudioNode", "EventTarget", ] BiquadFilterOptions = [] BiquadFilterType = [] Blob = [] BlobEvent = ["Event"] BlobEventInit = [] BlobPropertyBag = [] BlockParsingOptions = [] Bluetooth = ["EventTarget"] BluetoothAdvertisingEvent = ["Event"] BluetoothAdvertisingEventInit = [] BluetoothCharacteristicProperties = [] BluetoothDataFilterInit = [] BluetoothDevice = ["EventTarget"] BluetoothLeScanFilterInit = [] BluetoothManufacturerDataMap = [] BluetoothPermissionDescriptor = [] BluetoothPermissionResult = [ "EventTarget", "PermissionStatus", ] BluetoothPermissionStorage = [] BluetoothRemoteGattCharacteristic = ["EventTarget"] BluetoothRemoteGattDescriptor = [] BluetoothRemoteGattServer = [] BluetoothRemoteGattService = ["EventTarget"] BluetoothServiceDataMap = [] BluetoothUuid = [] BoxQuadOptions = [] BroadcastChannel = ["EventTarget"] BrowserElementDownloadOptions = [] BrowserElementExecuteScriptOptions = [] BrowserFeedWriter = [] BrowserFindCaseSensitivity = [] BrowserFindDirection = [] ByteLengthQueuingStrategy = [] Cache = [] CacheBatchOperation = [] CacheQueryOptions = [] CacheStorage = [] CacheStorageNamespace = [] CanvasCaptureMediaStream = [ "EventTarget", "MediaStream", ] CanvasCaptureMediaStreamTrack = [ "EventTarget", "MediaStreamTrack", ] CanvasGradient = [] CanvasPattern = [] CanvasRenderingContext2d = [] CanvasWindingRule = [] CaretChangedReason = [] CaretPosition = [] CaretStateChangedEventInit = [] CdataSection = [ "CharacterData", "EventTarget", "Node", "Text", ] ChannelCountMode = [] ChannelInterpretation = [] ChannelMergerNode = [ "AudioNode", "EventTarget", ] ChannelMergerOptions = [] ChannelSplitterNode = [ "AudioNode", "EventTarget", ] ChannelSplitterOptions = [] CharacterData = [ "EventTarget", "Node", ] CheckerboardReason = [] CheckerboardReport = [] CheckerboardReportService = [] ChromeFilePropertyBag = [] ChromeWorker = [ "EventTarget", "Worker", ] Client = [] ClientQueryOptions = [] ClientRectsAndTexts = [] ClientType = [] Clients = [] Clipboard = ["EventTarget"] ClipboardEvent = ["Event"] ClipboardEventInit = [] ClipboardItem = [] ClipboardItemOptions = [] ClipboardPermissionDescriptor = [] ClipboardUnsanitizedFormats = [] CloseEvent = ["Event"] CloseEventInit = [] CodecState = [] CollectedClientData = [] ColorSpaceConversion = [] Comment = [ "CharacterData", "EventTarget", "Node", ] CompositeOperation = [] CompositionEvent = [ "Event", "UiEvent", ] CompositionEventInit = [] CompressionFormat = [] CompressionStream = [] ComputedEffectTiming = [] ConnStatusDict = [] ConnectionType = [] ConsoleCounter = [] ConsoleCounterError = [] ConsoleEvent = [] ConsoleInstance = [] ConsoleInstanceOptions = [] ConsoleLevel = [] ConsoleLogLevel = [] ConsoleProfileEvent = [] ConsoleStackEntry = [] ConsoleTimerError = [] ConsoleTimerLogOrEnd = [] ConsoleTimerStart = [] ConstantSourceNode = [ "AudioNode", "AudioScheduledSourceNode", "EventTarget", ] ConstantSourceOptions = [] ConstrainBooleanParameters = [] ConstrainDomStringParameters = [] ConstrainDoubleRange = [] ConstrainLongRange = [] ContextAttributes2d = [] ConvertCoordinateOptions = [] ConvolverNode = [ "AudioNode", "EventTarget", ] ConvolverOptions = [] Coordinates = [] CountQueuingStrategy = [] Credential = [] CredentialCreationOptions = [] CredentialPropertiesOutput = [] CredentialRequestOptions = [] CredentialsContainer = [] Crypto = [] CryptoKey = [] CryptoKeyPair = [] CssAnimation = [ "Animation", "EventTarget", ] CssBoxType = [] 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 = ["CssRule"] CssStyleSheet = ["StyleSheet"] CssStyleSheetParsingMode = [] CssSupportsRule = [ "CssConditionRule", "CssGroupingRule", "CssRule", ] CssTransition = [ "Animation", "EventTarget", ] CustomElementRegistry = [] CustomEvent = ["Event"] CustomEventInit = [] DataTransfer = [] DataTransferItem = [] DataTransferItemList = [] DateTimeValue = [] DecoderDoctorNotification = [] DecoderDoctorNotificationType = [] DecompressionStream = [] DedicatedWorkerGlobalScope = [ "EventTarget", "WorkerGlobalScope", ] DelayNode = [ "AudioNode", "EventTarget", ] DelayOptions = [] DeviceAcceleration = [] DeviceAccelerationInit = [] DeviceLightEvent = ["Event"] DeviceLightEventInit = [] DeviceMotionEvent = ["Event"] DeviceMotionEventInit = [] DeviceOrientationEvent = ["Event"] DeviceOrientationEventInit = [] DeviceProximityEvent = ["Event"] DeviceProximityEventInit = [] DeviceRotationRate = [] DeviceRotationRateInit = [] DhKeyDeriveParams = [] DirectionSetting = [] Directory = [] DirectoryPickerOptions = [] DisplayMediaStreamConstraints = [] DisplayNameOptions = [] DisplayNameResult = [] DistanceModelType = [] DnsCacheDict = [] DnsCacheEntry = [] DnsLookupDict = [] Document = [ "EventTarget", "Node", ] DocumentFragment = [ "EventTarget", "Node", ] DocumentTimeline = ["AnimationTimeline"] DocumentTimelineOptions = [] DocumentType = [ "EventTarget", "Node", ] DomError = [] DomException = [] DomImplementation = [] DomMatrix = ["DomMatrixReadOnly"] DomMatrix2dInit = [] DomMatrixInit = [] DomMatrixReadOnly = [] DomParser = [] DomPoint = ["DomPointReadOnly"] DomPointInit = [] DomPointReadOnly = [] DomQuad = [] DomQuadInit = [] DomQuadJson = [] DomRect = ["DomRectReadOnly"] DomRectInit = [] DomRectList = [] DomRectReadOnly = [] DomRequest = ["EventTarget"] DomRequestReadyState = [] DomStringList = [] DomStringMap = [] DomTokenList = [] DomWindowResizeEventDetail = [] DoubleRange = [] DragEvent = [ "Event", "MouseEvent", "UiEvent", ] DragEventInit = [] DynamicsCompressorNode = [ "AudioNode", "EventTarget", ] DynamicsCompressorOptions = [] EcKeyAlgorithm = [] EcKeyGenParams = [] EcKeyImportParams = [] EcdhKeyDeriveParams = [] EcdsaParams = [] EffectTiming = [] Element = [ "EventTarget", "Node", ] ElementCreationOptions = [] ElementDefinitionOptions = [] EncodedAudioChunk = [] EncodedAudioChunkInit = [] EncodedAudioChunkMetadata = [] EncodedAudioChunkType = [] EncodedVideoChunk = [] EncodedVideoChunkInit = [] EncodedVideoChunkMetadata = [] EncodedVideoChunkType = [] EndingTypes = [] ErrorCallback = [] ErrorEvent = ["Event"] ErrorEventInit = [] Event = [] EventInit = [] EventListener = [] EventListenerOptions = [] EventModifierInit = [] EventSource = ["EventTarget"] EventSourceInit = [] EventTarget = [] Exception = [] ExtBlendMinmax = [] ExtColorBufferFloat = [] ExtColorBufferHalfFloat = [] ExtDisjointTimerQuery = [] ExtFragDepth = [] ExtSRgb = [] ExtShaderTextureLod = [] ExtTextureFilterAnisotropic = [] ExtTextureNorm16 = [] ExtendableEvent = ["Event"] ExtendableEventInit = [] ExtendableMessageEvent = [ "Event", "ExtendableEvent", ] ExtendableMessageEventInit = [] External = [] FakePluginMimeEntry = [] FakePluginTagInit = [] FetchEvent = [ "Event", "ExtendableEvent", ] FetchEventInit = [] FetchObserver = ["EventTarget"] FetchReadableStreamReadDataArray = [] FetchReadableStreamReadDataDone = [] FetchState = [] File = ["Blob"] FileCallback = [] FileList = [] FilePickerAcceptType = [] FilePickerOptions = [] FilePropertyBag = [] FileReader = ["EventTarget"] FileReaderSync = [] FileSystem = [] FileSystemCreateWritableOptions = [] FileSystemDirectoryEntry = ["FileSystemEntry"] FileSystemDirectoryHandle = ["FileSystemHandle"] FileSystemDirectoryReader = [] FileSystemEntriesCallback = [] FileSystemEntry = [] FileSystemEntryCallback = [] FileSystemFileEntry = ["FileSystemEntry"] FileSystemFileHandle = ["FileSystemHandle"] FileSystemFlags = [] FileSystemGetDirectoryOptions = [] FileSystemGetFileOptions = [] FileSystemHandle = [] FileSystemHandleKind = [] FileSystemHandlePermissionDescriptor = [] FileSystemPermissionDescriptor = [] FileSystemPermissionMode = [] FileSystemReadWriteOptions = [] FileSystemRemoveOptions = [] FileSystemSyncAccessHandle = [] FileSystemWritableFileStream = ["WritableStream"] FillMode = [] FlashClassification = [] FlowControlType = [] FocusEvent = [ "Event", "UiEvent", ] FocusEventInit = [] FocusOptions = [] FontData = [] FontFace = [] FontFaceDescriptors = [] FontFaceLoadStatus = [] FontFaceSet = ["EventTarget"] FontFaceSetIterator = [] FontFaceSetIteratorResult = [] FontFaceSetLoadEvent = ["Event"] FontFaceSetLoadEventInit = [] FontFaceSetLoadStatus = [] FormData = [] FrameType = [] FuzzingFunctions = [] GainNode = [ "AudioNode", "EventTarget", ] GainOptions = [] Gamepad = [] GamepadButton = [] GamepadEffectParameters = [] GamepadEvent = ["Event"] GamepadEventInit = [] GamepadHand = [] GamepadHapticActuator = [] GamepadHapticActuatorType = [] GamepadHapticEffectType = [] GamepadHapticsResult = [] GamepadMappingType = [] GamepadPose = [] GamepadTouch = [] Geolocation = [] GestureEvent = [ "Event", "UiEvent", ] GetAnimationsOptions = [] GetRootNodeOptions = [] GetUserMediaRequest = [] Gpu = [] GpuAdapter = [] GpuAdapterInfo = [] GpuAddressMode = [] GpuAutoLayoutMode = [] GpuBindGroup = [] GpuBindGroupDescriptor = [] GpuBindGroupEntry = [] GpuBindGroupLayout = [] GpuBindGroupLayoutDescriptor = [] GpuBindGroupLayoutEntry = [] GpuBlendComponent = [] GpuBlendFactor = [] GpuBlendOperation = [] GpuBlendState = [] GpuBuffer = [] GpuBufferBinding = [] GpuBufferBindingLayout = [] GpuBufferBindingType = [] GpuBufferDescriptor = [] GpuBufferMapState = [] GpuCanvasAlphaMode = [] GpuCanvasConfiguration = [] GpuCanvasContext = [] GpuCanvasToneMapping = [] GpuCanvasToneMappingMode = [] GpuColorDict = [] GpuColorTargetState = [] GpuCommandBuffer = [] GpuCommandBufferDescriptor = [] GpuCommandEncoder = [] GpuCommandEncoderDescriptor = [] GpuCompareFunction = [] GpuCompilationInfo = [] GpuCompilationMessage = [] GpuCompilationMessageType = [] GpuComputePassDescriptor = [] GpuComputePassEncoder = [] GpuComputePassTimestampWrites = [] GpuComputePipeline = [] GpuComputePipelineDescriptor = [] GpuCopyExternalImageDestInfo = [] GpuCopyExternalImageSourceInfo = [] GpuCullMode = [] GpuDepthStencilState = [] GpuDevice = ["EventTarget"] GpuDeviceDescriptor = [] GpuDeviceLostInfo = [] GpuDeviceLostReason = [] GpuError = [] GpuErrorFilter = [] GpuExtent3dDict = [] GpuExternalTexture = [] GpuExternalTextureBindingLayout = [] GpuExternalTextureDescriptor = [] GpuFeatureName = [] GpuFilterMode = [] GpuFragmentState = [] GpuFrontFace = [] GpuIndexFormat = [] GpuInternalError = ["GpuError"] GpuLoadOp = [] GpuMipmapFilterMode = [] GpuMultisampleState = [] GpuObjectDescriptorBase = [] GpuOrigin2dDict = [] GpuOrigin3dDict = [] GpuOutOfMemoryError = ["GpuError"] GpuPipelineDescriptorBase = [] GpuPipelineError = ["DomException"] GpuPipelineErrorInit = [] GpuPipelineErrorReason = [] GpuPipelineLayout = [] GpuPipelineLayoutDescriptor = [] GpuPowerPreference = [] GpuPrimitiveState = [] GpuPrimitiveTopology = [] GpuProgrammableStage = [] GpuQuerySet = [] GpuQuerySetDescriptor = [] GpuQueryType = [] GpuQueue = [] GpuQueueDescriptor = [] GpuRenderBundle = [] GpuRenderBundleDescriptor = [] GpuRenderBundleEncoder = [] GpuRenderBundleEncoderDescriptor = [] GpuRenderPassColorAttachment = [] GpuRenderPassDepthStencilAttachment = [] GpuRenderPassDescriptor = [] GpuRenderPassEncoder = [] GpuRenderPassLayout = [] GpuRenderPassTimestampWrites = [] GpuRenderPipeline = [] GpuRenderPipelineDescriptor = [] GpuRequestAdapterOptions = [] GpuSampler = [] GpuSamplerBindingLayout = [] GpuSamplerBindingType = [] GpuSamplerDescriptor = [] GpuShaderModule = [] GpuShaderModuleCompilationHint = [] GpuShaderModuleDescriptor = [] GpuStencilFaceState = [] GpuStencilOperation = [] GpuStorageTextureAccess = [] GpuStorageTextureBindingLayout = [] GpuStoreOp = [] GpuSupportedFeatures = [] GpuSupportedLimits = [] GpuTexelCopyBufferInfo = [] GpuTexelCopyBufferLayout = [] GpuTexelCopyTextureInfo = [] GpuTexture = [] GpuTextureAspect = [] GpuTextureBindingLayout = [] GpuTextureDescriptor = [] GpuTextureDimension = [] GpuTextureFormat = [] GpuTextureSampleType = [] GpuTextureView = [] GpuTextureViewDescriptor = [] GpuTextureViewDimension = [] GpuUncapturedErrorEvent = ["Event"] GpuUncapturedErrorEventInit = [] GpuValidationError = ["GpuError"] GpuVertexAttribute = [] GpuVertexBufferLayout = [] GpuVertexFormat = [] GpuVertexState = [] GpuVertexStepMode = [] GroupedHistoryEventInit = [] HalfOpenInfoDict = [] HardwareAcceleration = [] HashChangeEvent = ["Event"] HashChangeEventInit = [] Headers = [] HeadersGuardEnum = [] Hid = ["EventTarget"] HidCollectionInfo = [] HidConnectionEvent = ["Event"] HidConnectionEventInit = [] HidDevice = ["EventTarget"] HidDeviceFilter = [] HidDeviceRequestOptions = [] HidInputReportEvent = ["Event"] HidInputReportEventInit = [] HidReportInfo = [] HidReportItem = [] HidUnitSystem = [] HiddenPluginEventInit = [] History = [] HitRegionOptions = [] HkdfParams = [] HmacDerivedKeyParams = [] HmacImportParams = [] HmacKeyAlgorithm = [] HmacKeyGenParams = [] HtmlAllCollection = [] 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 = [ "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 = ["IdbCursor"] IdbDatabase = ["EventTarget"] IdbFactory = [] IdbFileHandle = ["EventTarget"] IdbFileMetadataParameters = [] IdbFileRequest = [ "DomRequest", "EventTarget", ] IdbIndex = [] IdbIndexParameters = [] IdbKeyRange = [] IdbLocaleAwareKeyRange = ["IdbKeyRange"] IdbMutableFile = ["EventTarget"] IdbObjectStore = [] IdbObjectStoreParameters = [] IdbOpenDbOptions = [] IdbOpenDbRequest = [ "EventTarget", "IdbRequest", ] IdbRequest = ["EventTarget"] IdbRequestReadyState = [] IdbTransaction = ["EventTarget"] IdbTransactionDurability = [] IdbTransactionMode = [] IdbTransactionOptions = [] IdbVersionChangeEvent = ["Event"] IdbVersionChangeEventInit = [] IdleDeadline = [] IdleRequestOptions = [] IirFilterNode = [ "AudioNode", "EventTarget", ] IirFilterOptions = [] ImageBitmap = [] ImageBitmapOptions = [] ImageBitmapRenderingContext = [] ImageCapture = [] ImageCaptureError = [] ImageCaptureErrorEvent = ["Event"] ImageCaptureErrorEventInit = [] ImageData = [] ImageDecodeOptions = [] ImageDecodeResult = [] ImageDecoder = [] ImageDecoderInit = [] ImageEncodeOptions = [] ImageOrientation = [] ImageTrack = ["EventTarget"] ImageTrackList = [] InputDeviceInfo = ["MediaDeviceInfo"] InputEvent = [ "Event", "UiEvent", ] InputEventInit = [] IntersectionObserver = [] IntersectionObserverEntry = [] IntersectionObserverEntryInit = [] IntersectionObserverInit = [] IntlUtils = [] IsInputPendingOptions = [] IterableKeyAndValueResult = [] IterableKeyOrValueResult = [] IterationCompositeOperation = [] JsonWebKey = [] KeyAlgorithm = [] KeyEvent = [] KeyFrameRequestEvent = ["Event"] KeyIdsInitData = [] KeyboardEvent = [ "Event", "UiEvent", ] KeyboardEventInit = [] KeyframeAnimationOptions = [] KeyframeEffect = ["AnimationEffect"] KeyframeEffectOptions = [] L10nElement = [] L10nValue = [] LargeBlobSupport = [] LatencyMode = [] LifecycleCallbacks = [] LineAlignSetting = [] ListBoxObject = [] LocalMediaStream = [ "EventTarget", "MediaStream", ] LocaleInfo = [] Location = [] Lock = [] LockInfo = [] LockManager = [] LockManagerSnapshot = [] LockMode = [] LockOptions = [] MathMlElement = [ "Element", "EventTarget", "Node", ] MediaCapabilities = [] MediaCapabilitiesInfo = [] MediaConfiguration = [] MediaDecodingConfiguration = [] MediaDecodingType = [] MediaDeviceInfo = [] MediaDeviceKind = [] MediaDevices = ["EventTarget"] MediaElementAudioSourceNode = [ "AudioNode", "EventTarget", ] MediaElementAudioSourceOptions = [] MediaEncodingConfiguration = [] MediaEncodingType = [] MediaEncryptedEvent = ["Event"] MediaError = [] MediaImage = [] MediaKeyError = ["Event"] MediaKeyMessageEvent = ["Event"] MediaKeyMessageEventInit = [] MediaKeyMessageType = [] MediaKeyNeededEventInit = [] MediaKeySession = ["EventTarget"] MediaKeySessionType = [] MediaKeyStatus = [] MediaKeyStatusMap = [] MediaKeySystemAccess = [] MediaKeySystemConfiguration = [] MediaKeySystemMediaCapability = [] MediaKeySystemStatus = [] MediaKeys = [] MediaKeysPolicy = [] MediaKeysRequirement = [] MediaList = [] MediaMetadata = [] MediaMetadataInit = [] MediaPositionState = [] MediaQueryList = ["EventTarget"] MediaQueryListEvent = ["Event"] MediaQueryListEventInit = [] MediaRecorder = ["EventTarget"] MediaRecorderErrorEvent = ["Event"] MediaRecorderErrorEventInit = [] MediaRecorderOptions = [] MediaSession = [] MediaSessionAction = [] MediaSessionActionDetails = [] MediaSessionPlaybackState = [] MediaSource = ["EventTarget"] MediaSourceEndOfStreamError = [] MediaSourceEnum = [] MediaSourceReadyState = [] MediaStream = ["EventTarget"] MediaStreamAudioDestinationNode = [ "AudioNode", "EventTarget", ] MediaStreamAudioSourceNode = [ "AudioNode", "EventTarget", ] MediaStreamAudioSourceOptions = [] MediaStreamConstraints = [] MediaStreamError = [] MediaStreamEvent = ["Event"] MediaStreamEventInit = [] MediaStreamTrack = ["EventTarget"] MediaStreamTrackEvent = ["Event"] MediaStreamTrackEventInit = [] MediaStreamTrackGenerator = [ "EventTarget", "MediaStreamTrack", ] MediaStreamTrackGeneratorInit = [] MediaStreamTrackProcessor = [] MediaStreamTrackProcessorInit = [] MediaStreamTrackState = [] MediaTrackCapabilities = [] MediaTrackConstraintSet = [] MediaTrackConstraints = [] MediaTrackSettings = [] MediaTrackSupportedConstraints = [] MemoryAttribution = [] MemoryAttributionContainer = [] MemoryBreakdownEntry = [] MemoryMeasurement = [] MessageChannel = [] MessageEvent = ["Event"] MessageEventInit = [] MessagePort = ["EventTarget"] MidiAccess = ["EventTarget"] MidiConnectionEvent = ["Event"] MidiConnectionEventInit = [] MidiInput = [ "EventTarget", "MidiPort", ] MidiInputMap = [] MidiMessageEvent = ["Event"] MidiMessageEventInit = [] MidiOptions = [] MidiOutput = [ "EventTarget", "MidiPort", ] MidiOutputMap = [] MidiPort = ["EventTarget"] MidiPortConnectionState = [] MidiPortDeviceState = [] MidiPortType = [] MimeType = [] MimeTypeArray = [] MouseEvent = [ "Event", "UiEvent", ] MouseEventInit = [] MouseScrollEvent = [ "Event", "MouseEvent", "UiEvent", ] MozDebug = [] MutationEvent = ["Event"] MutationObserver = [] MutationObserverInit = [] MutationObservingInfo = [] MutationRecord = [] NamedNodeMap = [] NativeOsFileReadOptions = [] NativeOsFileWriteAtomicOptions = [] NavigationType = [] Navigator = [] NavigatorAutomationInformation = [] NavigatorUaBrandVersion = [] NavigatorUaData = [] NetworkCommandOptions = [] NetworkInformation = ["EventTarget"] NetworkResultOptions = [] Node = ["EventTarget"] NodeFilter = [] NodeIterator = [] NodeList = [] Notification = ["EventTarget"] NotificationAction = [] NotificationDirection = [] NotificationEvent = [ "Event", "ExtendableEvent", ] NotificationEventInit = [] NotificationOptions = [] NotificationPermission = [] ObserverCallback = [] OesElementIndexUint = [] OesStandardDerivatives = [] OesTextureFloat = [] OesTextureFloatLinear = [] OesTextureHalfFloat = [] OesTextureHalfFloatLinear = [] OesVertexArrayObject = [] OfflineAudioCompletionEvent = ["Event"] OfflineAudioCompletionEventInit = [] OfflineAudioContext = [ "BaseAudioContext", "EventTarget", ] OfflineAudioContextOptions = [] OfflineResourceList = ["EventTarget"] OffscreenCanvas = ["EventTarget"] OffscreenCanvasRenderingContext2d = [] OpenFilePickerOptions = [] OpenWindowEventDetail = [] OptionalEffectTiming = [] OrientationLockType = [] OrientationType = [] OscillatorNode = [ "AudioNode", "AudioScheduledSourceNode", "EventTarget", ] OscillatorOptions = [] OscillatorType = [] OverSampleType = [] OvrMultiview2 = [] PageTransitionEvent = ["Event"] PageTransitionEventInit = [] PaintRequest = [] PaintRequestList = [] PaintWorkletGlobalScope = ["WorkletGlobalScope"] PannerNode = [ "AudioNode", "EventTarget", ] PannerOptions = [] PanningModelType = [] ParityType = [] Path2d = [] PaymentAddress = [] PaymentComplete = [] PaymentMethodChangeEvent = [ "Event", "PaymentRequestUpdateEvent", ] PaymentMethodChangeEventInit = [] PaymentRequestUpdateEvent = ["Event"] PaymentRequestUpdateEventInit = [] PaymentResponse = [] Pbkdf2Params = [] PcImplIceConnectionState = [] PcImplIceGatheringState = [] PcImplSignalingState = [] PcObserverStateType = [] Performance = ["EventTarget"] PerformanceEntry = [] PerformanceEntryEventInit = [] PerformanceEntryFilterOptions = [] PerformanceMark = ["PerformanceEntry"] PerformanceMeasure = ["PerformanceEntry"] PerformanceNavigation = [] PerformanceNavigationTiming = [ "PerformanceEntry", "PerformanceResourceTiming", ] PerformanceObserver = [] PerformanceObserverEntryList = [] PerformanceObserverInit = [] PerformanceResourceTiming = ["PerformanceEntry"] PerformanceServerTiming = [] PerformanceTiming = [] PeriodicWave = [] PeriodicWaveConstraints = [] PeriodicWaveOptions = [] PermissionDescriptor = [] PermissionName = [] PermissionState = [] PermissionStatus = ["EventTarget"] Permissions = [] PictureInPictureEvent = ["Event"] PictureInPictureEventInit = [] PictureInPictureWindow = ["EventTarget"] PlaneLayout = [] PlaybackDirection = [] Plugin = [] PluginArray = [] PluginCrashedEventInit = [] PointerEvent = [ "Event", "MouseEvent", "UiEvent", ] PointerEventInit = [] PopStateEvent = ["Event"] PopStateEventInit = [] PopupBlockedEvent = ["Event"] PopupBlockedEventInit = [] Position = [] PositionAlignSetting = [] PositionError = [] PositionOptions = [] PremultiplyAlpha = [] Presentation = [] PresentationAvailability = ["EventTarget"] PresentationConnection = ["EventTarget"] PresentationConnectionAvailableEvent = ["Event"] PresentationConnectionAvailableEventInit = [] PresentationConnectionBinaryType = [] PresentationConnectionCloseEvent = ["Event"] PresentationConnectionCloseEventInit = [] PresentationConnectionClosedReason = [] PresentationConnectionList = ["EventTarget"] PresentationConnectionState = [] PresentationReceiver = [] PresentationRequest = ["EventTarget"] PresentationStyle = [] ProcessingInstruction = [ "CharacterData", "EventTarget", "Node", ] ProfileTimelineLayerRect = [] ProfileTimelineMarker = [] ProfileTimelineMessagePortOperationType = [] ProfileTimelineStackFrame = [] ProfileTimelineWorkerOperationType = [] ProgressEvent = ["Event"] ProgressEventInit = [] PromiseNativeHandler = [] PromiseRejectionEvent = ["Event"] PromiseRejectionEventInit = [] PublicKeyCredential = ["Credential"] PublicKeyCredentialCreationOptions = [] PublicKeyCredentialCreationOptionsJson = [] PublicKeyCredentialDescriptor = [] PublicKeyCredentialDescriptorJson = [] PublicKeyCredentialEntity = [] PublicKeyCredentialHints = [] PublicKeyCredentialParameters = [] PublicKeyCredentialRequestOptions = [] PublicKeyCredentialRequestOptionsJson = [] PublicKeyCredentialRpEntity = [] PublicKeyCredentialType = [] PublicKeyCredentialUserEntity = [] PublicKeyCredentialUserEntityJson = [] PushEncryptionKeyName = [] PushEvent = [ "Event", "ExtendableEvent", ] PushEventInit = [] PushManager = [] PushMessageData = [] PushPermissionState = [] PushSubscription = [] PushSubscriptionInit = [] PushSubscriptionJson = [] PushSubscriptionKeys = [] PushSubscriptionOptions = [] PushSubscriptionOptionsInit = [] QueryOptions = [] QueuingStrategy = [] QueuingStrategyInit = [] RadioNodeList = ["NodeList"] Range = [] RcwnPerfStats = [] RcwnStatus = [] ReadableByteStreamController = [] ReadableStream = [] ReadableStreamByobReader = [] ReadableStreamByobRequest = [] ReadableStreamDefaultController = [] ReadableStreamDefaultReader = [] ReadableStreamGetReaderOptions = [] ReadableStreamIteratorOptions = [] ReadableStreamReadResult = [] ReadableStreamReaderMode = [] ReadableStreamType = [] ReadableWritablePair = [] RecordingState = [] ReferrerPolicy = [] RegisterRequest = [] RegisterResponse = [] RegisteredKey = [] RegistrationOptions = [] RegistrationResponseJson = [] Request = [] RequestCache = [] RequestCredentials = [] RequestDestination = [] RequestDeviceOptions = [] RequestInit = [] RequestMediaKeySystemAccessNotification = [] RequestMode = [] RequestRedirect = [] ResidentKeyRequirement = [] ResizeObserver = [] ResizeObserverBoxOptions = [] ResizeObserverEntry = [] ResizeObserverOptions = [] ResizeObserverSize = [] ResizeQuality = [] Response = [] ResponseInit = [] ResponseType = [] RsaHashedImportParams = [] RsaOaepParams = [] RsaOtherPrimesInfo = [] RsaPssParams = [] RtcAnswerOptions = [] RtcBundlePolicy = [] RtcCertificate = [] RtcCertificateExpiration = [] RtcCodecStats = [] RtcConfiguration = [] RtcDataChannel = ["EventTarget"] RtcDataChannelEvent = ["Event"] RtcDataChannelEventInit = [] RtcDataChannelInit = [] RtcDataChannelState = [] RtcDataChannelType = [] RtcDegradationPreference = [] RtcEncodedAudioFrame = [] RtcEncodedAudioFrameMetadata = [] RtcEncodedAudioFrameOptions = [] RtcEncodedVideoFrame = [] RtcEncodedVideoFrameMetadata = [] RtcEncodedVideoFrameOptions = [] RtcEncodedVideoFrameType = [] RtcFecParameters = [] RtcIceCandidate = [] RtcIceCandidateInit = [] RtcIceCandidatePairStats = [] RtcIceCandidateStats = [] RtcIceComponentStats = [] RtcIceConnectionState = [] RtcIceCredentialType = [] RtcIceGatheringState = [] RtcIceServer = [] RtcIceTransportPolicy = [] RtcIdentityAssertion = [] RtcIdentityAssertionResult = [] RtcIdentityProvider = [] RtcIdentityProviderDetails = [] RtcIdentityProviderOptions = [] RtcIdentityProviderRegistrar = [] RtcIdentityValidationResult = [] RtcInboundRtpStreamStats = [] RtcMediaStreamStats = [] RtcMediaStreamTrackStats = [] RtcOfferAnswerOptions = [] RtcOfferOptions = [] RtcOutboundRtpStreamStats = [] RtcPeerConnection = ["EventTarget"] RtcPeerConnectionIceErrorEvent = ["Event"] RtcPeerConnectionIceEvent = ["Event"] RtcPeerConnectionIceEventInit = [] RtcPeerConnectionState = [] RtcPriorityType = [] RtcRtcpParameters = [] RtcRtpCapabilities = [] RtcRtpCodecCapability = [] RtcRtpCodecParameters = [] RtcRtpContributingSource = [] RtcRtpEncodingParameters = [] RtcRtpHeaderExtensionCapability = [] RtcRtpHeaderExtensionParameters = [] RtcRtpParameters = [] RtcRtpReceiver = [] RtcRtpScriptTransform = [] RtcRtpScriptTransformer = ["EventTarget"] RtcRtpSender = [] RtcRtpSourceEntry = [] RtcRtpSourceEntryType = [] RtcRtpSynchronizationSource = [] RtcRtpTransceiver = [] RtcRtpTransceiverDirection = [] RtcRtpTransceiverInit = [] RtcRtxParameters = [] RtcSdpType = [] RtcSessionDescription = [] RtcSessionDescriptionInit = [] RtcSignalingState = [] RtcStats = [] RtcStatsIceCandidatePairState = [] RtcStatsIceCandidateType = [] RtcStatsReport = [] RtcStatsReportInternal = [] RtcStatsType = [] RtcTrackEvent = ["Event"] RtcTrackEventInit = [] RtcTransformEvent = ["Event"] RtcTransportStats = [] RtcdtmfSender = ["EventTarget"] RtcdtmfToneChangeEvent = ["Event"] RtcdtmfToneChangeEventInit = [] RtcrtpContributingSourceStats = [] RtcrtpStreamStats = [] SFrameTransform = ["EventTarget"] SFrameTransformErrorEvent = ["Event"] SFrameTransformErrorEventInit = [] SFrameTransformErrorEventType = [] SFrameTransformOptions = [] SFrameTransformRole = [] SaveFilePickerOptions = [] Scheduler = [] SchedulerPostTaskOptions = [] Scheduling = [] Screen = ["EventTarget"] ScreenColorGamut = [] ScreenLuminance = [] ScreenOrientation = ["EventTarget"] ScriptProcessorNode = [ "AudioNode", "EventTarget", ] ScrollAreaEvent = [ "Event", "UiEvent", ] ScrollBehavior = [] ScrollBoxObject = [] ScrollIntoViewOptions = [] ScrollLogicalPosition = [] ScrollOptions = [] ScrollRestoration = [] ScrollSetting = [] ScrollState = [] ScrollToOptions = [] ScrollViewChangeEventInit = [] SecurityPolicyViolationEvent = ["Event"] SecurityPolicyViolationEventDisposition = [] SecurityPolicyViolationEventInit = [] Selection = [] SelectionMode = [] Serial = ["EventTarget"] SerialInputSignals = [] SerialOptions = [] SerialOutputSignals = [] SerialPort = ["EventTarget"] SerialPortFilter = [] SerialPortInfo = [] SerialPortRequestOptions = [] ServerSocketOptions = [] ServiceWorker = ["EventTarget"] ServiceWorkerContainer = ["EventTarget"] ServiceWorkerGlobalScope = [ "EventTarget", "WorkerGlobalScope", ] ServiceWorkerRegistration = ["EventTarget"] ServiceWorkerState = [] ServiceWorkerUpdateViaCache = [] ShadowRoot = [ "DocumentFragment", "EventTarget", "Node", ] ShadowRootInit = [] ShadowRootMode = [] ShareData = [] SharedWorker = ["EventTarget"] SharedWorkerGlobalScope = [ "EventTarget", "WorkerGlobalScope", ] SignResponse = [] SocketElement = [] SocketOptions = [] SocketReadyState = [] SocketsDict = [] SourceBuffer = ["EventTarget"] SourceBufferAppendMode = [] SourceBufferList = ["EventTarget"] SpeechGrammar = [] SpeechGrammarList = [] SpeechRecognition = ["EventTarget"] SpeechRecognitionAlternative = [] SpeechRecognitionError = ["Event"] SpeechRecognitionErrorCode = [] SpeechRecognitionErrorInit = [] SpeechRecognitionEvent = ["Event"] SpeechRecognitionEventInit = [] SpeechRecognitionResult = [] SpeechRecognitionResultList = [] SpeechSynthesis = ["EventTarget"] SpeechSynthesisErrorCode = [] SpeechSynthesisErrorEvent = [ "Event", "SpeechSynthesisEvent", ] SpeechSynthesisErrorEventInit = [] SpeechSynthesisEvent = ["Event"] SpeechSynthesisEventInit = [] SpeechSynthesisUtterance = ["EventTarget"] SpeechSynthesisVoice = [] StereoPannerNode = [ "AudioNode", "EventTarget", ] StereoPannerOptions = [] Storage = [] StorageEstimate = [] StorageEvent = ["Event"] StorageEventInit = [] StorageManager = [] StorageType = [] StreamPipeOptions = [] StyleRuleChangeEventInit = [] StyleSheet = [] StyleSheetApplicableStateChangeEventInit = [] StyleSheetChangeEventInit = [] StyleSheetList = [] SubmitEvent = ["Event"] SubmitEventInit = [] SubtleCrypto = [] SupportedType = [] SvcOutputMetadata = [] SvgAngle = [] SvgAnimateElement = [ "Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement", ] SvgAnimateMotionElement = [ "Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement", ] SvgAnimateTransformElement = [ "Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement", ] SvgAnimatedAngle = [] SvgAnimatedBoolean = [] SvgAnimatedEnumeration = [] SvgAnimatedInteger = [] SvgAnimatedLength = [] SvgAnimatedLengthList = [] SvgAnimatedNumber = [] SvgAnimatedNumberList = [] SvgAnimatedPreserveAspectRatio = [] SvgAnimatedRect = [] SvgAnimatedString = [] SvgAnimatedTransformList = [] SvgAnimationElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgBoundingBoxOptions = [] 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 = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement", ] SvgLinearGradientElement = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement", ] SvgMarkerElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgMaskElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgMatrix = [] SvgMetadataElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgNumber = [] SvgNumberList = [] SvgPathElement = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement", ] SvgPathSeg = [] 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 = ["SvgPathSeg"] SvgPathSegMovetoRel = ["SvgPathSeg"] SvgPatternElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgPoint = [] SvgPointList = [] SvgPolygonElement = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement", ] SvgPolylineElement = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement", ] SvgPreserveAspectRatio = [] SvgRadialGradientElement = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement", ] SvgRect = [] 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 = [ "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 = [ "Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement", ] SvgViewElement = [ "Element", "EventTarget", "Node", "SvgElement", ] SvgZoomAndPan = [] 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", ] TaskController = ["AbortController"] TaskControllerInit = [] TaskPriority = [] TaskPriorityChangeEvent = ["Event"] TaskPriorityChangeEventInit = [] TaskSignal = [ "AbortSignal", "EventTarget", ] TaskSignalAnyInit = [] TcpReadyState = [] TcpServerSocket = ["EventTarget"] TcpServerSocketEvent = ["Event"] TcpServerSocketEventInit = [] TcpSocket = ["EventTarget"] TcpSocketBinaryType = [] TcpSocketErrorEvent = ["Event"] TcpSocketErrorEventInit = [] TcpSocketEvent = ["Event"] TcpSocketEventInit = [] Text = [ "CharacterData", "EventTarget", "Node", ] TextDecodeOptions = [] TextDecoder = [] TextDecoderOptions = [] TextEncoder = [] TextMetrics = [] TextTrack = ["EventTarget"] TextTrackCue = ["EventTarget"] TextTrackCueList = [] TextTrackKind = [] TextTrackList = ["EventTarget"] TextTrackMode = [] TimeEvent = ["Event"] TimeRanges = [] ToggleEvent = ["Event"] ToggleEventInit = [] TokenBinding = [] TokenBindingStatus = [] Touch = [] TouchEvent = [ "Event", "UiEvent", ] TouchEventInit = [] TouchInit = [] TouchList = [] TrackEvent = ["Event"] TrackEventInit = [] TransformStream = [] TransformStreamDefaultController = [] Transformer = [] TransitionEvent = ["Event"] TransitionEventInit = [] Transport = [] TreeBoxObject = [] TreeCellInfo = [] TreeView = [] TreeWalker = [] U2f = [] U2fClientData = [] ULongRange = [] UaDataValues = [] UaLowEntropyJson = [] UdpMessageEventInit = [] UdpOptions = [] UiEvent = ["Event"] UiEventInit = [] UnderlyingSink = [] UnderlyingSource = [] Url = [] UrlSearchParams = [] Usb = ["EventTarget"] UsbAlternateInterface = [] UsbConfiguration = [] UsbConnectionEvent = ["Event"] UsbConnectionEventInit = [] UsbControlTransferParameters = [] UsbDevice = [] UsbDeviceFilter = [] UsbDeviceRequestOptions = [] UsbDirection = [] UsbEndpoint = [] UsbEndpointType = [] UsbInTransferResult = [] UsbInterface = [] UsbIsochronousInTransferPacket = [] UsbIsochronousInTransferResult = [] UsbIsochronousOutTransferPacket = [] UsbIsochronousOutTransferResult = [] UsbOutTransferResult = [] UsbPermissionDescriptor = [] UsbPermissionResult = [ "EventTarget", "PermissionStatus", ] UsbPermissionStorage = [] UsbRecipient = [] UsbRequestType = [] UsbTransferStatus = [] UserActivation = [] UserProximityEvent = ["Event"] UserProximityEventInit = [] UserVerificationRequirement = [] ValidityState = [] ValueEvent = ["Event"] ValueEventInit = [] VideoColorPrimaries = [] VideoColorSpace = [] VideoColorSpaceInit = [] VideoConfiguration = [] VideoDecoder = [] VideoDecoderConfig = [] VideoDecoderInit = [] VideoDecoderSupport = [] VideoEncoder = [] VideoEncoderConfig = [] VideoEncoderEncodeOptions = [] VideoEncoderInit = [] VideoEncoderSupport = [] VideoFacingModeEnum = [] VideoFrame = [] VideoFrameBufferInit = [] VideoFrameCopyToOptions = [] VideoFrameInit = [] VideoMatrixCoefficients = [] VideoPixelFormat = [] VideoPlaybackQuality = [] VideoStreamTrack = [ "EventTarget", "MediaStreamTrack", ] VideoTrack = [] VideoTrackList = ["EventTarget"] VideoTransferCharacteristics = [] ViewTransition = [] VisibilityState = [] VisualViewport = ["EventTarget"] VoidCallback = [] VrDisplay = ["EventTarget"] VrDisplayCapabilities = [] VrEye = [] VrEyeParameters = [] VrFieldOfView = [] VrFrameData = [] VrLayer = [] VrMockController = [] VrMockDisplay = [] VrPose = [] VrServiceTest = [] VrStageParameters = [] VrSubmitFrameResult = [] VttCue = [ "EventTarget", "TextTrackCue", ] VttRegion = [] WakeLock = [] WakeLockSentinel = ["EventTarget"] WakeLockType = [] WatchAdvertisementsOptions = [] WaveShaperNode = [ "AudioNode", "EventTarget", ] WaveShaperOptions = [] WebGl2RenderingContext = [] WebGlActiveInfo = [] WebGlBuffer = [] WebGlContextAttributes = [] WebGlContextEvent = ["Event"] WebGlContextEventInit = [] WebGlFramebuffer = [] WebGlPowerPreference = [] WebGlProgram = [] WebGlQuery = [] WebGlRenderbuffer = [] WebGlRenderingContext = [] WebGlSampler = [] WebGlShader = [] WebGlShaderPrecisionFormat = [] WebGlSync = [] WebGlTexture = [] WebGlTransformFeedback = [] WebGlUniformLocation = [] WebGlVertexArrayObject = [] WebKitCssMatrix = [ "DomMatrix", "DomMatrixReadOnly", ] WebSocket = ["EventTarget"] WebSocketDict = [] WebSocketElement = [] WebTransport = [] WebTransportBidirectionalStream = [] WebTransportCloseInfo = [] WebTransportCongestionControl = [] WebTransportDatagramDuplexStream = [] WebTransportDatagramStats = [] WebTransportError = ["DomException"] WebTransportErrorOptions = [] WebTransportErrorSource = [] WebTransportHash = [] WebTransportOptions = [] WebTransportReceiveStream = ["ReadableStream"] WebTransportReceiveStreamStats = [] WebTransportReliabilityMode = [] WebTransportSendStream = ["WritableStream"] WebTransportSendStreamOptions = [] WebTransportSendStreamStats = [] WebTransportStats = [] WebglColorBufferFloat = [] WebglCompressedTextureAstc = [] WebglCompressedTextureAtc = [] WebglCompressedTextureEtc = [] WebglCompressedTextureEtc1 = [] WebglCompressedTexturePvrtc = [] WebglCompressedTextureS3tc = [] WebglCompressedTextureS3tcSrgb = [] WebglDebugRendererInfo = [] WebglDebugShaders = [] WebglDepthTexture = [] WebglDrawBuffers = [] WebglLoseContext = [] WebglMultiDraw = [] WellKnownDirectory = [] WgslLanguageFeatures = [] WheelEvent = [ "Event", "MouseEvent", "UiEvent", ] WheelEventInit = [] WidevineCdmManifest = [] Window = ["EventTarget"] WindowClient = ["Client"] Worker = ["EventTarget"] WorkerDebuggerGlobalScope = ["EventTarget"] WorkerGlobalScope = ["EventTarget"] WorkerLocation = [] WorkerNavigator = [] WorkerOptions = [] WorkerType = [] Worklet = [] WorkletGlobalScope = [] WorkletOptions = [] WritableStream = [] WritableStreamDefaultController = [] WritableStreamDefaultWriter = [] WriteCommandType = [] WriteParams = [] XPathExpression = [] XPathNsResolver = [] XPathResult = [] XmlDocument = [ "Document", "EventTarget", "Node", ] XmlHttpRequest = [ "EventTarget", "XmlHttpRequestEventTarget", ] XmlHttpRequestEventTarget = ["EventTarget"] XmlHttpRequestResponseType = [] XmlHttpRequestUpload = [ "EventTarget", "XmlHttpRequestEventTarget", ] XmlSerializer = [] XrBoundedReferenceSpace = [ "EventTarget", "XrReferenceSpace", "XrSpace", ] XrEye = [] XrFrame = [] XrHand = [] XrHandJoint = [] XrHandedness = [] XrInputSource = [] XrInputSourceArray = [] XrInputSourceEvent = ["Event"] XrInputSourceEventInit = [] XrInputSourcesChangeEvent = ["Event"] XrInputSourcesChangeEventInit = [] XrJointPose = ["XrPose"] XrJointSpace = [ "EventTarget", "XrSpace", ] XrLayer = ["EventTarget"] XrPermissionDescriptor = [] XrPermissionStatus = [ "EventTarget", "PermissionStatus", ] XrPose = [] XrReferenceSpace = [ "EventTarget", "XrSpace", ] XrReferenceSpaceEvent = ["Event"] XrReferenceSpaceEventInit = [] XrReferenceSpaceType = [] XrRenderState = [] XrRenderStateInit = [] XrRigidTransform = [] XrSession = ["EventTarget"] XrSessionEvent = ["Event"] XrSessionEventInit = [] XrSessionInit = [] XrSessionMode = [] XrSessionSupportedPermissionDescriptor = [] XrSpace = ["EventTarget"] XrSystem = ["EventTarget"] XrTargetRayMode = [] XrView = [] XrViewerPose = ["XrPose"] XrViewport = [] XrVisibilityState = [] XrWebGlLayer = [ "EventTarget", "XrLayer", ] XrWebGlLayerInit = [] XsltProcessor = [] console = [] css = [] default = ["std"] gpu_buffer_usage = [] gpu_color_write = [] gpu_map_mode = [] gpu_shader_stage = [] gpu_texture_usage = [] std = [ "wasm-bindgen/std", "js-sys/std", ] [lib] name = "web_sys" path = "src/lib.rs" test = false doctest = false [dependencies.js-sys] version = "=0.3.81" default-features = false [dependencies.wasm-bindgen] version = "=0.2.104" default-features = false [target.'cfg(target_arch = "wasm32")'.dev-dependencies.futures] version = "0.3" [lints.clippy] large_enum_variant = "allow" new_without_default = "allow" overly_complex_bool_expr = "allow" too_many_arguments = "allow" type_complexity = "allow" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(web_sys_unstable_apis)"] web-sys-0.3.81/Cargo.toml.orig000064400000000000000000001513221046102023000142010ustar 00000000000000[package] authors = ["The wasm-bindgen Developers"] description = """ Bindings for all Web APIs, a procedurally generated crate from WebIDL """ documentation = "https://wasm-bindgen.github.io/wasm-bindgen/api/web_sys/" edition = "2021" homepage = "https://wasm-bindgen.github.io/wasm-bindgen/web-sys/index.html" include = ["/LICENSE-*", "/src"] license = "MIT OR Apache-2.0" name = "web-sys" readme = "./README.md" repository = "https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/web-sys" rust-version = "1.57" version = "0.3.81" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg=web_sys_unstable_apis"] [lib] doctest = false test = false [dependencies] js-sys = { path = '../js-sys', version = '=0.3.81', default-features = false } wasm-bindgen = { path = "../..", version = "=0.2.104", default-features = false } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] futures = "0.3" wasm-bindgen-futures = { path = '../futures', features = ["futures-core-03-stream"] } wasm-bindgen-test = { path = '../test' } [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] } [lints.clippy] large_enum_variant = "allow" new_without_default = "allow" overly_complex_bool_expr = "allow" too_many_arguments = "allow" type_complexity = "allow" # This list is auto-generated by the wasm-bindgen-webidl program [features] default = ["std"] std = ["wasm-bindgen/std", "js-sys/std"] AbortController = [] AbortSignal = ["EventTarget"] AddEventListenerOptions = [] AesCbcParams = [] AesCtrParams = [] AesDerivedKeyParams = [] AesGcmParams = [] AesKeyAlgorithm = [] AesKeyGenParams = [] Algorithm = [] AlignSetting = [] AllowedBluetoothDevice = [] AllowedUsbDevice = [] AlphaOption = [] AnalyserNode = ["AudioNode", "EventTarget"] AnalyserOptions = [] AngleInstancedArrays = [] Animation = ["EventTarget"] AnimationEffect = [] AnimationEvent = ["Event"] AnimationEventInit = [] AnimationPlayState = [] AnimationPlaybackEvent = ["Event"] AnimationPlaybackEventInit = [] AnimationPropertyDetails = [] AnimationPropertyValueDetails = [] AnimationTimeline = [] AssignedNodesOptions = [] AttestationConveyancePreference = [] Attr = ["EventTarget", "Node"] AttributeNameValue = [] AudioBuffer = [] AudioBufferOptions = [] AudioBufferSourceNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] AudioBufferSourceOptions = [] AudioConfiguration = [] AudioContext = ["BaseAudioContext", "EventTarget"] AudioContextLatencyCategory = [] AudioContextOptions = [] AudioContextState = [] AudioData = [] AudioDataCopyToOptions = [] AudioDataInit = [] AudioDecoder = [] AudioDecoderConfig = [] AudioDecoderInit = [] AudioDecoderSupport = [] AudioDestinationNode = ["AudioNode", "EventTarget"] AudioEncoder = [] AudioEncoderConfig = [] AudioEncoderInit = [] AudioEncoderSupport = [] AudioListener = [] AudioNode = ["EventTarget"] AudioNodeOptions = [] AudioParam = [] AudioParamMap = [] AudioProcessingEvent = ["Event"] AudioSampleFormat = [] AudioScheduledSourceNode = ["AudioNode", "EventTarget"] AudioSinkInfo = [] AudioSinkOptions = [] AudioSinkType = [] AudioStreamTrack = ["EventTarget", "MediaStreamTrack"] AudioTrack = [] AudioTrackList = ["EventTarget"] AudioWorklet = ["Worklet"] AudioWorkletGlobalScope = ["WorkletGlobalScope"] AudioWorkletNode = ["AudioNode", "EventTarget"] AudioWorkletNodeOptions = [] AudioWorkletProcessor = [] AuthenticationExtensionsClientInputs = [] AuthenticationExtensionsClientInputsJson = [] AuthenticationExtensionsClientOutputs = [] AuthenticationExtensionsClientOutputsJson = [] AuthenticationExtensionsDevicePublicKeyInputs = [] AuthenticationExtensionsDevicePublicKeyOutputs = [] AuthenticationExtensionsLargeBlobInputs = [] AuthenticationExtensionsLargeBlobOutputs = [] AuthenticationExtensionsPrfInputs = [] AuthenticationExtensionsPrfOutputs = [] AuthenticationExtensionsPrfValues = [] AuthenticationResponseJson = [] AuthenticatorAssertionResponse = ["AuthenticatorResponse"] AuthenticatorAssertionResponseJson = [] AuthenticatorAttachment = [] AuthenticatorAttestationResponse = ["AuthenticatorResponse"] AuthenticatorAttestationResponseJson = [] AuthenticatorResponse = [] AuthenticatorSelectionCriteria = [] AuthenticatorTransport = [] AutoKeyword = [] AutocompleteInfo = [] BarProp = [] BaseAudioContext = ["EventTarget"] BaseComputedKeyframe = [] BaseKeyframe = [] BasePropertyIndexedKeyframe = [] BasicCardRequest = [] BasicCardResponse = [] BasicCardType = [] BatteryManager = ["EventTarget"] BeforeUnloadEvent = ["Event"] BinaryType = [] BiquadFilterNode = ["AudioNode", "EventTarget"] BiquadFilterOptions = [] BiquadFilterType = [] Blob = [] BlobEvent = ["Event"] BlobEventInit = [] BlobPropertyBag = [] BlockParsingOptions = [] Bluetooth = ["EventTarget"] BluetoothAdvertisingEvent = ["Event"] BluetoothAdvertisingEventInit = [] BluetoothCharacteristicProperties = [] BluetoothDataFilterInit = [] BluetoothDevice = ["EventTarget"] BluetoothLeScanFilterInit = [] BluetoothManufacturerDataMap = [] BluetoothPermissionDescriptor = [] BluetoothPermissionResult = ["EventTarget", "PermissionStatus"] BluetoothPermissionStorage = [] BluetoothRemoteGattCharacteristic = ["EventTarget"] BluetoothRemoteGattDescriptor = [] BluetoothRemoteGattServer = [] BluetoothRemoteGattService = ["EventTarget"] BluetoothServiceDataMap = [] BluetoothUuid = [] BoxQuadOptions = [] BroadcastChannel = ["EventTarget"] BrowserElementDownloadOptions = [] BrowserElementExecuteScriptOptions = [] BrowserFeedWriter = [] BrowserFindCaseSensitivity = [] BrowserFindDirection = [] ByteLengthQueuingStrategy = [] Cache = [] CacheBatchOperation = [] CacheQueryOptions = [] CacheStorage = [] CacheStorageNamespace = [] CanvasCaptureMediaStream = ["EventTarget", "MediaStream"] CanvasCaptureMediaStreamTrack = ["EventTarget", "MediaStreamTrack"] CanvasGradient = [] CanvasPattern = [] CanvasRenderingContext2d = [] CanvasWindingRule = [] CaretChangedReason = [] CaretPosition = [] CaretStateChangedEventInit = [] CdataSection = ["CharacterData", "EventTarget", "Node", "Text"] ChannelCountMode = [] ChannelInterpretation = [] ChannelMergerNode = ["AudioNode", "EventTarget"] ChannelMergerOptions = [] ChannelSplitterNode = ["AudioNode", "EventTarget"] ChannelSplitterOptions = [] CharacterData = ["EventTarget", "Node"] CheckerboardReason = [] CheckerboardReport = [] CheckerboardReportService = [] ChromeFilePropertyBag = [] ChromeWorker = ["EventTarget", "Worker"] Client = [] ClientQueryOptions = [] ClientRectsAndTexts = [] ClientType = [] Clients = [] Clipboard = ["EventTarget"] ClipboardEvent = ["Event"] ClipboardEventInit = [] ClipboardItem = [] ClipboardItemOptions = [] ClipboardPermissionDescriptor = [] ClipboardUnsanitizedFormats = [] CloseEvent = ["Event"] CloseEventInit = [] CodecState = [] CollectedClientData = [] ColorSpaceConversion = [] Comment = ["CharacterData", "EventTarget", "Node"] CompositeOperation = [] CompositionEvent = ["Event", "UiEvent"] CompositionEventInit = [] CompressionFormat = [] CompressionStream = [] ComputedEffectTiming = [] ConnStatusDict = [] ConnectionType = [] ConsoleCounter = [] ConsoleCounterError = [] ConsoleEvent = [] ConsoleInstance = [] ConsoleInstanceOptions = [] ConsoleLevel = [] ConsoleLogLevel = [] ConsoleProfileEvent = [] ConsoleStackEntry = [] ConsoleTimerError = [] ConsoleTimerLogOrEnd = [] ConsoleTimerStart = [] ConstantSourceNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] ConstantSourceOptions = [] ConstrainBooleanParameters = [] ConstrainDomStringParameters = [] ConstrainDoubleRange = [] ConstrainLongRange = [] ContextAttributes2d = [] ConvertCoordinateOptions = [] ConvolverNode = ["AudioNode", "EventTarget"] ConvolverOptions = [] Coordinates = [] CountQueuingStrategy = [] Credential = [] CredentialCreationOptions = [] CredentialPropertiesOutput = [] CredentialRequestOptions = [] CredentialsContainer = [] Crypto = [] CryptoKey = [] CryptoKeyPair = [] CssAnimation = ["Animation", "EventTarget"] CssBoxType = [] 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 = ["CssRule"] CssStyleSheet = ["StyleSheet"] CssStyleSheetParsingMode = [] CssSupportsRule = ["CssConditionRule", "CssGroupingRule", "CssRule"] CssTransition = ["Animation", "EventTarget"] CustomElementRegistry = [] CustomEvent = ["Event"] CustomEventInit = [] DataTransfer = [] DataTransferItem = [] DataTransferItemList = [] DateTimeValue = [] DecoderDoctorNotification = [] DecoderDoctorNotificationType = [] DecompressionStream = [] DedicatedWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] DelayNode = ["AudioNode", "EventTarget"] DelayOptions = [] DeviceAcceleration = [] DeviceAccelerationInit = [] DeviceLightEvent = ["Event"] DeviceLightEventInit = [] DeviceMotionEvent = ["Event"] DeviceMotionEventInit = [] DeviceOrientationEvent = ["Event"] DeviceOrientationEventInit = [] DeviceProximityEvent = ["Event"] DeviceProximityEventInit = [] DeviceRotationRate = [] DeviceRotationRateInit = [] DhKeyDeriveParams = [] DirectionSetting = [] Directory = [] DirectoryPickerOptions = [] DisplayMediaStreamConstraints = [] DisplayNameOptions = [] DisplayNameResult = [] DistanceModelType = [] DnsCacheDict = [] DnsCacheEntry = [] DnsLookupDict = [] Document = ["EventTarget", "Node"] DocumentFragment = ["EventTarget", "Node"] DocumentTimeline = ["AnimationTimeline"] DocumentTimelineOptions = [] DocumentType = ["EventTarget", "Node"] DomError = [] DomException = [] DomImplementation = [] DomMatrix = ["DomMatrixReadOnly"] DomMatrix2dInit = [] DomMatrixInit = [] DomMatrixReadOnly = [] DomParser = [] DomPoint = ["DomPointReadOnly"] DomPointInit = [] DomPointReadOnly = [] DomQuad = [] DomQuadInit = [] DomQuadJson = [] DomRect = ["DomRectReadOnly"] DomRectInit = [] DomRectList = [] DomRectReadOnly = [] DomRequest = ["EventTarget"] DomRequestReadyState = [] DomStringList = [] DomStringMap = [] DomTokenList = [] DomWindowResizeEventDetail = [] DoubleRange = [] DragEvent = ["Event", "MouseEvent", "UiEvent"] DragEventInit = [] DynamicsCompressorNode = ["AudioNode", "EventTarget"] DynamicsCompressorOptions = [] EcKeyAlgorithm = [] EcKeyGenParams = [] EcKeyImportParams = [] EcdhKeyDeriveParams = [] EcdsaParams = [] EffectTiming = [] Element = ["EventTarget", "Node"] ElementCreationOptions = [] ElementDefinitionOptions = [] EncodedAudioChunk = [] EncodedAudioChunkInit = [] EncodedAudioChunkMetadata = [] EncodedAudioChunkType = [] EncodedVideoChunk = [] EncodedVideoChunkInit = [] EncodedVideoChunkMetadata = [] EncodedVideoChunkType = [] EndingTypes = [] ErrorCallback = [] ErrorEvent = ["Event"] ErrorEventInit = [] Event = [] EventInit = [] EventListener = [] EventListenerOptions = [] EventModifierInit = [] EventSource = ["EventTarget"] EventSourceInit = [] EventTarget = [] Exception = [] ExtBlendMinmax = [] ExtColorBufferFloat = [] ExtColorBufferHalfFloat = [] ExtDisjointTimerQuery = [] ExtFragDepth = [] ExtSRgb = [] ExtShaderTextureLod = [] ExtTextureFilterAnisotropic = [] ExtTextureNorm16 = [] ExtendableEvent = ["Event"] ExtendableEventInit = [] ExtendableMessageEvent = ["Event", "ExtendableEvent"] ExtendableMessageEventInit = [] External = [] FakePluginMimeEntry = [] FakePluginTagInit = [] FetchEvent = ["Event", "ExtendableEvent"] FetchEventInit = [] FetchObserver = ["EventTarget"] FetchReadableStreamReadDataArray = [] FetchReadableStreamReadDataDone = [] FetchState = [] File = ["Blob"] FileCallback = [] FileList = [] FilePickerAcceptType = [] FilePickerOptions = [] FilePropertyBag = [] FileReader = ["EventTarget"] FileReaderSync = [] FileSystem = [] FileSystemCreateWritableOptions = [] FileSystemDirectoryEntry = ["FileSystemEntry"] FileSystemDirectoryHandle = ["FileSystemHandle"] FileSystemDirectoryReader = [] FileSystemEntriesCallback = [] FileSystemEntry = [] FileSystemEntryCallback = [] FileSystemFileEntry = ["FileSystemEntry"] FileSystemFileHandle = ["FileSystemHandle"] FileSystemFlags = [] FileSystemGetDirectoryOptions = [] FileSystemGetFileOptions = [] FileSystemHandle = [] FileSystemHandleKind = [] FileSystemHandlePermissionDescriptor = [] FileSystemPermissionDescriptor = [] FileSystemPermissionMode = [] FileSystemReadWriteOptions = [] FileSystemRemoveOptions = [] FileSystemSyncAccessHandle = [] FileSystemWritableFileStream = ["WritableStream"] FillMode = [] FlashClassification = [] FlowControlType = [] FocusEvent = ["Event", "UiEvent"] FocusEventInit = [] FocusOptions = [] FontData = [] FontFace = [] FontFaceDescriptors = [] FontFaceLoadStatus = [] FontFaceSet = ["EventTarget"] FontFaceSetIterator = [] FontFaceSetIteratorResult = [] FontFaceSetLoadEvent = ["Event"] FontFaceSetLoadEventInit = [] FontFaceSetLoadStatus = [] FormData = [] FrameType = [] FuzzingFunctions = [] GainNode = ["AudioNode", "EventTarget"] GainOptions = [] Gamepad = [] GamepadButton = [] GamepadEffectParameters = [] GamepadEvent = ["Event"] GamepadEventInit = [] GamepadHand = [] GamepadHapticActuator = [] GamepadHapticActuatorType = [] GamepadHapticEffectType = [] GamepadHapticsResult = [] GamepadMappingType = [] GamepadPose = [] GamepadTouch = [] Geolocation = [] GestureEvent = ["Event", "UiEvent"] GetAnimationsOptions = [] GetRootNodeOptions = [] GetUserMediaRequest = [] Gpu = [] GpuAdapter = [] GpuAdapterInfo = [] GpuAddressMode = [] GpuAutoLayoutMode = [] GpuBindGroup = [] GpuBindGroupDescriptor = [] GpuBindGroupEntry = [] GpuBindGroupLayout = [] GpuBindGroupLayoutDescriptor = [] GpuBindGroupLayoutEntry = [] GpuBlendComponent = [] GpuBlendFactor = [] GpuBlendOperation = [] GpuBlendState = [] GpuBuffer = [] GpuBufferBinding = [] GpuBufferBindingLayout = [] GpuBufferBindingType = [] GpuBufferDescriptor = [] GpuBufferMapState = [] GpuCanvasAlphaMode = [] GpuCanvasConfiguration = [] GpuCanvasContext = [] GpuCanvasToneMapping = [] GpuCanvasToneMappingMode = [] GpuColorDict = [] GpuColorTargetState = [] GpuCommandBuffer = [] GpuCommandBufferDescriptor = [] GpuCommandEncoder = [] GpuCommandEncoderDescriptor = [] GpuCompareFunction = [] GpuCompilationInfo = [] GpuCompilationMessage = [] GpuCompilationMessageType = [] GpuComputePassDescriptor = [] GpuComputePassEncoder = [] GpuComputePassTimestampWrites = [] GpuComputePipeline = [] GpuComputePipelineDescriptor = [] GpuCopyExternalImageDestInfo = [] GpuCopyExternalImageSourceInfo = [] GpuCullMode = [] GpuDepthStencilState = [] GpuDevice = ["EventTarget"] GpuDeviceDescriptor = [] GpuDeviceLostInfo = [] GpuDeviceLostReason = [] GpuError = [] GpuErrorFilter = [] GpuExtent3dDict = [] GpuExternalTexture = [] GpuExternalTextureBindingLayout = [] GpuExternalTextureDescriptor = [] GpuFeatureName = [] GpuFilterMode = [] GpuFragmentState = [] GpuFrontFace = [] GpuIndexFormat = [] GpuInternalError = ["GpuError"] GpuLoadOp = [] GpuMipmapFilterMode = [] GpuMultisampleState = [] GpuObjectDescriptorBase = [] GpuOrigin2dDict = [] GpuOrigin3dDict = [] GpuOutOfMemoryError = ["GpuError"] GpuPipelineDescriptorBase = [] GpuPipelineError = ["DomException"] GpuPipelineErrorInit = [] GpuPipelineErrorReason = [] GpuPipelineLayout = [] GpuPipelineLayoutDescriptor = [] GpuPowerPreference = [] GpuPrimitiveState = [] GpuPrimitiveTopology = [] GpuProgrammableStage = [] GpuQuerySet = [] GpuQuerySetDescriptor = [] GpuQueryType = [] GpuQueue = [] GpuQueueDescriptor = [] GpuRenderBundle = [] GpuRenderBundleDescriptor = [] GpuRenderBundleEncoder = [] GpuRenderBundleEncoderDescriptor = [] GpuRenderPassColorAttachment = [] GpuRenderPassDepthStencilAttachment = [] GpuRenderPassDescriptor = [] GpuRenderPassEncoder = [] GpuRenderPassLayout = [] GpuRenderPassTimestampWrites = [] GpuRenderPipeline = [] GpuRenderPipelineDescriptor = [] GpuRequestAdapterOptions = [] GpuSampler = [] GpuSamplerBindingLayout = [] GpuSamplerBindingType = [] GpuSamplerDescriptor = [] GpuShaderModule = [] GpuShaderModuleCompilationHint = [] GpuShaderModuleDescriptor = [] GpuStencilFaceState = [] GpuStencilOperation = [] GpuStorageTextureAccess = [] GpuStorageTextureBindingLayout = [] GpuStoreOp = [] GpuSupportedFeatures = [] GpuSupportedLimits = [] GpuTexelCopyBufferInfo = [] GpuTexelCopyBufferLayout = [] GpuTexelCopyTextureInfo = [] GpuTexture = [] GpuTextureAspect = [] GpuTextureBindingLayout = [] GpuTextureDescriptor = [] GpuTextureDimension = [] GpuTextureFormat = [] GpuTextureSampleType = [] GpuTextureView = [] GpuTextureViewDescriptor = [] GpuTextureViewDimension = [] GpuUncapturedErrorEvent = ["Event"] GpuUncapturedErrorEventInit = [] GpuValidationError = ["GpuError"] GpuVertexAttribute = [] GpuVertexBufferLayout = [] GpuVertexFormat = [] GpuVertexState = [] GpuVertexStepMode = [] GroupedHistoryEventInit = [] HalfOpenInfoDict = [] HardwareAcceleration = [] HashChangeEvent = ["Event"] HashChangeEventInit = [] Headers = [] HeadersGuardEnum = [] Hid = ["EventTarget"] HidCollectionInfo = [] HidConnectionEvent = ["Event"] HidConnectionEventInit = [] HidDevice = ["EventTarget"] HidDeviceFilter = [] HidDeviceRequestOptions = [] HidInputReportEvent = ["Event"] HidInputReportEventInit = [] HidReportInfo = [] HidReportItem = [] HidUnitSystem = [] HiddenPluginEventInit = [] History = [] HitRegionOptions = [] HkdfParams = [] HmacDerivedKeyParams = [] HmacImportParams = [] HmacKeyAlgorithm = [] HmacKeyGenParams = [] HtmlAllCollection = [] 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 = ["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 = ["IdbCursor"] IdbDatabase = ["EventTarget"] IdbFactory = [] IdbFileHandle = ["EventTarget"] IdbFileMetadataParameters = [] IdbFileRequest = ["DomRequest", "EventTarget"] IdbIndex = [] IdbIndexParameters = [] IdbKeyRange = [] IdbLocaleAwareKeyRange = ["IdbKeyRange"] IdbMutableFile = ["EventTarget"] IdbObjectStore = [] IdbObjectStoreParameters = [] IdbOpenDbOptions = [] IdbOpenDbRequest = ["EventTarget", "IdbRequest"] IdbRequest = ["EventTarget"] IdbRequestReadyState = [] IdbTransaction = ["EventTarget"] IdbTransactionDurability = [] IdbTransactionMode = [] IdbTransactionOptions = [] IdbVersionChangeEvent = ["Event"] IdbVersionChangeEventInit = [] IdleDeadline = [] IdleRequestOptions = [] IirFilterNode = ["AudioNode", "EventTarget"] IirFilterOptions = [] ImageBitmap = [] ImageBitmapOptions = [] ImageBitmapRenderingContext = [] ImageCapture = [] ImageCaptureError = [] ImageCaptureErrorEvent = ["Event"] ImageCaptureErrorEventInit = [] ImageData = [] ImageDecodeOptions = [] ImageDecodeResult = [] ImageDecoder = [] ImageDecoderInit = [] ImageEncodeOptions = [] ImageOrientation = [] ImageTrack = ["EventTarget"] ImageTrackList = [] InputDeviceInfo = ["MediaDeviceInfo"] InputEvent = ["Event", "UiEvent"] InputEventInit = [] IntersectionObserver = [] IntersectionObserverEntry = [] IntersectionObserverEntryInit = [] IntersectionObserverInit = [] IntlUtils = [] IsInputPendingOptions = [] IterableKeyAndValueResult = [] IterableKeyOrValueResult = [] IterationCompositeOperation = [] JsonWebKey = [] KeyAlgorithm = [] KeyEvent = [] KeyFrameRequestEvent = ["Event"] KeyIdsInitData = [] KeyboardEvent = ["Event", "UiEvent"] KeyboardEventInit = [] KeyframeAnimationOptions = [] KeyframeEffect = ["AnimationEffect"] KeyframeEffectOptions = [] L10nElement = [] L10nValue = [] LargeBlobSupport = [] LatencyMode = [] LifecycleCallbacks = [] LineAlignSetting = [] ListBoxObject = [] LocalMediaStream = ["EventTarget", "MediaStream"] LocaleInfo = [] Location = [] Lock = [] LockInfo = [] LockManager = [] LockManagerSnapshot = [] LockMode = [] LockOptions = [] MathMlElement = ["Element", "EventTarget", "Node"] MediaCapabilities = [] MediaCapabilitiesInfo = [] MediaConfiguration = [] MediaDecodingConfiguration = [] MediaDecodingType = [] MediaDeviceInfo = [] MediaDeviceKind = [] MediaDevices = ["EventTarget"] MediaElementAudioSourceNode = ["AudioNode", "EventTarget"] MediaElementAudioSourceOptions = [] MediaEncodingConfiguration = [] MediaEncodingType = [] MediaEncryptedEvent = ["Event"] MediaError = [] MediaImage = [] MediaKeyError = ["Event"] MediaKeyMessageEvent = ["Event"] MediaKeyMessageEventInit = [] MediaKeyMessageType = [] MediaKeyNeededEventInit = [] MediaKeySession = ["EventTarget"] MediaKeySessionType = [] MediaKeyStatus = [] MediaKeyStatusMap = [] MediaKeySystemAccess = [] MediaKeySystemConfiguration = [] MediaKeySystemMediaCapability = [] MediaKeySystemStatus = [] MediaKeys = [] MediaKeysPolicy = [] MediaKeysRequirement = [] MediaList = [] MediaMetadata = [] MediaMetadataInit = [] MediaPositionState = [] MediaQueryList = ["EventTarget"] MediaQueryListEvent = ["Event"] MediaQueryListEventInit = [] MediaRecorder = ["EventTarget"] MediaRecorderErrorEvent = ["Event"] MediaRecorderErrorEventInit = [] MediaRecorderOptions = [] MediaSession = [] MediaSessionAction = [] MediaSessionActionDetails = [] MediaSessionPlaybackState = [] MediaSource = ["EventTarget"] MediaSourceEndOfStreamError = [] MediaSourceEnum = [] MediaSourceReadyState = [] MediaStream = ["EventTarget"] MediaStreamAudioDestinationNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceOptions = [] MediaStreamConstraints = [] MediaStreamError = [] MediaStreamEvent = ["Event"] MediaStreamEventInit = [] MediaStreamTrack = ["EventTarget"] MediaStreamTrackEvent = ["Event"] MediaStreamTrackEventInit = [] MediaStreamTrackGenerator = ["EventTarget", "MediaStreamTrack"] MediaStreamTrackGeneratorInit = [] MediaStreamTrackProcessor = [] MediaStreamTrackProcessorInit = [] MediaStreamTrackState = [] MediaTrackCapabilities = [] MediaTrackConstraintSet = [] MediaTrackConstraints = [] MediaTrackSettings = [] MediaTrackSupportedConstraints = [] MemoryAttribution = [] MemoryAttributionContainer = [] MemoryBreakdownEntry = [] MemoryMeasurement = [] MessageChannel = [] MessageEvent = ["Event"] MessageEventInit = [] MessagePort = ["EventTarget"] MidiAccess = ["EventTarget"] MidiConnectionEvent = ["Event"] MidiConnectionEventInit = [] MidiInput = ["EventTarget", "MidiPort"] MidiInputMap = [] MidiMessageEvent = ["Event"] MidiMessageEventInit = [] MidiOptions = [] MidiOutput = ["EventTarget", "MidiPort"] MidiOutputMap = [] MidiPort = ["EventTarget"] MidiPortConnectionState = [] MidiPortDeviceState = [] MidiPortType = [] MimeType = [] MimeTypeArray = [] MouseEvent = ["Event", "UiEvent"] MouseEventInit = [] MouseScrollEvent = ["Event", "MouseEvent", "UiEvent"] MozDebug = [] MutationEvent = ["Event"] MutationObserver = [] MutationObserverInit = [] MutationObservingInfo = [] MutationRecord = [] NamedNodeMap = [] NativeOsFileReadOptions = [] NativeOsFileWriteAtomicOptions = [] NavigationType = [] Navigator = [] NavigatorAutomationInformation = [] NavigatorUaBrandVersion = [] NavigatorUaData = [] NetworkCommandOptions = [] NetworkInformation = ["EventTarget"] NetworkResultOptions = [] Node = ["EventTarget"] NodeFilter = [] NodeIterator = [] NodeList = [] Notification = ["EventTarget"] NotificationAction = [] NotificationDirection = [] NotificationEvent = ["Event", "ExtendableEvent"] NotificationEventInit = [] NotificationOptions = [] NotificationPermission = [] ObserverCallback = [] OesElementIndexUint = [] OesStandardDerivatives = [] OesTextureFloat = [] OesTextureFloatLinear = [] OesTextureHalfFloat = [] OesTextureHalfFloatLinear = [] OesVertexArrayObject = [] OfflineAudioCompletionEvent = ["Event"] OfflineAudioCompletionEventInit = [] OfflineAudioContext = ["BaseAudioContext", "EventTarget"] OfflineAudioContextOptions = [] OfflineResourceList = ["EventTarget"] OffscreenCanvas = ["EventTarget"] OffscreenCanvasRenderingContext2d = [] OpenFilePickerOptions = [] OpenWindowEventDetail = [] OptionalEffectTiming = [] OrientationLockType = [] OrientationType = [] OscillatorNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] OscillatorOptions = [] OscillatorType = [] OverSampleType = [] OvrMultiview2 = [] PageTransitionEvent = ["Event"] PageTransitionEventInit = [] PaintRequest = [] PaintRequestList = [] PaintWorkletGlobalScope = ["WorkletGlobalScope"] PannerNode = ["AudioNode", "EventTarget"] PannerOptions = [] PanningModelType = [] ParityType = [] Path2d = [] PaymentAddress = [] PaymentComplete = [] PaymentMethodChangeEvent = ["Event", "PaymentRequestUpdateEvent"] PaymentMethodChangeEventInit = [] PaymentRequestUpdateEvent = ["Event"] PaymentRequestUpdateEventInit = [] PaymentResponse = [] Pbkdf2Params = [] PcImplIceConnectionState = [] PcImplIceGatheringState = [] PcImplSignalingState = [] PcObserverStateType = [] Performance = ["EventTarget"] PerformanceEntry = [] PerformanceEntryEventInit = [] PerformanceEntryFilterOptions = [] PerformanceMark = ["PerformanceEntry"] PerformanceMeasure = ["PerformanceEntry"] PerformanceNavigation = [] PerformanceNavigationTiming = ["PerformanceEntry", "PerformanceResourceTiming"] PerformanceObserver = [] PerformanceObserverEntryList = [] PerformanceObserverInit = [] PerformanceResourceTiming = ["PerformanceEntry"] PerformanceServerTiming = [] PerformanceTiming = [] PeriodicWave = [] PeriodicWaveConstraints = [] PeriodicWaveOptions = [] PermissionDescriptor = [] PermissionName = [] PermissionState = [] PermissionStatus = ["EventTarget"] Permissions = [] PictureInPictureEvent = ["Event"] PictureInPictureEventInit = [] PictureInPictureWindow = ["EventTarget"] PlaneLayout = [] PlaybackDirection = [] Plugin = [] PluginArray = [] PluginCrashedEventInit = [] PointerEvent = ["Event", "MouseEvent", "UiEvent"] PointerEventInit = [] PopStateEvent = ["Event"] PopStateEventInit = [] PopupBlockedEvent = ["Event"] PopupBlockedEventInit = [] Position = [] PositionAlignSetting = [] PositionError = [] PositionOptions = [] PremultiplyAlpha = [] Presentation = [] PresentationAvailability = ["EventTarget"] PresentationConnection = ["EventTarget"] PresentationConnectionAvailableEvent = ["Event"] PresentationConnectionAvailableEventInit = [] PresentationConnectionBinaryType = [] PresentationConnectionCloseEvent = ["Event"] PresentationConnectionCloseEventInit = [] PresentationConnectionClosedReason = [] PresentationConnectionList = ["EventTarget"] PresentationConnectionState = [] PresentationReceiver = [] PresentationRequest = ["EventTarget"] PresentationStyle = [] ProcessingInstruction = ["CharacterData", "EventTarget", "Node"] ProfileTimelineLayerRect = [] ProfileTimelineMarker = [] ProfileTimelineMessagePortOperationType = [] ProfileTimelineStackFrame = [] ProfileTimelineWorkerOperationType = [] ProgressEvent = ["Event"] ProgressEventInit = [] PromiseNativeHandler = [] PromiseRejectionEvent = ["Event"] PromiseRejectionEventInit = [] PublicKeyCredential = ["Credential"] PublicKeyCredentialCreationOptions = [] PublicKeyCredentialCreationOptionsJson = [] PublicKeyCredentialDescriptor = [] PublicKeyCredentialDescriptorJson = [] PublicKeyCredentialEntity = [] PublicKeyCredentialHints = [] PublicKeyCredentialParameters = [] PublicKeyCredentialRequestOptions = [] PublicKeyCredentialRequestOptionsJson = [] PublicKeyCredentialRpEntity = [] PublicKeyCredentialType = [] PublicKeyCredentialUserEntity = [] PublicKeyCredentialUserEntityJson = [] PushEncryptionKeyName = [] PushEvent = ["Event", "ExtendableEvent"] PushEventInit = [] PushManager = [] PushMessageData = [] PushPermissionState = [] PushSubscription = [] PushSubscriptionInit = [] PushSubscriptionJson = [] PushSubscriptionKeys = [] PushSubscriptionOptions = [] PushSubscriptionOptionsInit = [] QueryOptions = [] QueuingStrategy = [] QueuingStrategyInit = [] RadioNodeList = ["NodeList"] Range = [] RcwnPerfStats = [] RcwnStatus = [] ReadableByteStreamController = [] ReadableStream = [] ReadableStreamByobReader = [] ReadableStreamByobRequest = [] ReadableStreamDefaultController = [] ReadableStreamDefaultReader = [] ReadableStreamGetReaderOptions = [] ReadableStreamIteratorOptions = [] ReadableStreamReadResult = [] ReadableStreamReaderMode = [] ReadableStreamType = [] ReadableWritablePair = [] RecordingState = [] ReferrerPolicy = [] RegisterRequest = [] RegisterResponse = [] RegisteredKey = [] RegistrationOptions = [] RegistrationResponseJson = [] Request = [] RequestCache = [] RequestCredentials = [] RequestDestination = [] RequestDeviceOptions = [] RequestInit = [] RequestMediaKeySystemAccessNotification = [] RequestMode = [] RequestRedirect = [] ResidentKeyRequirement = [] ResizeObserver = [] ResizeObserverBoxOptions = [] ResizeObserverEntry = [] ResizeObserverOptions = [] ResizeObserverSize = [] ResizeQuality = [] Response = [] ResponseInit = [] ResponseType = [] RsaHashedImportParams = [] RsaOaepParams = [] RsaOtherPrimesInfo = [] RsaPssParams = [] RtcAnswerOptions = [] RtcBundlePolicy = [] RtcCertificate = [] RtcCertificateExpiration = [] RtcCodecStats = [] RtcConfiguration = [] RtcDataChannel = ["EventTarget"] RtcDataChannelEvent = ["Event"] RtcDataChannelEventInit = [] RtcDataChannelInit = [] RtcDataChannelState = [] RtcDataChannelType = [] RtcDegradationPreference = [] RtcEncodedAudioFrame = [] RtcEncodedAudioFrameMetadata = [] RtcEncodedAudioFrameOptions = [] RtcEncodedVideoFrame = [] RtcEncodedVideoFrameMetadata = [] RtcEncodedVideoFrameOptions = [] RtcEncodedVideoFrameType = [] RtcFecParameters = [] RtcIceCandidate = [] RtcIceCandidateInit = [] RtcIceCandidatePairStats = [] RtcIceCandidateStats = [] RtcIceComponentStats = [] RtcIceConnectionState = [] RtcIceCredentialType = [] RtcIceGatheringState = [] RtcIceServer = [] RtcIceTransportPolicy = [] RtcIdentityAssertion = [] RtcIdentityAssertionResult = [] RtcIdentityProvider = [] RtcIdentityProviderDetails = [] RtcIdentityProviderOptions = [] RtcIdentityProviderRegistrar = [] RtcIdentityValidationResult = [] RtcInboundRtpStreamStats = [] RtcMediaStreamStats = [] RtcMediaStreamTrackStats = [] RtcOfferAnswerOptions = [] RtcOfferOptions = [] RtcOutboundRtpStreamStats = [] RtcPeerConnection = ["EventTarget"] RtcPeerConnectionIceErrorEvent = ["Event"] RtcPeerConnectionIceEvent = ["Event"] RtcPeerConnectionIceEventInit = [] RtcPeerConnectionState = [] RtcPriorityType = [] RtcRtcpParameters = [] RtcRtpCapabilities = [] RtcRtpCodecCapability = [] RtcRtpCodecParameters = [] RtcRtpContributingSource = [] RtcRtpEncodingParameters = [] RtcRtpHeaderExtensionCapability = [] RtcRtpHeaderExtensionParameters = [] RtcRtpParameters = [] RtcRtpReceiver = [] RtcRtpScriptTransform = [] RtcRtpScriptTransformer = ["EventTarget"] RtcRtpSender = [] RtcRtpSourceEntry = [] RtcRtpSourceEntryType = [] RtcRtpSynchronizationSource = [] RtcRtpTransceiver = [] RtcRtpTransceiverDirection = [] RtcRtpTransceiverInit = [] RtcRtxParameters = [] RtcSdpType = [] RtcSessionDescription = [] RtcSessionDescriptionInit = [] RtcSignalingState = [] RtcStats = [] RtcStatsIceCandidatePairState = [] RtcStatsIceCandidateType = [] RtcStatsReport = [] RtcStatsReportInternal = [] RtcStatsType = [] RtcTrackEvent = ["Event"] RtcTrackEventInit = [] RtcTransformEvent = ["Event"] RtcTransportStats = [] RtcdtmfSender = ["EventTarget"] RtcdtmfToneChangeEvent = ["Event"] RtcdtmfToneChangeEventInit = [] RtcrtpContributingSourceStats = [] RtcrtpStreamStats = [] SFrameTransform = ["EventTarget"] SFrameTransformErrorEvent = ["Event"] SFrameTransformErrorEventInit = [] SFrameTransformErrorEventType = [] SFrameTransformOptions = [] SFrameTransformRole = [] SaveFilePickerOptions = [] Scheduler = [] SchedulerPostTaskOptions = [] Scheduling = [] Screen = ["EventTarget"] ScreenColorGamut = [] ScreenLuminance = [] ScreenOrientation = ["EventTarget"] ScriptProcessorNode = ["AudioNode", "EventTarget"] ScrollAreaEvent = ["Event", "UiEvent"] ScrollBehavior = [] ScrollBoxObject = [] ScrollIntoViewOptions = [] ScrollLogicalPosition = [] ScrollOptions = [] ScrollRestoration = [] ScrollSetting = [] ScrollState = [] ScrollToOptions = [] ScrollViewChangeEventInit = [] SecurityPolicyViolationEvent = ["Event"] SecurityPolicyViolationEventDisposition = [] SecurityPolicyViolationEventInit = [] Selection = [] SelectionMode = [] Serial = ["EventTarget"] SerialInputSignals = [] SerialOptions = [] SerialOutputSignals = [] SerialPort = ["EventTarget"] SerialPortFilter = [] SerialPortInfo = [] SerialPortRequestOptions = [] ServerSocketOptions = [] ServiceWorker = ["EventTarget"] ServiceWorkerContainer = ["EventTarget"] ServiceWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] ServiceWorkerRegistration = ["EventTarget"] ServiceWorkerState = [] ServiceWorkerUpdateViaCache = [] ShadowRoot = ["DocumentFragment", "EventTarget", "Node"] ShadowRootInit = [] ShadowRootMode = [] ShareData = [] SharedWorker = ["EventTarget"] SharedWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] SignResponse = [] SocketElement = [] SocketOptions = [] SocketReadyState = [] SocketsDict = [] SourceBuffer = ["EventTarget"] SourceBufferAppendMode = [] SourceBufferList = ["EventTarget"] SpeechGrammar = [] SpeechGrammarList = [] SpeechRecognition = ["EventTarget"] SpeechRecognitionAlternative = [] SpeechRecognitionError = ["Event"] SpeechRecognitionErrorCode = [] SpeechRecognitionErrorInit = [] SpeechRecognitionEvent = ["Event"] SpeechRecognitionEventInit = [] SpeechRecognitionResult = [] SpeechRecognitionResultList = [] SpeechSynthesis = ["EventTarget"] SpeechSynthesisErrorCode = [] SpeechSynthesisErrorEvent = ["Event", "SpeechSynthesisEvent"] SpeechSynthesisErrorEventInit = [] SpeechSynthesisEvent = ["Event"] SpeechSynthesisEventInit = [] SpeechSynthesisUtterance = ["EventTarget"] SpeechSynthesisVoice = [] StereoPannerNode = ["AudioNode", "EventTarget"] StereoPannerOptions = [] Storage = [] StorageEstimate = [] StorageEvent = ["Event"] StorageEventInit = [] StorageManager = [] StorageType = [] StreamPipeOptions = [] StyleRuleChangeEventInit = [] StyleSheet = [] StyleSheetApplicableStateChangeEventInit = [] StyleSheetChangeEventInit = [] StyleSheetList = [] SubmitEvent = ["Event"] SubmitEventInit = [] SubtleCrypto = [] SupportedType = [] SvcOutputMetadata = [] SvgAngle = [] SvgAnimateElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] SvgAnimateMotionElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] SvgAnimateTransformElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] SvgAnimatedAngle = [] SvgAnimatedBoolean = [] SvgAnimatedEnumeration = [] SvgAnimatedInteger = [] SvgAnimatedLength = [] SvgAnimatedLengthList = [] SvgAnimatedNumber = [] SvgAnimatedNumberList = [] SvgAnimatedPreserveAspectRatio = [] SvgAnimatedRect = [] SvgAnimatedString = [] SvgAnimatedTransformList = [] SvgAnimationElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgBoundingBoxOptions = [] 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 = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgLinearGradientElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement"] SvgMarkerElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgMaskElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgMatrix = [] SvgMetadataElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgNumber = [] SvgNumberList = [] SvgPathElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgPathSeg = [] 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 = ["SvgPathSeg"] SvgPathSegMovetoRel = ["SvgPathSeg"] SvgPatternElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgPoint = [] SvgPointList = [] SvgPolygonElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgPolylineElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgPreserveAspectRatio = [] SvgRadialGradientElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement"] SvgRect = [] 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 = ["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 = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] SvgViewElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgZoomAndPan = [] 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"] TaskController = ["AbortController"] TaskControllerInit = [] TaskPriority = [] TaskPriorityChangeEvent = ["Event"] TaskPriorityChangeEventInit = [] TaskSignal = ["AbortSignal", "EventTarget"] TaskSignalAnyInit = [] TcpReadyState = [] TcpServerSocket = ["EventTarget"] TcpServerSocketEvent = ["Event"] TcpServerSocketEventInit = [] TcpSocket = ["EventTarget"] TcpSocketBinaryType = [] TcpSocketErrorEvent = ["Event"] TcpSocketErrorEventInit = [] TcpSocketEvent = ["Event"] TcpSocketEventInit = [] Text = ["CharacterData", "EventTarget", "Node"] TextDecodeOptions = [] TextDecoder = [] TextDecoderOptions = [] TextEncoder = [] TextMetrics = [] TextTrack = ["EventTarget"] TextTrackCue = ["EventTarget"] TextTrackCueList = [] TextTrackKind = [] TextTrackList = ["EventTarget"] TextTrackMode = [] TimeEvent = ["Event"] TimeRanges = [] ToggleEvent = ["Event"] ToggleEventInit = [] TokenBinding = [] TokenBindingStatus = [] Touch = [] TouchEvent = ["Event", "UiEvent"] TouchEventInit = [] TouchInit = [] TouchList = [] TrackEvent = ["Event"] TrackEventInit = [] TransformStream = [] TransformStreamDefaultController = [] Transformer = [] TransitionEvent = ["Event"] TransitionEventInit = [] Transport = [] TreeBoxObject = [] TreeCellInfo = [] TreeView = [] TreeWalker = [] U2f = [] U2fClientData = [] ULongRange = [] UaDataValues = [] UaLowEntropyJson = [] UdpMessageEventInit = [] UdpOptions = [] UiEvent = ["Event"] UiEventInit = [] UnderlyingSink = [] UnderlyingSource = [] Url = [] UrlSearchParams = [] Usb = ["EventTarget"] UsbAlternateInterface = [] UsbConfiguration = [] UsbConnectionEvent = ["Event"] UsbConnectionEventInit = [] UsbControlTransferParameters = [] UsbDevice = [] UsbDeviceFilter = [] UsbDeviceRequestOptions = [] UsbDirection = [] UsbEndpoint = [] UsbEndpointType = [] UsbInTransferResult = [] UsbInterface = [] UsbIsochronousInTransferPacket = [] UsbIsochronousInTransferResult = [] UsbIsochronousOutTransferPacket = [] UsbIsochronousOutTransferResult = [] UsbOutTransferResult = [] UsbPermissionDescriptor = [] UsbPermissionResult = ["EventTarget", "PermissionStatus"] UsbPermissionStorage = [] UsbRecipient = [] UsbRequestType = [] UsbTransferStatus = [] UserActivation = [] UserProximityEvent = ["Event"] UserProximityEventInit = [] UserVerificationRequirement = [] ValidityState = [] ValueEvent = ["Event"] ValueEventInit = [] VideoColorPrimaries = [] VideoColorSpace = [] VideoColorSpaceInit = [] VideoConfiguration = [] VideoDecoder = [] VideoDecoderConfig = [] VideoDecoderInit = [] VideoDecoderSupport = [] VideoEncoder = [] VideoEncoderConfig = [] VideoEncoderEncodeOptions = [] VideoEncoderInit = [] VideoEncoderSupport = [] VideoFacingModeEnum = [] VideoFrame = [] VideoFrameBufferInit = [] VideoFrameCopyToOptions = [] VideoFrameInit = [] VideoMatrixCoefficients = [] VideoPixelFormat = [] VideoPlaybackQuality = [] VideoStreamTrack = ["EventTarget", "MediaStreamTrack"] VideoTrack = [] VideoTrackList = ["EventTarget"] VideoTransferCharacteristics = [] ViewTransition = [] VisibilityState = [] VisualViewport = ["EventTarget"] VoidCallback = [] VrDisplay = ["EventTarget"] VrDisplayCapabilities = [] VrEye = [] VrEyeParameters = [] VrFieldOfView = [] VrFrameData = [] VrLayer = [] VrMockController = [] VrMockDisplay = [] VrPose = [] VrServiceTest = [] VrStageParameters = [] VrSubmitFrameResult = [] VttCue = ["EventTarget", "TextTrackCue"] VttRegion = [] WakeLock = [] WakeLockSentinel = ["EventTarget"] WakeLockType = [] WatchAdvertisementsOptions = [] WaveShaperNode = ["AudioNode", "EventTarget"] WaveShaperOptions = [] WebGl2RenderingContext = [] WebGlActiveInfo = [] WebGlBuffer = [] WebGlContextAttributes = [] WebGlContextEvent = ["Event"] WebGlContextEventInit = [] WebGlFramebuffer = [] WebGlPowerPreference = [] WebGlProgram = [] WebGlQuery = [] WebGlRenderbuffer = [] WebGlRenderingContext = [] WebGlSampler = [] WebGlShader = [] WebGlShaderPrecisionFormat = [] WebGlSync = [] WebGlTexture = [] WebGlTransformFeedback = [] WebGlUniformLocation = [] WebGlVertexArrayObject = [] WebKitCssMatrix = ["DomMatrix", "DomMatrixReadOnly"] WebSocket = ["EventTarget"] WebSocketDict = [] WebSocketElement = [] WebTransport = [] WebTransportBidirectionalStream = [] WebTransportCloseInfo = [] WebTransportCongestionControl = [] WebTransportDatagramDuplexStream = [] WebTransportDatagramStats = [] WebTransportError = ["DomException"] WebTransportErrorOptions = [] WebTransportErrorSource = [] WebTransportHash = [] WebTransportOptions = [] WebTransportReceiveStream = ["ReadableStream"] WebTransportReceiveStreamStats = [] WebTransportReliabilityMode = [] WebTransportSendStream = ["WritableStream"] WebTransportSendStreamOptions = [] WebTransportSendStreamStats = [] WebTransportStats = [] WebglColorBufferFloat = [] WebglCompressedTextureAstc = [] WebglCompressedTextureAtc = [] WebglCompressedTextureEtc = [] WebglCompressedTextureEtc1 = [] WebglCompressedTexturePvrtc = [] WebglCompressedTextureS3tc = [] WebglCompressedTextureS3tcSrgb = [] WebglDebugRendererInfo = [] WebglDebugShaders = [] WebglDepthTexture = [] WebglDrawBuffers = [] WebglLoseContext = [] WebglMultiDraw = [] WellKnownDirectory = [] WgslLanguageFeatures = [] WheelEvent = ["Event", "MouseEvent", "UiEvent"] WheelEventInit = [] WidevineCdmManifest = [] Window = ["EventTarget"] WindowClient = ["Client"] Worker = ["EventTarget"] WorkerDebuggerGlobalScope = ["EventTarget"] WorkerGlobalScope = ["EventTarget"] WorkerLocation = [] WorkerNavigator = [] WorkerOptions = [] WorkerType = [] Worklet = [] WorkletGlobalScope = [] WorkletOptions = [] WritableStream = [] WritableStreamDefaultController = [] WritableStreamDefaultWriter = [] WriteCommandType = [] WriteParams = [] XPathExpression = [] XPathNsResolver = [] XPathResult = [] XmlDocument = ["Document", "EventTarget", "Node"] XmlHttpRequest = ["EventTarget", "XmlHttpRequestEventTarget"] XmlHttpRequestEventTarget = ["EventTarget"] XmlHttpRequestResponseType = [] XmlHttpRequestUpload = ["EventTarget", "XmlHttpRequestEventTarget"] XmlSerializer = [] XrBoundedReferenceSpace = ["EventTarget", "XrReferenceSpace", "XrSpace"] XrEye = [] XrFrame = [] XrHand = [] XrHandJoint = [] XrHandedness = [] XrInputSource = [] XrInputSourceArray = [] XrInputSourceEvent = ["Event"] XrInputSourceEventInit = [] XrInputSourcesChangeEvent = ["Event"] XrInputSourcesChangeEventInit = [] XrJointPose = ["XrPose"] XrJointSpace = ["EventTarget", "XrSpace"] XrLayer = ["EventTarget"] XrPermissionDescriptor = [] XrPermissionStatus = ["EventTarget", "PermissionStatus"] XrPose = [] XrReferenceSpace = ["EventTarget", "XrSpace"] XrReferenceSpaceEvent = ["Event"] XrReferenceSpaceEventInit = [] XrReferenceSpaceType = [] XrRenderState = [] XrRenderStateInit = [] XrRigidTransform = [] XrSession = ["EventTarget"] XrSessionEvent = ["Event"] XrSessionEventInit = [] XrSessionInit = [] XrSessionMode = [] XrSessionSupportedPermissionDescriptor = [] XrSpace = ["EventTarget"] XrSystem = ["EventTarget"] XrTargetRayMode = [] XrView = [] XrViewerPose = ["XrPose"] XrViewport = [] XrVisibilityState = [] XrWebGlLayer = ["EventTarget", "XrLayer"] XrWebGlLayerInit = [] XsltProcessor = [] console = [] css = [] gpu_buffer_usage = [] gpu_color_write = [] gpu_map_mode = [] gpu_shader_stage = [] gpu_texture_usage = [] web-sys-0.3.81/LICENSE-APACHE000064400000000000000000000251371046102023000132420ustar 00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. web-sys-0.3.81/LICENSE-MIT000064400000000000000000000020411046102023000127370ustar 00000000000000Copyright (c) 2014 Alex Crichton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. web-sys-0.3.81/README.md000064400000000000000000000036311046102023000125700ustar 00000000000000# `web-sys` Raw bindings to Web APIs for projects using `wasm-bindgen`. - [The `web-sys` section of the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/index.html) - [API Documentation](https://wasm-bindgen.github.io/wasm-bindgen/api/web_sys/) ## Crate features This crate by default contains very little when compiled as almost all of its exposed APIs are gated by Cargo features. The exhaustive list of features can be found in `crates/web-sys/Cargo.toml`, but the rule of thumb for `web-sys` is that each type has its own cargo feature (named after the type). Using an API requires enabling the features for all types used in the API, and APIs should mention in the documentation what features they require. ## How to add an interface If you don't see a particular web API in `web-sys`, here is how to add it. 1. Copy the WebIDL specification of the API and place it in a new file in the `webidls/unstable` folder. You can often find the IDL by going to the MDN docs page for the API, scrolling to the bottom, clicking the "Specifications" link, and scrolling to the bottom of the specification page. For example, the bottom of the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession) on the MediaSession API takes you to the [spec](https://w3c.github.io/mediasession/#the-mediasession-interface). The [very bottom](https://w3c.github.io/mediasession/#idl-index) of _that_ page is the IDL. 2. Annotate the functions that can throw with `[Throws]` 3. `cd crates/web-sys` 4. Run `cargo run --release --package wasm-bindgen-webidl -- webidls src/features ./Cargo.toml` 5. Run `git add .` to add all the generated files into git. 6. Add an entry in CHANGELOG.md like the following ```md ... ## Unreleased ### Added ... * Added [#1234](https://github.com/wasm-bindgen/wasm-bindgen/pull/1234) # <- link to your PR ``` web-sys-0.3.81/src/features/gen_AbortController.rs000064400000000000000000000046131046102023000202310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); # [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_with_reason(this: &AbortController, reason: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_AbortSignal.rs000064400000000000000000000116511046102023000173230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = reason)] #[doc = "Getter for the `reason` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn reason(this: &AbortSignal) -> ::wasm_bindgen::JsValue; # [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>); # [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn abort() -> AbortSignal; # [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/abort_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn abort_with_reason(reason: &::wasm_bindgen::JsValue) -> AbortSignal; # [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = any)] #[doc = "The `any()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/any_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn any(signals: &::wasm_bindgen::JsValue) -> AbortSignal; # [wasm_bindgen (method , structural , js_class = "AbortSignal" , js_name = throwIfAborted)] #[doc = "The `throwIfAborted()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/throwIfAborted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn throw_if_aborted(this: &AbortSignal); # [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = timeout)] #[doc = "The `timeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn timeout_with_u32(milliseconds: u32) -> AbortSignal; # [wasm_bindgen (static_method_of = AbortSignal , js_class = "AbortSignal" , js_name = timeout)] #[doc = "The `timeout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] pub fn timeout_with_f64(milliseconds: f64) -> AbortSignal; } web-sys-0.3.81/src/features/gen_AddEventListenerOptions.rs000064400000000000000000000077621046102023000217020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, getter = "capture")] pub fn get_capture(this: &AddEventListenerOptions) -> Option; #[doc = "Change the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, setter = "capture")] pub fn set_capture(this: &AddEventListenerOptions, val: bool); #[doc = "Get the `once` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, getter = "once")] pub fn get_once(this: &AddEventListenerOptions) -> Option; #[doc = "Change the `once` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, setter = "once")] pub fn set_once(this: &AddEventListenerOptions, val: bool); #[doc = "Get the `passive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, getter = "passive")] pub fn get_passive(this: &AddEventListenerOptions) -> Option; #[doc = "Change the `passive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] #[wasm_bindgen(method, setter = "passive")] pub fn set_passive(this: &AddEventListenerOptions, val: bool); #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `AddEventListenerOptions`*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &AddEventListenerOptions) -> Option; #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `AddEventListenerOptions`*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &AddEventListenerOptions, val: &AbortSignal); } 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 } #[deprecated = "Use `set_capture()` instead."] pub fn capture(&mut self, val: bool) -> &mut Self { self.set_capture(val); self } #[deprecated = "Use `set_once()` instead."] pub fn once(&mut self, val: bool) -> &mut Self { self.set_once(val); self } #[deprecated = "Use `set_passive()` instead."] pub fn passive(&mut self, val: bool) -> &mut Self { self.set_passive(val); self } #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } impl Default for AddEventListenerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AesCbcParams.rs000064400000000000000000000043061046102023000174010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesCbcParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesCbcParams, val: &str); #[doc = "Get the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] #[wasm_bindgen(method, getter = "iv")] pub fn get_iv(this: &AesCbcParams) -> ::js_sys::Object; #[doc = "Change the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] #[wasm_bindgen(method, setter = "iv")] pub fn set_iv(this: &AesCbcParams, val: &::js_sys::Object); } 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.set_name(name); ret.set_iv(iv); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_iv()` instead."] pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_iv(val); self } } web-sys-0.3.81/src/features/gen_AesCtrParams.rs000064400000000000000000000057321046102023000174460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesCtrParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesCtrParams, val: &str); #[doc = "Get the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, getter = "counter")] pub fn get_counter(this: &AesCtrParams) -> ::js_sys::Object; #[doc = "Change the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, setter = "counter")] pub fn set_counter(this: &AesCtrParams, val: &::js_sys::Object); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &AesCtrParams) -> u8; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &AesCtrParams, val: u8); } 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.set_name(name); ret.set_counter(counter); ret.set_length(length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_counter()` instead."] pub fn counter(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_counter(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u8) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_AesDerivedKeyParams.rs000064400000000000000000000044501046102023000207450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesDerivedKeyParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesDerivedKeyParams, val: &str); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &AesDerivedKeyParams) -> u32; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &AesDerivedKeyParams, val: u32); } 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.set_name(name); ret.set_length(length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_AesGcmParams.rs000064400000000000000000000073071046102023000174240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesGcmParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesGcmParams, val: &str); #[doc = "Get the `additionalData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, getter = "additionalData")] pub fn get_additional_data(this: &AesGcmParams) -> Option<::js_sys::Object>; #[doc = "Change the `additionalData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, setter = "additionalData")] pub fn set_additional_data(this: &AesGcmParams, val: &::js_sys::Object); #[doc = "Get the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, getter = "iv")] pub fn get_iv(this: &AesGcmParams) -> ::js_sys::Object; #[doc = "Change the `iv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, setter = "iv")] pub fn set_iv(this: &AesGcmParams, val: &::js_sys::Object); #[doc = "Get the `tagLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, getter = "tagLength")] pub fn get_tag_length(this: &AesGcmParams) -> Option; #[doc = "Change the `tagLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, setter = "tagLength")] pub fn set_tag_length(this: &AesGcmParams, val: u8); } 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.set_name(name); ret.set_iv(iv); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_additional_data()` instead."] pub fn additional_data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_additional_data(val); self } #[deprecated = "Use `set_iv()` instead."] pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_iv(val); self } #[deprecated = "Use `set_tag_length()` instead."] pub fn tag_length(&mut self, val: u8) -> &mut Self { self.set_tag_length(val); self } } web-sys-0.3.81/src/features/gen_AesKeyAlgorithm.rs000064400000000000000000000043541046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesKeyAlgorithm, val: &str); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &AesKeyAlgorithm) -> u16; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &AesKeyAlgorithm, val: u16); } 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.set_name(name); ret.set_length(length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u16) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_AesKeyGenParams.rs000064400000000000000000000043541046102023000200770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AesKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AesKeyGenParams, val: &str); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &AesKeyGenParams) -> u16; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &AesKeyGenParams, val: u16); } 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.set_name(name); ret.set_length(length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u16) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_Algorithm.rs000064400000000000000000000027021046102023000170410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &Algorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &Algorithm, val: &str); } 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.set_name(name); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } web-sys-0.3.81/src/features/gen_AlignSetting.rs000064400000000000000000000006271046102023000175070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_AllowedBluetoothDevice.rs000064400000000000000000000133111046102023000215060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedBluetoothDevice)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AllowedBluetoothDevice` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AllowedBluetoothDevice; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowedServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowedServices")] pub fn get_allowed_services(this: &AllowedBluetoothDevice) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowedServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowedServices")] pub fn set_allowed_services(this: &AllowedBluetoothDevice, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &AllowedBluetoothDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &AllowedBluetoothDevice, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mayUseGATT` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mayUseGATT")] pub fn get_may_use_gatt(this: &AllowedBluetoothDevice) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mayUseGATT` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mayUseGATT")] pub fn set_may_use_gatt(this: &AllowedBluetoothDevice, val: bool); } #[cfg(web_sys_unstable_apis)] impl AllowedBluetoothDevice { #[doc = "Construct a new `AllowedBluetoothDevice`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedBluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( allowed_services: &::wasm_bindgen::JsValue, device_id: &str, may_use_gatt: bool, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_allowed_services(allowed_services); ret.set_device_id(device_id); ret.set_may_use_gatt(may_use_gatt); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_allowed_services()` instead."] pub fn allowed_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_allowed_services(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &str) -> &mut Self { self.set_device_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_may_use_gatt()` instead."] pub fn may_use_gatt(&mut self, val: bool) -> &mut Self { self.set_may_use_gatt(val); self } } web-sys-0.3.81/src/features/gen_AllowedUsbDevice.rs000064400000000000000000000125461046102023000203030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AllowedUSBDevice)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AllowedUsbDevice` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AllowedUsbDevice; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "productId")] pub fn get_product_id(this: &AllowedUsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "productId")] pub fn set_product_id(this: &AllowedUsbDevice, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `serialNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serialNumber")] pub fn get_serial_number(this: &AllowedUsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serialNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "serialNumber")] pub fn set_serial_number(this: &AllowedUsbDevice, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "vendorId")] pub fn get_vendor_id(this: &AllowedUsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "vendorId")] pub fn set_vendor_id(this: &AllowedUsbDevice, val: u8); } #[cfg(web_sys_unstable_apis)] impl AllowedUsbDevice { #[doc = "Construct a new `AllowedUsbDevice`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AllowedUsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(product_id: u8, vendor_id: u8) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_product_id(product_id); ret.set_vendor_id(vendor_id); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_product_id()` instead."] pub fn product_id(&mut self, val: u8) -> &mut Self { self.set_product_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_serial_number()` instead."] pub fn serial_number(&mut self, val: &str) -> &mut Self { self.set_serial_number(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_vendor_id()` instead."] pub fn vendor_id(&mut self, val: u8) -> &mut Self { self.set_vendor_id(val); self } } web-sys-0.3.81/src/features/gen_AlphaOption.rs000064400000000000000000000011411046102023000173250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `AlphaOption` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlphaOption`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AlphaOption { Keep = "keep", Discard = "discard", } web-sys-0.3.81/src/features/gen_AnalyserNode.rs000064400000000000000000000236121046102023000175020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = 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_with_u8_array(this: &AnalyserNode, array: &::js_sys::Uint8Array); # [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 = 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_with_u8_array( this: &AnalyserNode, array: &::js_sys::Uint8Array, ); # [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 = 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_with_f32_array( this: &AnalyserNode, array: &::js_sys::Float32Array, ); # [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]); # [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_with_f32_array( this: &AnalyserNode, array: &::js_sys::Float32Array, ); } web-sys-0.3.81/src/features/gen_AnalyserOptions.rs000064400000000000000000000152701046102023000202510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &AnalyserOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &AnalyserOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelCountMode`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &AnalyserOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &AnalyserOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelInterpretation`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &AnalyserOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &AnalyserOptions, val: ChannelInterpretation); #[doc = "Get the `fftSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, getter = "fftSize")] pub fn get_fft_size(this: &AnalyserOptions) -> Option; #[doc = "Change the `fftSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, setter = "fftSize")] pub fn set_fft_size(this: &AnalyserOptions, val: u32); #[doc = "Get the `maxDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, getter = "maxDecibels")] pub fn get_max_decibels(this: &AnalyserOptions) -> Option; #[doc = "Change the `maxDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, setter = "maxDecibels")] pub fn set_max_decibels(this: &AnalyserOptions, val: f64); #[doc = "Get the `minDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, getter = "minDecibels")] pub fn get_min_decibels(this: &AnalyserOptions) -> Option; #[doc = "Change the `minDecibels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, setter = "minDecibels")] pub fn set_min_decibels(this: &AnalyserOptions, val: f64); #[doc = "Get the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, getter = "smoothingTimeConstant")] pub fn get_smoothing_time_constant(this: &AnalyserOptions) -> Option; #[doc = "Change the `smoothingTimeConstant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] #[wasm_bindgen(method, setter = "smoothingTimeConstant")] pub fn set_smoothing_time_constant(this: &AnalyserOptions, val: f64); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_fft_size()` instead."] pub fn fft_size(&mut self, val: u32) -> &mut Self { self.set_fft_size(val); self } #[deprecated = "Use `set_max_decibels()` instead."] pub fn max_decibels(&mut self, val: f64) -> &mut Self { self.set_max_decibels(val); self } #[deprecated = "Use `set_min_decibels()` instead."] pub fn min_decibels(&mut self, val: f64) -> &mut Self { self.set_min_decibels(val); self } #[deprecated = "Use `set_smoothing_time_constant()` instead."] pub fn smoothing_time_constant(&mut self, val: f64) -> &mut Self { self.set_smoothing_time_constant(val); self } } impl Default for AnalyserOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AngleInstancedArrays.rs000064400000000000000000000065161046102023000211630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_Animation.rs000064400000000000000000000335231046102023000170370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_AnimationEffect.rs000064400000000000000000000052301046102023000201460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_AnimationEvent.rs000064400000000000000000000061461046102023000200420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_AnimationEventInit.rs000064400000000000000000000126311046102023000206620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &AnimationEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &AnimationEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &AnimationEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &AnimationEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &AnimationEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &AnimationEventInit, val: bool); #[doc = "Get the `animationName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "animationName")] pub fn get_animation_name(this: &AnimationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `animationName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "animationName")] pub fn set_animation_name(this: &AnimationEventInit, val: &str); #[doc = "Get the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "elapsedTime")] pub fn get_elapsed_time(this: &AnimationEventInit) -> Option; #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "elapsedTime")] pub fn set_elapsed_time(this: &AnimationEventInit, val: f32); #[doc = "Get the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "pseudoElement")] pub fn get_pseudo_element(this: &AnimationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, setter = "pseudoElement")] pub fn set_pseudo_element(this: &AnimationEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_animation_name()` instead."] pub fn animation_name(&mut self, val: &str) -> &mut Self { self.set_animation_name(val); self } #[deprecated = "Use `set_elapsed_time()` instead."] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { self.set_elapsed_time(val); self } #[deprecated = "Use `set_pseudo_element()` instead."] pub fn pseudo_element(&mut self, val: &str) -> &mut Self { self.set_pseudo_element(val); self } } impl Default for AnimationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AnimationPlayState.rs000064400000000000000000000006421046102023000206620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_AnimationPlaybackEvent.rs000064400000000000000000000055451046102023000215130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AnimationPlaybackEventInit.rs000064400000000000000000000115211046102023000223260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &AnimationPlaybackEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &AnimationPlaybackEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &AnimationPlaybackEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &AnimationPlaybackEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &AnimationPlaybackEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &AnimationPlaybackEventInit, val: bool); #[doc = "Get the `currentTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, getter = "currentTime")] pub fn get_current_time(this: &AnimationPlaybackEventInit) -> Option; #[doc = "Change the `currentTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, setter = "currentTime")] pub fn set_current_time(this: &AnimationPlaybackEventInit, val: Option); #[doc = "Get the `timelineTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, getter = "timelineTime")] pub fn get_timeline_time(this: &AnimationPlaybackEventInit) -> Option; #[doc = "Change the `timelineTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] #[wasm_bindgen(method, setter = "timelineTime")] pub fn set_timeline_time(this: &AnimationPlaybackEventInit, val: Option); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_current_time()` instead."] pub fn current_time(&mut self, val: Option) -> &mut Self { self.set_current_time(val); self } #[deprecated = "Use `set_timeline_time()` instead."] pub fn timeline_time(&mut self, val: Option) -> &mut Self { self.set_timeline_time(val); self } } impl Default for AnimationPlaybackEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AnimationPropertyDetails.rs000064400000000000000000000103171046102023000221060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `property` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "property")] pub fn get_property(this: &AnimationPropertyDetails) -> ::alloc::string::String; #[doc = "Change the `property` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, setter = "property")] pub fn set_property(this: &AnimationPropertyDetails, val: &str); #[doc = "Get the `runningOnCompositor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "runningOnCompositor")] pub fn get_running_on_compositor(this: &AnimationPropertyDetails) -> bool; #[doc = "Change the `runningOnCompositor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, setter = "runningOnCompositor")] pub fn set_running_on_compositor(this: &AnimationPropertyDetails, val: bool); #[doc = "Get the `values` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "values")] pub fn get_values(this: &AnimationPropertyDetails) -> ::js_sys::Array; #[doc = "Change the `values` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, setter = "values")] pub fn set_values(this: &AnimationPropertyDetails, val: &::wasm_bindgen::JsValue); #[doc = "Get the `warning` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "warning")] pub fn get_warning(this: &AnimationPropertyDetails) -> Option<::alloc::string::String>; #[doc = "Change the `warning` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, setter = "warning")] pub fn set_warning(this: &AnimationPropertyDetails, val: &str); } 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.set_property(property); ret.set_running_on_compositor(running_on_compositor); ret.set_values(values); ret } #[deprecated = "Use `set_property()` instead."] pub fn property(&mut self, val: &str) -> &mut Self { self.set_property(val); self } #[deprecated = "Use `set_running_on_compositor()` instead."] pub fn running_on_compositor(&mut self, val: bool) -> &mut Self { self.set_running_on_compositor(val); self } #[deprecated = "Use `set_values()` instead."] pub fn values(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_values(val); self } #[deprecated = "Use `set_warning()` instead."] pub fn warning(&mut self, val: &str) -> &mut Self { self.set_warning(val); self } } web-sys-0.3.81/src/features/gen_AnimationPropertyValueDetails.rs000064400000000000000000000104461046102023000231060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CompositeOperation")] #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &AnimationPropertyValueDetails) -> CompositeOperation; #[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`*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &AnimationPropertyValueDetails, val: CompositeOperation); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &AnimationPropertyValueDetails, val: &str); #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &AnimationPropertyValueDetails) -> f64; #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &AnimationPropertyValueDetails, val: f64); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &AnimationPropertyValueDetails, val: &str); } 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.set_composite(composite); ret.set_offset(offset); ret } #[cfg(feature = "CompositeOperation")] #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { self.set_composite(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f64) -> &mut Self { self.set_offset(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &str) -> &mut Self { self.set_value(val); self } } web-sys-0.3.81/src/features/gen_AnimationTimeline.rs000064400000000000000000000021051046102023000205160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AssignedNodesOptions.rs000064400000000000000000000032041046102023000212130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `flatten` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] #[wasm_bindgen(method, getter = "flatten")] pub fn get_flatten(this: &AssignedNodesOptions) -> Option; #[doc = "Change the `flatten` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] #[wasm_bindgen(method, setter = "flatten")] pub fn set_flatten(this: &AssignedNodesOptions, val: bool); } 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 } #[deprecated = "Use `set_flatten()` instead."] pub fn flatten(&mut self, val: bool) -> &mut Self { self.set_flatten(val); self } } impl Default for AssignedNodesOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AttestationConveyancePreference.rs000064400000000000000000000007171046102023000234300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", Enterprise = "enterprise", } web-sys-0.3.81/src/features/gen_Attr.rs000064400000000000000000000070001046102023000160210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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; } web-sys-0.3.81/src/features/gen_AttributeNameValue.rs000064400000000000000000000044441046102023000206610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &AttributeNameValue) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &AttributeNameValue, val: &str); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &AttributeNameValue) -> ::alloc::string::String; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &AttributeNameValue, val: &str); } 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.set_name(name); ret.set_value(value); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &str) -> &mut Self { self.set_value(val); self } } web-sys-0.3.81/src/features/gen_AudioBuffer.rs000064400000000000000000000175551046102023000173220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_f32_array( this: &AudioBuffer, destination: &::js_sys::Float32Array, 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 = 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_f32_array_and_start_in_channel( this: &AudioBuffer, destination: &::js_sys::Float32Array, 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: &[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_f32_array( this: &AudioBuffer, source: &::js_sys::Float32Array, 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: &[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_with_f32_array_and_start_in_channel( this: &AudioBuffer, source: &::js_sys::Float32Array, 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<::alloc::vec::Vec, JsValue>; } web-sys-0.3.81/src/features/gen_AudioBufferOptions.rs000064400000000000000000000062051046102023000206640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &AudioBufferOptions) -> u32; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &AudioBufferOptions, val: u32); #[doc = "Get the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, getter = "numberOfChannels")] pub fn get_number_of_channels(this: &AudioBufferOptions) -> Option; #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, setter = "numberOfChannels")] pub fn set_number_of_channels(this: &AudioBufferOptions, val: u32); #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &AudioBufferOptions) -> f32; #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &AudioBufferOptions, val: f32); } 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.set_length(length); ret.set_sample_rate(sample_rate); ret } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } #[deprecated = "Use `set_number_of_channels()` instead."] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { self.set_number_of_channels(val); self } #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: f32) -> &mut Self { self.set_sample_rate(val); self } } web-sys-0.3.81/src/features/gen_AudioBufferSourceNode.rs000064400000000000000000000260041046102023000212760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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`*"] #[deprecated] 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, 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, offset: f64, 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn stop_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_AudioBufferSourceOptions.rs000064400000000000000000000130721046102023000220450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AudioBuffer")] #[doc = "Get the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "buffer")] pub fn get_buffer(this: &AudioBufferSourceOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "buffer")] pub fn set_buffer(this: &AudioBufferSourceOptions, val: Option<&AudioBuffer>); #[doc = "Get the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "detune")] pub fn get_detune(this: &AudioBufferSourceOptions) -> Option; #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, setter = "detune")] pub fn set_detune(this: &AudioBufferSourceOptions, val: f32); #[doc = "Get the `loop` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "loop")] pub fn get_loop(this: &AudioBufferSourceOptions) -> Option; #[doc = "Change the `loop` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, setter = "loop")] pub fn set_loop(this: &AudioBufferSourceOptions, val: bool); #[doc = "Get the `loopEnd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "loopEnd")] pub fn get_loop_end(this: &AudioBufferSourceOptions) -> Option; #[doc = "Change the `loopEnd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, setter = "loopEnd")] pub fn set_loop_end(this: &AudioBufferSourceOptions, val: f64); #[doc = "Get the `loopStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "loopStart")] pub fn get_loop_start(this: &AudioBufferSourceOptions) -> Option; #[doc = "Change the `loopStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, setter = "loopStart")] pub fn set_loop_start(this: &AudioBufferSourceOptions, val: f64); #[doc = "Get the `playbackRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, getter = "playbackRate")] pub fn get_playback_rate(this: &AudioBufferSourceOptions) -> Option; #[doc = "Change the `playbackRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] #[wasm_bindgen(method, setter = "playbackRate")] pub fn set_playback_rate(this: &AudioBufferSourceOptions, val: f32); } 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")] #[deprecated = "Use `set_buffer()` instead."] pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { self.set_buffer(val); self } #[deprecated = "Use `set_detune()` instead."] pub fn detune(&mut self, val: f32) -> &mut Self { self.set_detune(val); self } #[deprecated = "Use `set_loop()` instead."] pub fn loop_(&mut self, val: bool) -> &mut Self { self.set_loop(val); self } #[deprecated = "Use `set_loop_end()` instead."] pub fn loop_end(&mut self, val: f64) -> &mut Self { self.set_loop_end(val); self } #[deprecated = "Use `set_loop_start()` instead."] pub fn loop_start(&mut self, val: f64) -> &mut Self { self.set_loop_start(val); self } #[deprecated = "Use `set_playback_rate()` instead."] pub fn playback_rate(&mut self, val: f32) -> &mut Self { self.set_playback_rate(val); self } } impl Default for AudioBufferSourceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioConfiguration.rs000064400000000000000000000075521046102023000207140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "bitrate")] pub fn get_bitrate(this: &AudioConfiguration) -> Option; #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, setter = "bitrate")] pub fn set_bitrate(this: &AudioConfiguration, val: f64); #[doc = "Get the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "channels")] pub fn get_channels(this: &AudioConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, setter = "channels")] pub fn set_channels(this: &AudioConfiguration, val: &str); #[doc = "Get the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "contentType")] pub fn get_content_type(this: &AudioConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, setter = "contentType")] pub fn set_content_type(this: &AudioConfiguration, val: &str); #[doc = "Get the `samplerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "samplerate")] pub fn get_samplerate(this: &AudioConfiguration) -> Option; #[doc = "Change the `samplerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, setter = "samplerate")] pub fn set_samplerate(this: &AudioConfiguration, val: u32); } 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 } #[deprecated = "Use `set_bitrate()` instead."] pub fn bitrate(&mut self, val: f64) -> &mut Self { self.set_bitrate(val); self } #[deprecated = "Use `set_channels()` instead."] pub fn channels(&mut self, val: &str) -> &mut Self { self.set_channels(val); self } #[deprecated = "Use `set_content_type()` instead."] pub fn content_type(&mut self, val: &str) -> &mut Self { self.set_content_type(val); self } #[deprecated = "Use `set_samplerate()` instead."] pub fn samplerate(&mut self, val: u32) -> &mut Self { self.set_samplerate(val); self } } impl Default for AudioConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioContext.rs000064400000000000000000001024071046102023000175240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sinkId)] #[doc = "Getter for the `sinkId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sinkId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sink_id(this: &AudioContext) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onsinkchange)] #[doc = "Getter for the `onsinkchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsinkchange(this: &AudioContext) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onsinkchange)] #[doc = "Setter for the `onsinkchange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsinkchange(this: &AudioContext, value: Option<&::js_sys::Function>); #[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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)] #[doc = "The `setSinkId()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_sink_id_with_str(this: &AudioContext, sink_id: &str) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSinkOptions")] # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)] #[doc = "The `setSinkId()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioSinkOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_sink_id_with_audio_sink_options( this: &AudioContext, sink_id: &AudioSinkOptions, ) -> ::js_sys::Promise; # [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(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_with_f32_array_and_f32_slice( this: &AudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], ) -> 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_with_f32_slice_and_f32_array( this: &AudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, ) -> 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_with_f32_array_and_f32_array( this: &AudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, ) -> 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(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_f32_array_and_f32_slice_and_constraints( this: &AudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> 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_f32_slice_and_f32_array_and_constraints( this: &AudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, constraints: &PeriodicWaveConstraints, ) -> 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_f32_array_and_f32_array_and_constraints( this: &AudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, 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>; } web-sys-0.3.81/src/features/gen_AudioContextLatencyCategory.rs000064400000000000000000000006661046102023000225460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `AudioContextLatencyCategory` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextLatencyCategory`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AudioContextLatencyCategory { Balanced = "balanced", Interactive = "interactive", Playback = "playback", } web-sys-0.3.81/src/features/gen_AudioContextOptions.rs000064400000000000000000000074541046102023000211060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `latencyHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[wasm_bindgen(method, getter = "latencyHint")] pub fn get_latency_hint(this: &AudioContextOptions) -> ::wasm_bindgen::JsValue; #[doc = "Change the `latencyHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[wasm_bindgen(method, setter = "latencyHint")] pub fn set_latency_hint(this: &AudioContextOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &AudioContextOptions) -> Option; #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &AudioContextOptions, val: f32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sinkId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sinkId")] pub fn get_sink_id(this: &AudioContextOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sinkId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sinkId")] pub fn set_sink_id(this: &AudioContextOptions, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_latency_hint()` instead."] pub fn latency_hint(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_latency_hint(val); self } #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: f32) -> &mut Self { self.set_sample_rate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sink_id()` instead."] pub fn sink_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_sink_id(val); self } } impl Default for AudioContextOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioContextState.rs000064400000000000000000000006161046102023000205240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_AudioData.rs000064400000000000000000000252571046102023000167600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioData , typescript_type = "AudioData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioData; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = format)] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/format)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &AudioData) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , 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/AudioData/sampleRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_rate(this: &AudioData) -> f32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , js_name = numberOfFrames)] #[doc = "Getter for the `numberOfFrames` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/numberOfFrames)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn number_of_frames(this: &AudioData) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , 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/AudioData/numberOfChannels)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn number_of_channels(this: &AudioData) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , 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/AudioData/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &AudioData) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioData" , 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/AudioData/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &AudioData) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataInit")] #[wasm_bindgen(catch, constructor, js_class = "AudioData")] #[doc = "The `new AudioData(..)` constructor, creating a new instance of `AudioData`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/AudioData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &AudioDataInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] # [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = allocationSize)] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/allocationSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allocation_size( this: &AudioData, options: &AudioDataCopyToOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clone(this: &AudioData) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "AudioData" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &AudioData); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] # [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source( this: &AudioData, destination: &::js_sys::Object, options: &AudioDataCopyToOptions, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] # [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_slice( this: &AudioData, destination: &mut [u8], options: &AudioDataCopyToOptions, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDataCopyToOptions")] # [wasm_bindgen (catch , method , structural , js_class = "AudioData" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioData/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_array( this: &AudioData, destination: &::js_sys::Uint8Array, options: &AudioDataCopyToOptions, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_AudioDataCopyToOptions.rs000064400000000000000000000156601046102023000214670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataCopyToOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDataCopyToOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDataCopyToOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &AudioDataCopyToOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &AudioDataCopyToOptions, val: AudioSampleFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `frameCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frameCount")] pub fn get_frame_count(this: &AudioDataCopyToOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `frameCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frameCount")] pub fn set_frame_count(this: &AudioDataCopyToOptions, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `frameOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frameOffset")] pub fn get_frame_offset(this: &AudioDataCopyToOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `frameOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frameOffset")] pub fn set_frame_offset(this: &AudioDataCopyToOptions, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `planeIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "planeIndex")] pub fn get_plane_index(this: &AudioDataCopyToOptions) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `planeIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "planeIndex")] pub fn set_plane_index(this: &AudioDataCopyToOptions, val: u32); } #[cfg(web_sys_unstable_apis)] impl AudioDataCopyToOptions { #[doc = "Construct a new `AudioDataCopyToOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(plane_index: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_plane_index(plane_index); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: AudioSampleFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_frame_count()` instead."] pub fn frame_count(&mut self, val: u32) -> &mut Self { self.set_frame_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_frame_offset()` instead."] pub fn frame_offset(&mut self, val: u32) -> &mut Self { self.set_frame_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_plane_index()` instead."] pub fn plane_index(&mut self, val: u32) -> &mut Self { self.set_plane_index(val); self } } web-sys-0.3.81/src/features/gen_AudioDataInit.rs000064400000000000000000000234201046102023000175720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDataInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDataInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDataInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &AudioDataInit) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &AudioDataInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &AudioDataInit) -> AudioSampleFormat; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &AudioDataInit, val: AudioSampleFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numberOfChannels")] pub fn get_number_of_channels(this: &AudioDataInit) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numberOfChannels")] pub fn set_number_of_channels(this: &AudioDataInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numberOfFrames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numberOfFrames")] pub fn get_number_of_frames(this: &AudioDataInit) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numberOfFrames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numberOfFrames")] pub fn set_number_of_frames(this: &AudioDataInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &AudioDataInit) -> f32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &AudioDataInit, val: f32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &AudioDataInit) -> f64; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &AudioDataInit, val: f64); } #[cfg(web_sys_unstable_apis)] impl AudioDataInit { #[cfg(feature = "AudioSampleFormat")] #[doc = "Construct a new `AudioDataInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDataInit`, `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( data: &::js_sys::Object, format: AudioSampleFormat, number_of_channels: u32, number_of_frames: u32, sample_rate: f32, timestamp: f64, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_data(data); ret.set_format(format); ret.set_number_of_channels(number_of_channels); ret.set_number_of_frames(number_of_frames); ret.set_sample_rate(sample_rate); ret.set_timestamp(timestamp); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_data(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSampleFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: AudioSampleFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_number_of_channels()` instead."] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { self.set_number_of_channels(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_number_of_frames()` instead."] pub fn number_of_frames(&mut self, val: u32) -> &mut Self { self.set_number_of_frames(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: f32) -> &mut Self { self.set_sample_rate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } web-sys-0.3.81/src/features/gen_AudioDecoder.rs000064400000000000000000000171111046102023000174420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoder , typescript_type = "AudioDecoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDecoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] # [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , 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/AudioDecoder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `CodecState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &AudioDecoder) -> CodecState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = decodeQueueSize)] #[doc = "Getter for the `decodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decodeQueueSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode_queue_size(this: &AudioDecoder) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderInit")] #[wasm_bindgen(catch, constructor, js_class = "AudioDecoder")] #[doc = "The `new AudioDecoder(..)` constructor, creating a new instance of `AudioDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/AudioDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &AudioDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &AudioDecoder) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] # [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = configure)] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/configure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure(this: &AudioDecoder, config: &AudioDecoderConfig) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunk")] # [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode(this: &AudioDecoder, chunk: &EncodedAudioChunk) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "AudioDecoder" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn flush(this: &AudioDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] # [wasm_bindgen (static_method_of = AudioDecoder , js_class = "AudioDecoder" , js_name = isConfigSupported)] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/isConfigSupported_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`, `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &AudioDecoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "AudioDecoder" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &AudioDecoder) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_AudioDecoderConfig.rs000064400000000000000000000155321046102023000205750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderConfig)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderConfig` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDecoderConfig; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] pub fn get_codec(this: &AudioDecoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codec")] pub fn set_codec(this: &AudioDecoderConfig, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &AudioDecoderConfig) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &AudioDecoderConfig, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numberOfChannels")] pub fn get_number_of_channels(this: &AudioDecoderConfig) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numberOfChannels")] pub fn set_number_of_channels(this: &AudioDecoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &AudioDecoderConfig) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &AudioDecoderConfig, val: u32); } #[cfg(web_sys_unstable_apis)] impl AudioDecoderConfig { #[doc = "Construct a new `AudioDecoderConfig`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(codec: &str, number_of_channels: u32, sample_rate: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_codec(codec); ret.set_number_of_channels(number_of_channels); ret.set_sample_rate(sample_rate); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_codec()` instead."] pub fn codec(&mut self, val: &str) -> &mut Self { self.set_codec(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_description(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_number_of_channels()` instead."] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { self.set_number_of_channels(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: u32) -> &mut Self { self.set_sample_rate(val); self } } web-sys-0.3.81/src/features/gen_AudioDecoderInit.rs000064400000000000000000000100561046102023000202670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDecoderInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &AudioDecoderInit) -> ::js_sys::Function; #[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: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &AudioDecoderInit, val: &::js_sys::Function); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "output")] pub fn get_output(this: &AudioDecoderInit) -> ::js_sys::Function; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "output")] pub fn set_output(this: &AudioDecoderInit, val: &::js_sys::Function); } #[cfg(web_sys_unstable_apis)] impl AudioDecoderInit { #[doc = "Construct a new `AudioDecoderInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error(error); ret.set_output(output); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_error(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_output()` instead."] pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_output(val); self } } web-sys-0.3.81/src/features/gen_AudioDecoderSupport.rs000064400000000000000000000104271046102023000210420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoderSupport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioDecoderSupport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioDecoderSupport; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] #[doc = "Get the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "config")] pub fn get_config(this: &AudioDecoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] #[doc = "Change the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "config")] pub fn set_config(this: &AudioDecoderSupport, val: &AudioDecoderConfig); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "supported")] pub fn get_supported(this: &AudioDecoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "supported")] pub fn set_supported(this: &AudioDecoderSupport, val: bool); } #[cfg(web_sys_unstable_apis)] impl AudioDecoderSupport { #[doc = "Construct a new `AudioDecoderSupport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AudioDecoderConfig")] #[deprecated = "Use `set_config()` instead."] pub fn config(&mut self, val: &AudioDecoderConfig) -> &mut Self { self.set_config(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_supported()` instead."] pub fn supported(&mut self, val: bool) -> &mut Self { self.set_supported(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AudioDecoderSupport { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioDestinationNode.rs000064400000000000000000000022321046102023000211620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AudioEncoder.rs000064400000000000000000000170601046102023000174570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoder , typescript_type = "AudioEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] # [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , 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/AudioEncoder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `CodecState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &AudioEncoder) -> CodecState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = encodeQueueSize)] #[doc = "Getter for the `encodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encodeQueueSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode_queue_size(this: &AudioEncoder) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderInit")] #[wasm_bindgen(catch, constructor, js_class = "AudioEncoder")] #[doc = "The `new AudioEncoder(..)` constructor, creating a new instance of `AudioEncoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/AudioEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &AudioEncoderInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &AudioEncoder) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] # [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = configure)] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/configure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure(this: &AudioEncoder, config: &AudioEncoderConfig) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioData")] # [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = encode)] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioData`, `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode(this: &AudioEncoder, data: &AudioData) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "AudioEncoder" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn flush(this: &AudioEncoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] # [wasm_bindgen (static_method_of = AudioEncoder , js_class = "AudioEncoder" , js_name = isConfigSupported)] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/isConfigSupported_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`, `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &AudioEncoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "AudioEncoder" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &AudioEncoder) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_AudioEncoderConfig.rs000064400000000000000000000152201046102023000206010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderConfig)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderConfig` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioEncoderConfig; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bitrate")] pub fn get_bitrate(this: &AudioEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bitrate")] pub fn set_bitrate(this: &AudioEncoderConfig, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] pub fn get_codec(this: &AudioEncoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codec")] pub fn set_codec(this: &AudioEncoderConfig, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numberOfChannels")] pub fn get_number_of_channels(this: &AudioEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numberOfChannels")] pub fn set_number_of_channels(this: &AudioEncoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &AudioEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &AudioEncoderConfig, val: u32); } #[cfg(web_sys_unstable_apis)] impl AudioEncoderConfig { #[doc = "Construct a new `AudioEncoderConfig`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(codec: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_codec(codec); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bitrate()` instead."] pub fn bitrate(&mut self, val: f64) -> &mut Self { self.set_bitrate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_codec()` instead."] pub fn codec(&mut self, val: &str) -> &mut Self { self.set_codec(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_number_of_channels()` instead."] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { self.set_number_of_channels(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: u32) -> &mut Self { self.set_sample_rate(val); self } } web-sys-0.3.81/src/features/gen_AudioEncoderInit.rs000064400000000000000000000100561046102023000203010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioEncoderInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &AudioEncoderInit) -> ::js_sys::Function; #[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: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &AudioEncoderInit, val: &::js_sys::Function); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "output")] pub fn get_output(this: &AudioEncoderInit) -> ::js_sys::Function; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "output")] pub fn set_output(this: &AudioEncoderInit, val: &::js_sys::Function); } #[cfg(web_sys_unstable_apis)] impl AudioEncoderInit { #[doc = "Construct a new `AudioEncoderInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error(error); ret.set_output(output); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_error(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_output()` instead."] pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_output(val); self } } web-sys-0.3.81/src/features/gen_AudioEncoderSupport.rs000064400000000000000000000104271046102023000210540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoderSupport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioEncoderSupport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioEncoderSupport; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] #[doc = "Get the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "config")] pub fn get_config(this: &AudioEncoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioEncoderConfig")] #[doc = "Change the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "config")] pub fn set_config(this: &AudioEncoderSupport, val: &AudioEncoderConfig); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "supported")] pub fn get_supported(this: &AudioEncoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "supported")] pub fn set_supported(this: &AudioEncoderSupport, val: bool); } #[cfg(web_sys_unstable_apis)] impl AudioEncoderSupport { #[doc = "Construct a new `AudioEncoderSupport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AudioEncoderConfig")] #[deprecated = "Use `set_config()` instead."] pub fn config(&mut self, val: &AudioEncoderConfig) -> &mut Self { self.set_config(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_supported()` instead."] pub fn supported(&mut self, val: bool) -> &mut Self { self.set_supported(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AudioEncoderSupport { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioListener.rs000064400000000000000000000075461046102023000176750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_AudioNode.rs000064400000000000000000000263611046102023000167710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_AudioNodeOptions.rs000064400000000000000000000072751046102023000203500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &AudioNodeOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &AudioNodeOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelCountMode`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &AudioNodeOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &AudioNodeOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelInterpretation`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &AudioNodeOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &AudioNodeOptions, val: ChannelInterpretation); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } } impl Default for AudioNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioParam.rs000064400000000000000000000150771046102023000171460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [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_with_f32_array( this: &AudioParam, values: &::js_sys::Float32Array, start_time: f64, duration: f64, ) -> Result; } web-sys-0.3.81/src/features/gen_AudioParamMap.rs000064400000000000000000000071041046102023000175740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "AudioParamMap" , 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/AudioParamMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn size(this: &AudioParamMap) -> u32; # [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn entries(this: &AudioParamMap) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "AudioParamMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn for_each(this: &AudioParamMap, callback: &::js_sys::Function) -> Result<(), JsValue>; #[cfg(feature = "AudioParam")] # [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `AudioParamMap`*"] pub fn get(this: &AudioParamMap, key: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn has(this: &AudioParamMap, key: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn keys(this: &AudioParamMap) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "AudioParamMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] pub fn values(this: &AudioParamMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_AudioProcessingEvent.rs000064400000000000000000000043671046102023000212240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AudioSampleFormat.rs000064400000000000000000000013771046102023000204760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `AudioSampleFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSampleFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AudioSampleFormat { U8 = "u8", S16 = "s16", S32 = "s32", F32 = "f32", U8Planar = "u8-planar", S16Planar = "s16-planar", S32Planar = "s32-planar", F32Planar = "f32-planar", } web-sys-0.3.81/src/features/gen_AudioScheduledSourceNode.rs000064400000000000000000000071261046102023000217710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] pub type AudioScheduledSourceNode; # [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>; # [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>); # [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>; # [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>; # [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>; # [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>; } web-sys-0.3.81/src/features/gen_AudioSinkInfo.rs000064400000000000000000000031421046102023000176140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkInfo , typescript_type = "AudioSinkInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioSinkInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioSinkInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioSinkInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSinkType")] # [wasm_bindgen (structural , method , getter , js_class = "AudioSinkInfo" , 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/AudioSinkInfo/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`, `AudioSinkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &AudioSinkInfo) -> AudioSinkType; } web-sys-0.3.81/src/features/gen_AudioSinkOptions.rs000064400000000000000000000055401046102023000203600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AudioSinkOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AudioSinkOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSinkType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &AudioSinkOptions) -> AudioSinkType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSinkType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &AudioSinkOptions, val: AudioSinkType); } #[cfg(web_sys_unstable_apis)] impl AudioSinkOptions { #[cfg(feature = "AudioSinkType")] #[doc = "Construct a new `AudioSinkOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(type_: AudioSinkType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioSinkType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: AudioSinkType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_AudioSinkType.rs000064400000000000000000000011161046102023000176410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `AudioSinkType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioSinkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AudioSinkType { None = "none", } web-sys-0.3.81/src/features/gen_AudioStreamTrack.rs000064400000000000000000000012131046102023000203110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AudioTrack.rs000064400000000000000000000072601046102023000171450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); #[cfg(feature = "SourceBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = sourceBuffer)] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/sourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `SourceBuffer`*"] pub fn source_buffer(this: &AudioTrack) -> Option; } web-sys-0.3.81/src/features/gen_AudioTrackList.rs000064400000000000000000000115431046102023000200000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"] pub fn get(this: &AudioTrackList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_AudioWorklet.rs000064400000000000000000000011221046102023000175170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AudioWorkletGlobalScope.rs000064400000000000000000000053041046102023000216400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_AudioWorkletNode.rs000064400000000000000000000100031046102023000203230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AudioWorkletNodeOptions.rs000064400000000000000000000200451046102023000217060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &AudioWorkletNodeOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &AudioWorkletNodeOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelCountMode`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &AudioWorkletNodeOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &AudioWorkletNodeOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelInterpretation`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation( this: &AudioWorkletNodeOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &AudioWorkletNodeOptions, val: ChannelInterpretation); #[doc = "Get the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "numberOfInputs")] pub fn get_number_of_inputs(this: &AudioWorkletNodeOptions) -> Option; #[doc = "Change the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "numberOfInputs")] pub fn set_number_of_inputs(this: &AudioWorkletNodeOptions, val: u32); #[doc = "Get the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "numberOfOutputs")] pub fn get_number_of_outputs(this: &AudioWorkletNodeOptions) -> Option; #[doc = "Change the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "numberOfOutputs")] pub fn set_number_of_outputs(this: &AudioWorkletNodeOptions, val: u32); #[doc = "Get the `outputChannelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "outputChannelCount")] pub fn get_output_channel_count(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Array>; #[doc = "Change the `outputChannelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "outputChannelCount")] pub fn set_output_channel_count(this: &AudioWorkletNodeOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `parameterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "parameterData")] pub fn get_parameter_data(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Object>; #[doc = "Change the `parameterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "parameterData")] pub fn set_parameter_data(this: &AudioWorkletNodeOptions, val: &::js_sys::Object); #[doc = "Get the `processorOptions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, getter = "processorOptions")] pub fn get_processor_options(this: &AudioWorkletNodeOptions) -> Option<::js_sys::Object>; #[doc = "Change the `processorOptions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] #[wasm_bindgen(method, setter = "processorOptions")] pub fn set_processor_options(this: &AudioWorkletNodeOptions, val: Option<&::js_sys::Object>); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_number_of_inputs()` instead."] pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { self.set_number_of_inputs(val); self } #[deprecated = "Use `set_number_of_outputs()` instead."] pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { self.set_number_of_outputs(val); self } #[deprecated = "Use `set_output_channel_count()` instead."] pub fn output_channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_output_channel_count(val); self } #[deprecated = "Use `set_parameter_data()` instead."] pub fn parameter_data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_parameter_data(val); self } #[deprecated = "Use `set_processor_options()` instead."] pub fn processor_options(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_processor_options(val); self } } impl Default for AudioWorkletNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AudioWorkletProcessor.rs000064400000000000000000000044601046102023000214270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsClientInputs.rs000064400000000000000000000220771046102023000245230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "appid")] pub fn get_appid( this: &AuthenticationExtensionsClientInputs, ) -> Option<::alloc::string::String>; #[doc = "Change the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, setter = "appid")] pub fn set_appid(this: &AuthenticationExtensionsClientInputs, val: &str); #[doc = "Get the `appidExclude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "appidExclude")] pub fn get_appid_exclude( this: &AuthenticationExtensionsClientInputs, ) -> Option<::alloc::string::String>; #[doc = "Change the `appidExclude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, setter = "appidExclude")] pub fn set_appid_exclude(this: &AuthenticationExtensionsClientInputs, val: &str); #[doc = "Get the `credProps` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "credProps")] pub fn get_cred_props(this: &AuthenticationExtensionsClientInputs) -> Option; #[doc = "Change the `credProps` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, setter = "credProps")] pub fn set_cred_props(this: &AuthenticationExtensionsClientInputs, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")] #[doc = "Get the `devicePubKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "devicePubKey")] pub fn get_device_pub_key( this: &AuthenticationExtensionsClientInputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")] #[doc = "Change the `devicePubKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "devicePubKey")] pub fn set_device_pub_key( this: &AuthenticationExtensionsClientInputs, val: &AuthenticationExtensionsDevicePublicKeyInputs, ); #[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")] #[doc = "Get the `largeBlob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, getter = "largeBlob")] pub fn get_large_blob( this: &AuthenticationExtensionsClientInputs, ) -> Option; #[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")] #[doc = "Change the `largeBlob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, setter = "largeBlob")] pub fn set_large_blob( this: &AuthenticationExtensionsClientInputs, val: &AuthenticationExtensionsLargeBlobInputs, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfInputs")] #[doc = "Get the `prf` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "prf")] pub fn get_prf( this: &AuthenticationExtensionsClientInputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfInputs")] #[doc = "Change the `prf` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "prf")] pub fn set_prf( this: &AuthenticationExtensionsClientInputs, val: &AuthenticationExtensionsPrfInputs, ); #[doc = "Get the `uvm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "uvm")] pub fn get_uvm(this: &AuthenticationExtensionsClientInputs) -> Option; #[doc = "Change the `uvm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, setter = "uvm")] pub fn set_uvm(this: &AuthenticationExtensionsClientInputs, val: bool); } 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 } #[deprecated = "Use `set_appid()` instead."] pub fn appid(&mut self, val: &str) -> &mut Self { self.set_appid(val); self } #[deprecated = "Use `set_appid_exclude()` instead."] pub fn appid_exclude(&mut self, val: &str) -> &mut Self { self.set_appid_exclude(val); self } #[deprecated = "Use `set_cred_props()` instead."] pub fn cred_props(&mut self, val: bool) -> &mut Self { self.set_cred_props(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")] #[deprecated = "Use `set_device_pub_key()` instead."] pub fn device_pub_key( &mut self, val: &AuthenticationExtensionsDevicePublicKeyInputs, ) -> &mut Self { self.set_device_pub_key(val); self } #[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")] #[deprecated = "Use `set_large_blob()` instead."] pub fn large_blob(&mut self, val: &AuthenticationExtensionsLargeBlobInputs) -> &mut Self { self.set_large_blob(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfInputs")] #[deprecated = "Use `set_prf()` instead."] pub fn prf(&mut self, val: &AuthenticationExtensionsPrfInputs) -> &mut Self { self.set_prf(val); self } #[deprecated = "Use `set_uvm()` instead."] pub fn uvm(&mut self, val: bool) -> &mut Self { self.set_uvm(val); self } } impl Default for AuthenticationExtensionsClientInputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsClientInputsJson.rs000064400000000000000000000032031046102023000253430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputsJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientInputsJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsClientInputsJson; } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsClientInputsJson { #[doc = "Construct a new `AuthenticationExtensionsClientInputsJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] impl Default for AuthenticationExtensionsClientInputsJson { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsClientOutputs.rs000064400000000000000000000226511046102023000247220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, getter = "appid")] pub fn get_appid(this: &AuthenticationExtensionsClientOutputs) -> Option; #[doc = "Change the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, setter = "appid")] pub fn set_appid(this: &AuthenticationExtensionsClientOutputs, val: bool); #[doc = "Get the `appidExclude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, getter = "appidExclude")] pub fn get_appid_exclude(this: &AuthenticationExtensionsClientOutputs) -> Option; #[doc = "Change the `appidExclude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, setter = "appidExclude")] pub fn set_appid_exclude(this: &AuthenticationExtensionsClientOutputs, val: bool); #[cfg(feature = "CredentialPropertiesOutput")] #[doc = "Get the `credProps` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"] #[wasm_bindgen(method, getter = "credProps")] pub fn get_cred_props( this: &AuthenticationExtensionsClientOutputs, ) -> Option; #[cfg(feature = "CredentialPropertiesOutput")] #[doc = "Change the `credProps` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `CredentialPropertiesOutput`*"] #[wasm_bindgen(method, setter = "credProps")] pub fn set_cred_props( this: &AuthenticationExtensionsClientOutputs, val: &CredentialPropertiesOutput, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")] #[doc = "Get the `devicePubKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "devicePubKey")] pub fn get_device_pub_key( this: &AuthenticationExtensionsClientOutputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")] #[doc = "Change the `devicePubKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "devicePubKey")] pub fn set_device_pub_key( this: &AuthenticationExtensionsClientOutputs, val: &AuthenticationExtensionsDevicePublicKeyOutputs, ); #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")] #[doc = "Get the `largeBlob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, getter = "largeBlob")] pub fn get_large_blob( this: &AuthenticationExtensionsClientOutputs, ) -> Option; #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")] #[doc = "Change the `largeBlob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, setter = "largeBlob")] pub fn set_large_blob( this: &AuthenticationExtensionsClientOutputs, val: &AuthenticationExtensionsLargeBlobOutputs, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfOutputs")] #[doc = "Get the `prf` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "prf")] pub fn get_prf( this: &AuthenticationExtensionsClientOutputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfOutputs")] #[doc = "Change the `prf` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "prf")] pub fn set_prf( this: &AuthenticationExtensionsClientOutputs, val: &AuthenticationExtensionsPrfOutputs, ); #[doc = "Get the `uvm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, getter = "uvm")] pub fn get_uvm(this: &AuthenticationExtensionsClientOutputs) -> Option<::js_sys::Array>; #[doc = "Change the `uvm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] #[wasm_bindgen(method, setter = "uvm")] pub fn set_uvm(this: &AuthenticationExtensionsClientOutputs, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_appid()` instead."] pub fn appid(&mut self, val: bool) -> &mut Self { self.set_appid(val); self } #[deprecated = "Use `set_appid_exclude()` instead."] pub fn appid_exclude(&mut self, val: bool) -> &mut Self { self.set_appid_exclude(val); self } #[cfg(feature = "CredentialPropertiesOutput")] #[deprecated = "Use `set_cred_props()` instead."] pub fn cred_props(&mut self, val: &CredentialPropertiesOutput) -> &mut Self { self.set_cred_props(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")] #[deprecated = "Use `set_device_pub_key()` instead."] pub fn device_pub_key( &mut self, val: &AuthenticationExtensionsDevicePublicKeyOutputs, ) -> &mut Self { self.set_device_pub_key(val); self } #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")] #[deprecated = "Use `set_large_blob()` instead."] pub fn large_blob(&mut self, val: &AuthenticationExtensionsLargeBlobOutputs) -> &mut Self { self.set_large_blob(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfOutputs")] #[deprecated = "Use `set_prf()` instead."] pub fn prf(&mut self, val: &AuthenticationExtensionsPrfOutputs) -> &mut Self { self.set_prf(val); self } #[deprecated = "Use `set_uvm()` instead."] pub fn uvm(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_uvm(val); self } } impl Default for AuthenticationExtensionsClientOutputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsClientOutputsJson.rs000064400000000000000000000032131046102023000255450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputsJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsClientOutputsJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsClientOutputsJson; } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsClientOutputsJson { #[doc = "Construct a new `AuthenticationExtensionsClientOutputsJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] impl Default for AuthenticationExtensionsClientOutputsJson { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsDevicePublicKeyInputs.rs000064400000000000000000000113341046102023000263060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsDevicePublicKeyInputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsDevicePublicKeyInputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsDevicePublicKeyInputs; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] pub fn get_attestation( this: &AuthenticationExtensionsDevicePublicKeyInputs, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestation")] pub fn set_attestation(this: &AuthenticationExtensionsDevicePublicKeyInputs, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationFormats")] pub fn get_attestation_formats( this: &AuthenticationExtensionsDevicePublicKeyInputs, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationFormats")] pub fn set_attestation_formats( this: &AuthenticationExtensionsDevicePublicKeyInputs, val: &::wasm_bindgen::JsValue, ); } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsDevicePublicKeyInputs { #[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyInputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_attestation()` instead."] pub fn attestation(&mut self, val: &str) -> &mut Self { self.set_attestation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_formats()` instead."] pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attestation_formats(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AuthenticationExtensionsDevicePublicKeyInputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsDevicePublicKeyOutputs.rs000064400000000000000000000062711046102023000265130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsDevicePublicKeyOutputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsDevicePublicKeyOutputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsDevicePublicKeyOutputs; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `signature` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signature")] pub fn get_signature( this: &AuthenticationExtensionsDevicePublicKeyOutputs, ) -> Option<::js_sys::ArrayBuffer>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `signature` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "signature")] pub fn set_signature( this: &AuthenticationExtensionsDevicePublicKeyOutputs, val: &::js_sys::ArrayBuffer, ); } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsDevicePublicKeyOutputs { #[doc = "Construct a new `AuthenticationExtensionsDevicePublicKeyOutputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsDevicePublicKeyOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_signature()` instead."] pub fn signature(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self { self.set_signature(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AuthenticationExtensionsDevicePublicKeyOutputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsLargeBlobInputs.rs000064400000000000000000000067411046102023000251360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsLargeBlobInputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsLargeBlobInputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] pub type AuthenticationExtensionsLargeBlobInputs; #[doc = "Get the `read` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, getter = "read")] pub fn get_read(this: &AuthenticationExtensionsLargeBlobInputs) -> Option; #[doc = "Change the `read` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, setter = "read")] pub fn set_read(this: &AuthenticationExtensionsLargeBlobInputs, val: bool); #[doc = "Get the `support` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, getter = "support")] pub fn get_support( this: &AuthenticationExtensionsLargeBlobInputs, ) -> Option<::alloc::string::String>; #[doc = "Change the `support` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, setter = "support")] pub fn set_support(this: &AuthenticationExtensionsLargeBlobInputs, val: &str); #[doc = "Get the `write` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, getter = "write")] pub fn get_write(this: &AuthenticationExtensionsLargeBlobInputs) -> Option<::js_sys::Object>; #[doc = "Change the `write` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, setter = "write")] pub fn set_write(this: &AuthenticationExtensionsLargeBlobInputs, val: &::js_sys::Object); } impl AuthenticationExtensionsLargeBlobInputs { #[doc = "Construct a new `AuthenticationExtensionsLargeBlobInputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_read()` instead."] pub fn read(&mut self, val: bool) -> &mut Self { self.set_read(val); self } #[deprecated = "Use `set_support()` instead."] pub fn support(&mut self, val: &str) -> &mut Self { self.set_support(val); self } #[deprecated = "Use `set_write()` instead."] pub fn write(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_write(val); self } } impl Default for AuthenticationExtensionsLargeBlobInputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsLargeBlobOutputs.rs000064400000000000000000000070251046102023000253330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsLargeBlobOutputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsLargeBlobOutputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] pub type AuthenticationExtensionsLargeBlobOutputs; #[doc = "Get the `blob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, getter = "blob")] pub fn get_blob( this: &AuthenticationExtensionsLargeBlobOutputs, ) -> Option<::js_sys::ArrayBuffer>; #[doc = "Change the `blob` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, setter = "blob")] pub fn set_blob(this: &AuthenticationExtensionsLargeBlobOutputs, val: &::js_sys::ArrayBuffer); #[doc = "Get the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, getter = "supported")] pub fn get_supported(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option; #[doc = "Change the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, setter = "supported")] pub fn set_supported(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool); #[doc = "Get the `written` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, getter = "written")] pub fn get_written(this: &AuthenticationExtensionsLargeBlobOutputs) -> Option; #[doc = "Change the `written` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] #[wasm_bindgen(method, setter = "written")] pub fn set_written(this: &AuthenticationExtensionsLargeBlobOutputs, val: bool); } impl AuthenticationExtensionsLargeBlobOutputs { #[doc = "Construct a new `AuthenticationExtensionsLargeBlobOutputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobOutputs`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_blob()` instead."] pub fn blob(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self { self.set_blob(val); self } #[deprecated = "Use `set_supported()` instead."] pub fn supported(&mut self, val: bool) -> &mut Self { self.set_supported(val); self } #[deprecated = "Use `set_written()` instead."] pub fn written(&mut self, val: bool) -> &mut Self { self.set_written(val); self } } impl Default for AuthenticationExtensionsLargeBlobOutputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsPrfInputs.rs000064400000000000000000000114011046102023000240210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFInputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsPrfInputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsPrfInputs; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[doc = "Get the `eval` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`, `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "eval")] pub fn get_eval( this: &AuthenticationExtensionsPrfInputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[doc = "Change the `eval` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`, `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "eval")] pub fn set_eval( this: &AuthenticationExtensionsPrfInputs, val: &AuthenticationExtensionsPrfValues, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `evalByCredential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "evalByCredential")] pub fn get_eval_by_credential( this: &AuthenticationExtensionsPrfInputs, ) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `evalByCredential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "evalByCredential")] pub fn set_eval_by_credential(this: &AuthenticationExtensionsPrfInputs, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsPrfInputs { #[doc = "Construct a new `AuthenticationExtensionsPrfInputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfInputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AuthenticationExtensionsPrfValues")] #[deprecated = "Use `set_eval()` instead."] pub fn eval(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self { self.set_eval(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_eval_by_credential()` instead."] pub fn eval_by_credential(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_eval_by_credential(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AuthenticationExtensionsPrfInputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsPrfOutputs.rs000064400000000000000000000112341046102023000242260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFOutputs)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsPrfOutputs` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsPrfOutputs; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `enabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "enabled")] pub fn get_enabled(this: &AuthenticationExtensionsPrfOutputs) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `enabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "enabled")] pub fn set_enabled(this: &AuthenticationExtensionsPrfOutputs, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[doc = "Get the `results` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "results")] pub fn get_results( this: &AuthenticationExtensionsPrfOutputs, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[doc = "Change the `results` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`, `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "results")] pub fn set_results( this: &AuthenticationExtensionsPrfOutputs, val: &AuthenticationExtensionsPrfValues, ); } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsPrfOutputs { #[doc = "Construct a new `AuthenticationExtensionsPrfOutputs`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfOutputs`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_enabled()` instead."] pub fn enabled(&mut self, val: bool) -> &mut Self { self.set_enabled(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[deprecated = "Use `set_results()` instead."] pub fn results(&mut self, val: &AuthenticationExtensionsPrfValues) -> &mut Self { self.set_results(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for AuthenticationExtensionsPrfOutputs { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticationExtensionsPrfValues.rs000064400000000000000000000103521046102023000240020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationExtensionsPRFValues)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationExtensionsPrfValues` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationExtensionsPrfValues; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `first` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "first")] pub fn get_first(this: &AuthenticationExtensionsPrfValues) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `first` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "first")] pub fn set_first(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `second` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "second")] pub fn get_second(this: &AuthenticationExtensionsPrfValues) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `second` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "second")] pub fn set_second(this: &AuthenticationExtensionsPrfValues, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl AuthenticationExtensionsPrfValues { #[doc = "Construct a new `AuthenticationExtensionsPrfValues`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsPrfValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(first: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_first(first); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_first()` instead."] pub fn first(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_first(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_second()` instead."] pub fn second(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_second(val); self } } web-sys-0.3.81/src/features/gen_AuthenticationResponseJson.rs000064400000000000000000000257671046102023000224630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticationResponseJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticationResponseJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticationResponseJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorAttachment")] pub fn get_authenticator_attachment( this: &AuthenticationResponseJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "authenticatorAttachment")] pub fn set_authenticator_attachment(this: &AuthenticationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[doc = "Get the `clientExtensionResults` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientExtensionResults")] pub fn get_client_extension_results( this: &AuthenticationResponseJson, ) -> AuthenticationExtensionsClientOutputsJson; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[doc = "Change the `clientExtensionResults` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clientExtensionResults")] pub fn set_client_extension_results( this: &AuthenticationResponseJson, val: &AuthenticationExtensionsClientOutputsJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &AuthenticationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rawId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rawId")] pub fn get_raw_id(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rawId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rawId")] pub fn set_raw_id(this: &AuthenticationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAssertionResponseJson")] #[doc = "Get the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "response")] pub fn get_response(this: &AuthenticationResponseJson) -> AuthenticatorAssertionResponseJson; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAssertionResponseJson")] #[doc = "Change the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "response")] pub fn set_response( this: &AuthenticationResponseJson, val: &AuthenticatorAssertionResponseJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &AuthenticationResponseJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl AuthenticationResponseJson { #[cfg(all( feature = "AuthenticationExtensionsClientOutputsJson", feature = "AuthenticatorAssertionResponseJson", ))] #[doc = "Construct a new `AuthenticationResponseJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticationResponseJson`, `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( client_extension_results: &AuthenticationExtensionsClientOutputsJson, id: &str, raw_id: &str, response: &AuthenticatorAssertionResponseJson, type_: &str, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_client_extension_results(client_extension_results); ret.set_id(id); ret.set_raw_id(raw_id); ret.set_response(response); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_authenticator_attachment()` instead."] pub fn authenticator_attachment(&mut self, val: &str) -> &mut Self { self.set_authenticator_attachment(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[deprecated = "Use `set_client_extension_results()` instead."] pub fn client_extension_results( &mut self, val: &AuthenticationExtensionsClientOutputsJson, ) -> &mut Self { self.set_client_extension_results(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_raw_id()` instead."] pub fn raw_id(&mut self, val: &str) -> &mut Self { self.set_raw_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAssertionResponseJson")] #[deprecated = "Use `set_response()` instead."] pub fn response(&mut self, val: &AuthenticatorAssertionResponseJson) -> &mut Self { self.set_response(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_AuthenticatorAssertionResponse.rs000064400000000000000000000063001046102023000233320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "AuthenticatorAssertionResponse" , 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/AuthenticatorAssertionResponse/attestationObject)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn attestation_object( this: &AuthenticatorAssertionResponse, ) -> Option<::js_sys::ArrayBuffer>; } web-sys-0.3.81/src/features/gen_AuthenticatorAssertionResponseJson.rs000064400000000000000000000215441046102023000241730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponseJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAssertionResponseJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticatorAssertionResponseJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationObject` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationObject")] pub fn get_attestation_object( this: &AuthenticatorAssertionResponseJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationObject` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationObject")] pub fn set_attestation_object(this: &AuthenticatorAssertionResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `authenticatorData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorData")] pub fn get_authenticator_data( this: &AuthenticatorAssertionResponseJson, ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "authenticatorData")] pub fn set_authenticator_data(this: &AuthenticatorAssertionResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientDataJSON")] pub fn get_client_data_json( this: &AuthenticatorAssertionResponseJson, ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clientDataJSON")] pub fn set_client_data_json(this: &AuthenticatorAssertionResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `signature` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signature")] pub fn get_signature(this: &AuthenticatorAssertionResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `signature` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "signature")] pub fn set_signature(this: &AuthenticatorAssertionResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `userHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "userHandle")] pub fn get_user_handle( this: &AuthenticatorAssertionResponseJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `userHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "userHandle")] pub fn set_user_handle(this: &AuthenticatorAssertionResponseJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl AuthenticatorAssertionResponseJson { #[doc = "Construct a new `AuthenticatorAssertionResponseJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(authenticator_data: &str, client_data_json: &str, signature: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_authenticator_data(authenticator_data); ret.set_client_data_json(client_data_json); ret.set_signature(signature); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_object()` instead."] pub fn attestation_object(&mut self, val: &str) -> &mut Self { self.set_attestation_object(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_authenticator_data()` instead."] pub fn authenticator_data(&mut self, val: &str) -> &mut Self { self.set_authenticator_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_client_data_json()` instead."] pub fn client_data_json(&mut self, val: &str) -> &mut Self { self.set_client_data_json(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_signature()` instead."] pub fn signature(&mut self, val: &str) -> &mut Self { self.set_signature(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_user_handle()` instead."] pub fn user_handle(&mut self, val: &str) -> &mut Self { self.set_user_handle(val); self } } web-sys-0.3.81/src/features/gen_AuthenticatorAttachment.rs000064400000000000000000000006241046102023000217370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_AuthenticatorAttestationResponse.rs000064400000000000000000000070371046102023000236720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getAuthenticatorData)] #[doc = "The `getAuthenticatorData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub fn get_authenticator_data( this: &AuthenticatorAttestationResponse, ) -> Result<::js_sys::ArrayBuffer, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getPublicKey)] #[doc = "The `getPublicKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub fn get_public_key( this: &AuthenticatorAttestationResponse, ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getPublicKeyAlgorithm)] #[doc = "The `getPublicKeyAlgorithm()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub fn get_public_key_algorithm( this: &AuthenticatorAttestationResponse, ) -> Result; # [wasm_bindgen (method , structural , js_class = "AuthenticatorAttestationResponse" , js_name = getTransports)] #[doc = "The `getTransports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/getTransports)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] pub fn get_transports(this: &AuthenticatorAttestationResponse) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_AuthenticatorAttestationResponseJson.rs000064400000000000000000000252131046102023000245200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponseJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `AuthenticatorAttestationResponseJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type AuthenticatorAttestationResponseJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationObject` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationObject")] pub fn get_attestation_object( this: &AuthenticatorAttestationResponseJson, ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationObject` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationObject")] pub fn set_attestation_object(this: &AuthenticatorAttestationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `authenticatorData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorData")] pub fn get_authenticator_data( this: &AuthenticatorAttestationResponseJson, ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "authenticatorData")] pub fn set_authenticator_data(this: &AuthenticatorAttestationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientDataJSON")] pub fn get_client_data_json( this: &AuthenticatorAttestationResponseJson, ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientDataJSON` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clientDataJSON")] pub fn set_client_data_json(this: &AuthenticatorAttestationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "publicKey")] pub fn get_public_key( this: &AuthenticatorAttestationResponseJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "publicKey")] pub fn set_public_key(this: &AuthenticatorAttestationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `publicKeyAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "publicKeyAlgorithm")] pub fn get_public_key_algorithm(this: &AuthenticatorAttestationResponseJson) -> f64; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `publicKeyAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "publicKeyAlgorithm")] pub fn set_public_key_algorithm(this: &AuthenticatorAttestationResponseJson, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "transports")] pub fn get_transports(this: &AuthenticatorAttestationResponseJson) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "transports")] pub fn set_transports( this: &AuthenticatorAttestationResponseJson, val: &::wasm_bindgen::JsValue, ); } #[cfg(web_sys_unstable_apis)] impl AuthenticatorAttestationResponseJson { #[doc = "Construct a new `AuthenticatorAttestationResponseJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( attestation_object: &str, authenticator_data: &str, client_data_json: &str, public_key_algorithm: f64, transports: &::wasm_bindgen::JsValue, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_attestation_object(attestation_object); ret.set_authenticator_data(authenticator_data); ret.set_client_data_json(client_data_json); ret.set_public_key_algorithm(public_key_algorithm); ret.set_transports(transports); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_object()` instead."] pub fn attestation_object(&mut self, val: &str) -> &mut Self { self.set_attestation_object(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_authenticator_data()` instead."] pub fn authenticator_data(&mut self, val: &str) -> &mut Self { self.set_authenticator_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_client_data_json()` instead."] pub fn client_data_json(&mut self, val: &str) -> &mut Self { self.set_client_data_json(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_public_key()` instead."] pub fn public_key(&mut self, val: &str) -> &mut Self { self.set_public_key(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_public_key_algorithm()` instead."] pub fn public_key_algorithm(&mut self, val: f64) -> &mut Self { self.set_public_key_algorithm(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_transports()` instead."] pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_transports(val); self } } web-sys-0.3.81/src/features/gen_AuthenticatorResponse.rs000064400000000000000000000022041046102023000214410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_AuthenticatorSelectionCriteria.rs000064400000000000000000000120521046102023000232550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AuthenticatorAttachment")] #[doc = "Get the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`, `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, getter = "authenticatorAttachment")] pub fn get_authenticator_attachment( this: &AuthenticatorSelectionCriteria, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "authenticatorAttachment")] pub fn set_authenticator_attachment( this: &AuthenticatorSelectionCriteria, val: AuthenticatorAttachment, ); #[doc = "Get the `requireResidentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, getter = "requireResidentKey")] pub fn get_require_resident_key(this: &AuthenticatorSelectionCriteria) -> Option; #[doc = "Change the `requireResidentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, setter = "requireResidentKey")] pub fn set_require_resident_key(this: &AuthenticatorSelectionCriteria, val: bool); #[doc = "Get the `residentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, getter = "residentKey")] pub fn get_resident_key( this: &AuthenticatorSelectionCriteria, ) -> Option<::alloc::string::String>; #[doc = "Change the `residentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, setter = "residentKey")] pub fn set_resident_key(this: &AuthenticatorSelectionCriteria, val: &str); #[cfg(feature = "UserVerificationRequirement")] #[doc = "Get the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `UserVerificationRequirement`*"] #[wasm_bindgen(method, getter = "userVerification")] pub fn get_user_verification( this: &AuthenticatorSelectionCriteria, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "userVerification")] pub fn set_user_verification( this: &AuthenticatorSelectionCriteria, val: UserVerificationRequirement, ); } 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")] #[deprecated = "Use `set_authenticator_attachment()` instead."] pub fn authenticator_attachment(&mut self, val: AuthenticatorAttachment) -> &mut Self { self.set_authenticator_attachment(val); self } #[deprecated = "Use `set_require_resident_key()` instead."] pub fn require_resident_key(&mut self, val: bool) -> &mut Self { self.set_require_resident_key(val); self } #[deprecated = "Use `set_resident_key()` instead."] pub fn resident_key(&mut self, val: &str) -> &mut Self { self.set_resident_key(val); self } #[cfg(feature = "UserVerificationRequirement")] #[deprecated = "Use `set_user_verification()` instead."] pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { self.set_user_verification(val); self } } impl Default for AuthenticatorSelectionCriteria { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_AuthenticatorTransport.rs000064400000000000000000000006361046102023000216460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", Internal = "internal", } web-sys-0.3.81/src/features/gen_AutoKeyword.rs000064400000000000000000000005021046102023000173640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_AutocompleteInfo.rs000064400000000000000000000076021046102023000203740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `addressType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "addressType")] pub fn get_address_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `addressType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, setter = "addressType")] pub fn set_address_type(this: &AutocompleteInfo, val: &str); #[doc = "Get the `contactType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "contactType")] pub fn get_contact_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `contactType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, setter = "contactType")] pub fn set_contact_type(this: &AutocompleteInfo, val: &str); #[doc = "Get the `fieldName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "fieldName")] pub fn get_field_name(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `fieldName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, setter = "fieldName")] pub fn set_field_name(this: &AutocompleteInfo, val: &str); #[doc = "Get the `section` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "section")] pub fn get_section(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `section` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, setter = "section")] pub fn set_section(this: &AutocompleteInfo, val: &str); } 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 } #[deprecated = "Use `set_address_type()` instead."] pub fn address_type(&mut self, val: &str) -> &mut Self { self.set_address_type(val); self } #[deprecated = "Use `set_contact_type()` instead."] pub fn contact_type(&mut self, val: &str) -> &mut Self { self.set_contact_type(val); self } #[deprecated = "Use `set_field_name()` instead."] pub fn field_name(&mut self, val: &str) -> &mut Self { self.set_field_name(val); self } #[deprecated = "Use `set_section()` instead."] pub fn section(&mut self, val: &str) -> &mut Self { self.set_section(val); self } } impl Default for AutocompleteInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BarProp.rs000064400000000000000000000026631046102023000164660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_BaseAudioContext.rs000064400000000000000000000643131046102023000203220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] pub type BaseAudioContext; #[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; # [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; # [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; #[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; #[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; #[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; # [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>; # [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>); #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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; #[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_with_f32_array_and_f32_slice( this: &BaseAudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], ) -> Result; #[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_with_f32_slice_and_f32_array( this: &BaseAudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, ) -> Result; #[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_with_f32_array_and_f32_array( this: &BaseAudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, ) -> Result; #[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; #[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_f32_array_and_f32_slice_and_constraints( this: &BaseAudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> Result; #[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_f32_slice_and_f32_array_and_constraints( this: &BaseAudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, constraints: &PeriodicWaveConstraints, ) -> Result; #[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_f32_array_and_f32_array_and_constraints( this: &BaseAudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, constraints: &PeriodicWaveConstraints, ) -> Result; #[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; #[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; #[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; #[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; #[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; #[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; # [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>; # [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>; # [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>; # [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>; } web-sys-0.3.81/src/features/gen_BaseComputedKeyframe.rs000064400000000000000000000120441046102023000211520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CompositeOperation")] #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`, `CompositeOperation`*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &BaseComputedKeyframe) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &BaseComputedKeyframe, val: Option); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &BaseComputedKeyframe) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &BaseComputedKeyframe, val: &str); #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &BaseComputedKeyframe) -> Option; #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &BaseComputedKeyframe, val: Option); #[doc = "Get the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, getter = "simulateComputeValuesFailure")] pub fn get_simulate_compute_values_failure(this: &BaseComputedKeyframe) -> Option; #[doc = "Change the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, setter = "simulateComputeValuesFailure")] pub fn set_simulate_compute_values_failure(this: &BaseComputedKeyframe, val: bool); #[doc = "Get the `computedOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, getter = "computedOffset")] pub fn get_computed_offset(this: &BaseComputedKeyframe) -> Option; #[doc = "Change the `computedOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, setter = "computedOffset")] pub fn set_computed_offset(this: &BaseComputedKeyframe, val: f64); } 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")] #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: Option) -> &mut Self { self.set_composite(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: Option) -> &mut Self { self.set_offset(val); self } #[deprecated = "Use `set_simulate_compute_values_failure()` instead."] pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { self.set_simulate_compute_values_failure(val); self } #[deprecated = "Use `set_computed_offset()` instead."] pub fn computed_offset(&mut self, val: f64) -> &mut Self { self.set_computed_offset(val); self } } impl Default for BaseComputedKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BaseKeyframe.rs000064400000000000000000000101001046102023000174400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CompositeOperation")] #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`, `CompositeOperation`*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &BaseKeyframe) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &BaseKeyframe, val: Option); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &BaseKeyframe) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &BaseKeyframe, val: &str); #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &BaseKeyframe) -> Option; #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &BaseKeyframe, val: Option); #[doc = "Get the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, getter = "simulateComputeValuesFailure")] pub fn get_simulate_compute_values_failure(this: &BaseKeyframe) -> Option; #[doc = "Change the `simulateComputeValuesFailure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, setter = "simulateComputeValuesFailure")] pub fn set_simulate_compute_values_failure(this: &BaseKeyframe, val: bool); } 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")] #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: Option) -> &mut Self { self.set_composite(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: Option) -> &mut Self { self.set_offset(val); self } #[deprecated = "Use `set_simulate_compute_values_failure()` instead."] pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { self.set_simulate_compute_values_failure(val); self } } impl Default for BaseKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BasePropertyIndexedKeyframe.rs000064400000000000000000000065571046102023000225330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue; #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue); #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue; #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_composite(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_offset(val); self } } impl Default for BasePropertyIndexedKeyframe { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BasicCardRequest.rs000064400000000000000000000050601046102023000202770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `supportedNetworks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] #[wasm_bindgen(method, getter = "supportedNetworks")] pub fn get_supported_networks(this: &BasicCardRequest) -> Option<::js_sys::Array>; #[doc = "Change the `supportedNetworks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] #[wasm_bindgen(method, setter = "supportedNetworks")] pub fn set_supported_networks(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue); #[doc = "Get the `supportedTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] #[wasm_bindgen(method, getter = "supportedTypes")] pub fn get_supported_types(this: &BasicCardRequest) -> Option<::js_sys::Array>; #[doc = "Change the `supportedTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] #[wasm_bindgen(method, setter = "supportedTypes")] pub fn set_supported_types(this: &BasicCardRequest, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_supported_networks()` instead."] pub fn supported_networks(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_supported_networks(val); self } #[deprecated = "Use `set_supported_types()` instead."] pub fn supported_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_supported_types(val); self } } impl Default for BasicCardRequest { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BasicCardResponse.rs000064400000000000000000000133361046102023000204520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "PaymentAddress")] #[doc = "Get the `billingAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`, `PaymentAddress`*"] #[wasm_bindgen(method, getter = "billingAddress")] pub fn get_billing_address(this: &BasicCardResponse) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "billingAddress")] pub fn set_billing_address(this: &BasicCardResponse, val: Option<&PaymentAddress>); #[doc = "Get the `cardNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardNumber")] pub fn get_card_number(this: &BasicCardResponse) -> ::alloc::string::String; #[doc = "Change the `cardNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, setter = "cardNumber")] pub fn set_card_number(this: &BasicCardResponse, val: &str); #[doc = "Get the `cardSecurityCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardSecurityCode")] pub fn get_card_security_code(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `cardSecurityCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, setter = "cardSecurityCode")] pub fn set_card_security_code(this: &BasicCardResponse, val: &str); #[doc = "Get the `cardholderName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardholderName")] pub fn get_cardholder_name(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `cardholderName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, setter = "cardholderName")] pub fn set_cardholder_name(this: &BasicCardResponse, val: &str); #[doc = "Get the `expiryMonth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "expiryMonth")] pub fn get_expiry_month(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `expiryMonth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, setter = "expiryMonth")] pub fn set_expiry_month(this: &BasicCardResponse, val: &str); #[doc = "Get the `expiryYear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "expiryYear")] pub fn get_expiry_year(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `expiryYear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, setter = "expiryYear")] pub fn set_expiry_year(this: &BasicCardResponse, val: &str); } 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.set_card_number(card_number); ret } #[cfg(feature = "PaymentAddress")] #[deprecated = "Use `set_billing_address()` instead."] pub fn billing_address(&mut self, val: Option<&PaymentAddress>) -> &mut Self { self.set_billing_address(val); self } #[deprecated = "Use `set_card_number()` instead."] pub fn card_number(&mut self, val: &str) -> &mut Self { self.set_card_number(val); self } #[deprecated = "Use `set_card_security_code()` instead."] pub fn card_security_code(&mut self, val: &str) -> &mut Self { self.set_card_security_code(val); self } #[deprecated = "Use `set_cardholder_name()` instead."] pub fn cardholder_name(&mut self, val: &str) -> &mut Self { self.set_cardholder_name(val); self } #[deprecated = "Use `set_expiry_month()` instead."] pub fn expiry_month(&mut self, val: &str) -> &mut Self { self.set_expiry_month(val); self } #[deprecated = "Use `set_expiry_year()` instead."] pub fn expiry_year(&mut self, val: &str) -> &mut Self { self.set_expiry_year(val); self } } web-sys-0.3.81/src/features/gen_BasicCardType.rs000064400000000000000000000005721046102023000175730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_BatteryManager.rs000064400000000000000000000150051046102023000200200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_BeforeUnloadEvent.rs000064400000000000000000000031161046102023000204620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_BinaryType.rs000064400000000000000000000005401046102023000171770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_BiquadFilterNode.rs000064400000000000000000000237401046102023000203010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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], ); # [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_with_f32_array_and_f32_slice_and_f32_slice( this: &BiquadFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &mut [f32], phase_response: &mut [f32], ); # [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_with_f32_slice_and_f32_array_and_f32_slice( this: &BiquadFilterNode, frequency_hz: &mut [f32], mag_response: &::js_sys::Float32Array, phase_response: &mut [f32], ); # [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_with_f32_array_and_f32_array_and_f32_slice( this: &BiquadFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &::js_sys::Float32Array, phase_response: &mut [f32], ); # [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_with_f32_slice_and_f32_slice_and_f32_array( this: &BiquadFilterNode, frequency_hz: &mut [f32], mag_response: &mut [f32], phase_response: &::js_sys::Float32Array, ); # [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_with_f32_array_and_f32_slice_and_f32_array( this: &BiquadFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &mut [f32], phase_response: &::js_sys::Float32Array, ); # [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_with_f32_slice_and_f32_array_and_f32_array( this: &BiquadFilterNode, frequency_hz: &mut [f32], mag_response: &::js_sys::Float32Array, phase_response: &::js_sys::Float32Array, ); # [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_with_f32_array_and_f32_array_and_f32_array( this: &BiquadFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &::js_sys::Float32Array, phase_response: &::js_sys::Float32Array, ); } web-sys-0.3.81/src/features/gen_BiquadFilterOptions.rs000064400000000000000000000166551046102023000210560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &BiquadFilterOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &BiquadFilterOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelCountMode`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &BiquadFilterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &BiquadFilterOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelInterpretation`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &BiquadFilterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &BiquadFilterOptions, val: ChannelInterpretation); #[doc = "Get the `Q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, getter = "Q")] pub fn get_q(this: &BiquadFilterOptions) -> Option; #[doc = "Change the `Q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, setter = "Q")] pub fn set_q(this: &BiquadFilterOptions, val: f32); #[doc = "Get the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, getter = "detune")] pub fn get_detune(this: &BiquadFilterOptions) -> Option; #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, setter = "detune")] pub fn set_detune(this: &BiquadFilterOptions, val: f32); #[doc = "Get the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, getter = "frequency")] pub fn get_frequency(this: &BiquadFilterOptions) -> Option; #[doc = "Change the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, setter = "frequency")] pub fn set_frequency(this: &BiquadFilterOptions, val: f32); #[doc = "Get the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, getter = "gain")] pub fn get_gain(this: &BiquadFilterOptions) -> Option; #[doc = "Change the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] #[wasm_bindgen(method, setter = "gain")] pub fn set_gain(this: &BiquadFilterOptions, val: f32); #[cfg(feature = "BiquadFilterType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `BiquadFilterType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &BiquadFilterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &BiquadFilterOptions, val: BiquadFilterType); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_q()` instead."] pub fn q(&mut self, val: f32) -> &mut Self { self.set_q(val); self } #[deprecated = "Use `set_detune()` instead."] pub fn detune(&mut self, val: f32) -> &mut Self { self.set_detune(val); self } #[deprecated = "Use `set_frequency()` instead."] pub fn frequency(&mut self, val: f32) -> &mut Self { self.set_frequency(val); self } #[deprecated = "Use `set_gain()` instead."] pub fn gain(&mut self, val: f32) -> &mut Self { self.set_gain(val); self } #[cfg(feature = "BiquadFilterType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: BiquadFilterType) -> &mut Self { self.set_type(val); self } } impl Default for BiquadFilterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BiquadFilterType.rs000064400000000000000000000010141046102023000203230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Blob.rs000064400000000000000000000324731046102023000160010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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_slice_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_slice_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 (method , structural , js_class = "Blob" , js_name = bytes)] #[doc = "The `bytes()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/bytes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] pub fn bytes(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; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (method , structural , js_class = "Blob" , js_name = stream)] #[doc = "The `stream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `ReadableStream`*"] pub fn stream(this: &Blob) -> ReadableStream; # [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; } web-sys-0.3.81/src/features/gen_BlobEvent.rs000064400000000000000000000040161046102023000167730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_BlobEventInit.rs000064400000000000000000000074071046102023000176260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &BlobEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &BlobEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &BlobEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &BlobEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &BlobEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &BlobEventInit, val: bool); #[cfg(feature = "Blob")] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &BlobEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &BlobEventInit, val: Option<&Blob>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "Blob")] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: Option<&Blob>) -> &mut Self { self.set_data(val); self } } impl Default for BlobEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BlobPropertyBag.rs000064400000000000000000000046571046102023000201630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "EndingTypes")] #[doc = "Get the `endings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`, `EndingTypes`*"] #[wasm_bindgen(method, getter = "endings")] pub fn get_endings(this: &BlobPropertyBag) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "endings")] pub fn set_endings(this: &BlobPropertyBag, val: EndingTypes); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &BlobPropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &BlobPropertyBag, val: &str); } 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")] #[deprecated = "Use `set_endings()` instead."] pub fn endings(&mut self, val: EndingTypes) -> &mut Self { self.set_endings(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } impl Default for BlobPropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BlockParsingOptions.rs000064400000000000000000000033451046102023000210510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `blockScriptCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] #[wasm_bindgen(method, getter = "blockScriptCreated")] pub fn get_block_script_created(this: &BlockParsingOptions) -> Option; #[doc = "Change the `blockScriptCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] #[wasm_bindgen(method, setter = "blockScriptCreated")] pub fn set_block_script_created(this: &BlockParsingOptions, val: bool); } 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 } #[deprecated = "Use `set_block_script_created()` instead."] pub fn block_script_created(&mut self, val: bool) -> &mut Self { self.set_block_script_created(val); self } } impl Default for BlockParsingOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Bluetooth.rs000064400000000000000000000352301046102023000170620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = Bluetooth , typescript_type = "Bluetooth")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Bluetooth` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Bluetooth; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onavailabilitychanged)] #[doc = "Getter for the `onavailabilitychanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onavailabilitychanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onavailabilitychanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onavailabilitychanged)] #[doc = "Setter for the `onavailabilitychanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onavailabilitychanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onavailabilitychanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = referringDevice)] #[doc = "Getter for the `referringDevice` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/referringDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`, `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn referring_device(this: &Bluetooth) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onadvertisementreceived)] #[doc = "Getter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onadvertisementreceived)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onadvertisementreceived(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onadvertisementreceived)] #[doc = "Setter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onadvertisementreceived)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onadvertisementreceived(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = ongattserverdisconnected)] #[doc = "Getter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/ongattserverdisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongattserverdisconnected(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = ongattserverdisconnected)] #[doc = "Setter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/ongattserverdisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongattserverdisconnected(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = oncharacteristicvaluechanged)] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = oncharacteristicvaluechanged)] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oncharacteristicvaluechanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onserviceadded)] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onserviceadded)] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceadded(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onservicechanged)] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onservicechanged)] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onservicechanged(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Bluetooth" , js_name = onserviceremoved)] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &Bluetooth) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Bluetooth" , js_name = onserviceremoved)] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceremoved(this: &Bluetooth, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = getAvailability)] #[doc = "The `getAvailability()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/getAvailability)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_availability(this: &Bluetooth) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = getDevices)] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/getDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_devices(this: &Bluetooth) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RequestDeviceOptions")] # [wasm_bindgen (method , structural , js_class = "Bluetooth" , js_name = requestDevice)] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`, `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Bluetooth, options: &RequestDeviceOptions) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_BluetoothAdvertisingEvent.rs000064400000000000000000000204501046102023000222620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = BluetoothAdvertisingEvent , typescript_type = "BluetoothAdvertisingEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothAdvertisingEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothAdvertisingEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`, `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothAdvertisingEvent) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = uuids)] #[doc = "Getter for the `uuids` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/uuids)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuids(this: &BluetoothAdvertisingEvent) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , 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/BluetoothAdvertisingEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &BluetoothAdvertisingEvent) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = appearance)] #[doc = "Getter for the `appearance` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/appearance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn appearance(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = txPower)] #[doc = "Getter for the `txPower` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/txPower)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tx_power(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = rssi)] #[doc = "Getter for the `rssi` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/rssi)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rssi(this: &BluetoothAdvertisingEvent) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothManufacturerDataMap")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = manufacturerData)] #[doc = "Getter for the `manufacturerData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/manufacturerData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`, `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn manufacturer_data(this: &BluetoothAdvertisingEvent) -> BluetoothManufacturerDataMap; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothServiceDataMap")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = serviceData)] #[doc = "Getter for the `serviceData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/serviceData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`, `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service_data(this: &BluetoothAdvertisingEvent) -> BluetoothServiceDataMap; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothAdvertisingEventInit")] #[wasm_bindgen(catch, constructor, js_class = "BluetoothAdvertisingEvent")] #[doc = "The `new BluetoothAdvertisingEvent(..)` constructor, creating a new instance of `BluetoothAdvertisingEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdvertisingEvent/BluetoothAdvertisingEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEvent`, `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, init: &BluetoothAdvertisingEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_BluetoothAdvertisingEventInit.rs000064400000000000000000000422001046102023000231030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothAdvertisingEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothAdvertisingEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothAdvertisingEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &BluetoothAdvertisingEventInit) -> Option; #[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: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &BluetoothAdvertisingEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &BluetoothAdvertisingEventInit) -> Option; #[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: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &BluetoothAdvertisingEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &BluetoothAdvertisingEventInit) -> Option; #[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: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &BluetoothAdvertisingEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `appearance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "appearance")] pub fn get_appearance(this: &BluetoothAdvertisingEventInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `appearance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "appearance")] pub fn set_appearance(this: &BluetoothAdvertisingEventInit, val: u16); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] #[doc = "Get the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "device")] pub fn get_device(this: &BluetoothAdvertisingEventInit) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] #[doc = "Change the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "device")] pub fn set_device(this: &BluetoothAdvertisingEventInit, val: &BluetoothDevice); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothManufacturerDataMap")] #[doc = "Get the `manufacturerData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "manufacturerData")] pub fn get_manufacturer_data( this: &BluetoothAdvertisingEventInit, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothManufacturerDataMap")] #[doc = "Change the `manufacturerData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "manufacturerData")] pub fn set_manufacturer_data( this: &BluetoothAdvertisingEventInit, val: &BluetoothManufacturerDataMap, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &BluetoothAdvertisingEventInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &BluetoothAdvertisingEventInit, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rssi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rssi")] pub fn get_rssi(this: &BluetoothAdvertisingEventInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rssi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rssi")] pub fn set_rssi(this: &BluetoothAdvertisingEventInit, val: i8); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothServiceDataMap")] #[doc = "Get the `serviceData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serviceData")] pub fn get_service_data( this: &BluetoothAdvertisingEventInit, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothServiceDataMap")] #[doc = "Change the `serviceData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "serviceData")] pub fn set_service_data(this: &BluetoothAdvertisingEventInit, val: &BluetoothServiceDataMap); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `txPower` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "txPower")] pub fn get_tx_power(this: &BluetoothAdvertisingEventInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `txPower` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "txPower")] pub fn set_tx_power(this: &BluetoothAdvertisingEventInit, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `uuids` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "uuids")] pub fn get_uuids(this: &BluetoothAdvertisingEventInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `uuids` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "uuids")] pub fn set_uuids(this: &BluetoothAdvertisingEventInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl BluetoothAdvertisingEventInit { #[cfg(feature = "BluetoothDevice")] #[doc = "Construct a new `BluetoothAdvertisingEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothAdvertisingEventInit`, `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(device: &BluetoothDevice) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_device(device); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_appearance()` instead."] pub fn appearance(&mut self, val: u16) -> &mut Self { self.set_appearance(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] #[deprecated = "Use `set_device()` instead."] pub fn device(&mut self, val: &BluetoothDevice) -> &mut Self { self.set_device(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothManufacturerDataMap")] #[deprecated = "Use `set_manufacturer_data()` instead."] pub fn manufacturer_data(&mut self, val: &BluetoothManufacturerDataMap) -> &mut Self { self.set_manufacturer_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rssi()` instead."] pub fn rssi(&mut self, val: i8) -> &mut Self { self.set_rssi(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothServiceDataMap")] #[deprecated = "Use `set_service_data()` instead."] pub fn service_data(&mut self, val: &BluetoothServiceDataMap) -> &mut Self { self.set_service_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_tx_power()` instead."] pub fn tx_power(&mut self, val: i8) -> &mut Self { self.set_tx_power(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_uuids()` instead."] pub fn uuids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_uuids(val); self } } web-sys-0.3.81/src/features/gen_BluetoothCharacteristicProperties.rs000064400000000000000000000203531046102023000240100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothCharacteristicProperties , typescript_type = "BluetoothCharacteristicProperties")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothCharacteristicProperties` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothCharacteristicProperties; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = broadcast)] #[doc = "Getter for the `broadcast` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/broadcast)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn broadcast(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = read)] #[doc = "Getter for the `read` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = writeWithoutResponse)] #[doc = "Getter for the `writeWithoutResponse` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/writeWithoutResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_without_response(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = write)] #[doc = "Getter for the `write` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = notify)] #[doc = "Getter for the `notify` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/notify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn notify(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = indicate)] #[doc = "Getter for the `indicate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/indicate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn indicate(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = authenticatedSignedWrites)] #[doc = "Getter for the `authenticatedSignedWrites` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/authenticatedSignedWrites)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn authenticated_signed_writes(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = reliableWrite)] #[doc = "Getter for the `reliableWrite` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/reliableWrite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reliable_write(this: &BluetoothCharacteristicProperties) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothCharacteristicProperties" , js_name = writableAuxiliaries)] #[doc = "Getter for the `writableAuxiliaries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothCharacteristicProperties/writableAuxiliaries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable_auxiliaries(this: &BluetoothCharacteristicProperties) -> bool; } web-sys-0.3.81/src/features/gen_BluetoothDataFilterInit.rs000064400000000000000000000103061046102023000216430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothDataFilterInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothDataFilterInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothDataFilterInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dataPrefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dataPrefix")] pub fn get_data_prefix(this: &BluetoothDataFilterInit) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dataPrefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dataPrefix")] pub fn set_data_prefix(this: &BluetoothDataFilterInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mask")] pub fn get_mask(this: &BluetoothDataFilterInit) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mask")] pub fn set_mask(this: &BluetoothDataFilterInit, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl BluetoothDataFilterInit { #[doc = "Construct a new `BluetoothDataFilterInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDataFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_data_prefix()` instead."] pub fn data_prefix(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_data_prefix(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mask()` instead."] pub fn mask(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_mask(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for BluetoothDataFilterInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BluetoothDevice.rs000064400000000000000000000361751046102023000202130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = BluetoothDevice , typescript_type = "BluetoothDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothDevice` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , 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/BluetoothDevice/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn id(this: &BluetoothDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , 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/BluetoothDevice/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &BluetoothDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattServer")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = gatt)] #[doc = "Getter for the `gatt` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/gatt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gatt(this: &BluetoothDevice) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = watchingAdvertisements)] #[doc = "Getter for the `watchingAdvertisements` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchingAdvertisements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn watching_advertisements(this: &BluetoothDevice) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onadvertisementreceived)] #[doc = "Getter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onadvertisementreceived)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onadvertisementreceived(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onadvertisementreceived)] #[doc = "Setter for the `onadvertisementreceived` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onadvertisementreceived)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onadvertisementreceived(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = ongattserverdisconnected)] #[doc = "Getter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/ongattserverdisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongattserverdisconnected(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = ongattserverdisconnected)] #[doc = "Setter for the `ongattserverdisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/ongattserverdisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongattserverdisconnected(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = oncharacteristicvaluechanged)] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = oncharacteristicvaluechanged)] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oncharacteristicvaluechanged( this: &BluetoothDevice, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onserviceadded)] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onserviceadded)] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceadded(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onservicechanged)] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onservicechanged)] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onservicechanged(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = onserviceremoved)] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &BluetoothDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothDevice" , js_name = onserviceremoved)] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceremoved(this: &BluetoothDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothDevice" , js_name = watchAdvertisements)] #[doc = "The `watchAdvertisements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchAdvertisements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn watch_advertisements(this: &BluetoothDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WatchAdvertisementsOptions")] # [wasm_bindgen (method , structural , js_class = "BluetoothDevice" , js_name = watchAdvertisements)] #[doc = "The `watchAdvertisements()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothDevice/watchAdvertisements)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `WatchAdvertisementsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn watch_advertisements_with_options( this: &BluetoothDevice, options: &WatchAdvertisementsOptions, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_BluetoothLeScanFilterInit.rs000064400000000000000000000206261046102023000221450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothLEScanFilterInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothLeScanFilterInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothLeScanFilterInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `manufacturerData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "manufacturerData")] pub fn get_manufacturer_data(this: &BluetoothLeScanFilterInit) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `manufacturerData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "manufacturerData")] pub fn set_manufacturer_data(this: &BluetoothLeScanFilterInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &BluetoothLeScanFilterInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &BluetoothLeScanFilterInit, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `namePrefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "namePrefix")] pub fn get_name_prefix(this: &BluetoothLeScanFilterInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `namePrefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "namePrefix")] pub fn set_name_prefix(this: &BluetoothLeScanFilterInit, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `serviceData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serviceData")] pub fn get_service_data(this: &BluetoothLeScanFilterInit) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serviceData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "serviceData")] pub fn set_service_data(this: &BluetoothLeScanFilterInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `services` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "services")] pub fn get_services(this: &BluetoothLeScanFilterInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `services` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "services")] pub fn set_services(this: &BluetoothLeScanFilterInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl BluetoothLeScanFilterInit { #[doc = "Construct a new `BluetoothLeScanFilterInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothLeScanFilterInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_manufacturer_data()` instead."] pub fn manufacturer_data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_manufacturer_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_name_prefix()` instead."] pub fn name_prefix(&mut self, val: &str) -> &mut Self { self.set_name_prefix(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_service_data()` instead."] pub fn service_data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_service_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_services()` instead."] pub fn services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_services(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for BluetoothLeScanFilterInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BluetoothManufacturerDataMap.rs000064400000000000000000000143321046102023000226670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothManufacturerDataMap , typescript_type = "BluetoothManufacturerDataMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothManufacturerDataMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothManufacturerDataMap; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothManufacturerDataMap" , 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/BluetoothManufacturerDataMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &BluetoothManufacturerDataMap) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &BluetoothManufacturerDataMap) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each( this: &BluetoothManufacturerDataMap, callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &BluetoothManufacturerDataMap, key: u16) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &BluetoothManufacturerDataMap, key: u16) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &BluetoothManufacturerDataMap) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothManufacturerDataMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothManufacturerDataMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothManufacturerDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &BluetoothManufacturerDataMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_BluetoothPermissionDescriptor.rs000064400000000000000000000212321046102023000231670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &BluetoothPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &BluetoothPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `acceptAllDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "acceptAllDevices")] pub fn get_accept_all_devices(this: &BluetoothPermissionDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `acceptAllDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "acceptAllDevices")] pub fn set_accept_all_devices(this: &BluetoothPermissionDescriptor, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &BluetoothPermissionDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &BluetoothPermissionDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &BluetoothPermissionDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &BluetoothPermissionDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `optionalServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "optionalServices")] pub fn get_optional_services(this: &BluetoothPermissionDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `optionalServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "optionalServices")] pub fn set_optional_services( this: &BluetoothPermissionDescriptor, val: &::wasm_bindgen::JsValue, ); } #[cfg(web_sys_unstable_apis)] impl BluetoothPermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `BluetoothPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_accept_all_devices()` instead."] pub fn accept_all_devices(&mut self, val: bool) -> &mut Self { self.set_accept_all_devices(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &str) -> &mut Self { self.set_device_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_optional_services()` instead."] pub fn optional_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_optional_services(val); self } } web-sys-0.3.81/src/features/gen_BluetoothPermissionResult.rs000064400000000000000000000050111046102023000223240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = BluetoothPermissionResult , typescript_type = "BluetoothPermissionResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothPermissionResult" , js_name = devices)] #[doc = "Getter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn devices(this: &BluetoothPermissionResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothPermissionResult" , js_name = devices)] #[doc = "Setter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothPermissionResult/devices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_devices(this: &BluetoothPermissionResult, value: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_BluetoothPermissionStorage.rs000064400000000000000000000056431046102023000224650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothPermissionStorage)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothPermissionStorage` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothPermissionStorage; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowedDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowedDevices")] pub fn get_allowed_devices(this: &BluetoothPermissionStorage) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowedDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowedDevices")] pub fn set_allowed_devices(this: &BluetoothPermissionStorage, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl BluetoothPermissionStorage { #[doc = "Construct a new `BluetoothPermissionStorage`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(allowed_devices: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_allowed_devices(allowed_devices); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_allowed_devices()` instead."] pub fn allowed_devices(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_allowed_devices(val); self } } web-sys-0.3.81/src/features/gen_BluetoothRemoteGattCharacteristic.rs000064400000000000000000000517111046102023000237310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = BluetoothRemoteGATTCharacteristic , typescript_type = "BluetoothRemoteGATTCharacteristic")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattCharacteristic` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothRemoteGattCharacteristic; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattService")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = service)] #[doc = "Getter for the `service` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/service)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn service(this: &BluetoothRemoteGattCharacteristic) -> BluetoothRemoteGattService; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = uuid)] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/uuid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothCharacteristicProperties")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = properties)] #[doc = "Getter for the `properties` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/properties)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothCharacteristicProperties`, `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn properties( this: &BluetoothRemoteGattCharacteristic, ) -> BluetoothCharacteristicProperties; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , 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/BluetoothRemoteGATTCharacteristic/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &BluetoothRemoteGattCharacteristic) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged( this: &BluetoothRemoteGattCharacteristic, ) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = oncharacteristicvaluechanged)] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oncharacteristicvaluechanged( this: &BluetoothRemoteGattCharacteristic, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_str( this: &BluetoothRemoteGattCharacteristic, descriptor: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_u32( this: &BluetoothRemoteGattCharacteristic, descriptor: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptors(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptors_with_str( this: &BluetoothRemoteGattCharacteristic, descriptor: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = getDescriptors)] #[doc = "The `getDescriptors()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/getDescriptors)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptors_with_u32( this: &BluetoothRemoteGattCharacteristic, descriptor: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = readValue)] #[doc = "The `readValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/readValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_value(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = startNotifications)] #[doc = "The `startNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/startNotifications)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn start_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = stopNotifications)] #[doc = "The `stopNotifications()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/stopNotifications)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stop_notifications(this: &BluetoothRemoteGattCharacteristic) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_slice( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)] #[doc = "The `writeValueWithResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)] #[doc = "The `writeValueWithResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_response_with_u8_slice( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithResponse)] #[doc = "The `writeValueWithResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)] #[doc = "The `writeValueWithoutResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_without_response_with_buffer_source( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)] #[doc = "The `writeValueWithoutResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_without_response_with_u8_slice( this: &BluetoothRemoteGattCharacteristic, value: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = writeValueWithoutResponse)] #[doc = "The `writeValueWithoutResponse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithoutResponse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_without_response_with_u8_array( this: &BluetoothRemoteGattCharacteristic, value: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.81/src/features/gen_BluetoothRemoteGattDescriptor.rs000064400000000000000000000154001046102023000231120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTDescriptor , typescript_type = "BluetoothRemoteGATTDescriptor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattDescriptor` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothRemoteGattDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattCharacteristic")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = characteristic)] #[doc = "Getter for the `characteristic` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/characteristic)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattCharacteristic`, `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn characteristic( this: &BluetoothRemoteGattDescriptor, ) -> BluetoothRemoteGattCharacteristic; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = uuid)] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/uuid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , 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/BluetoothRemoteGATTDescriptor/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &BluetoothRemoteGattDescriptor) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = readValue)] #[doc = "The `readValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/readValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_value(this: &BluetoothRemoteGattDescriptor) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_buffer_source( this: &BluetoothRemoteGattDescriptor, value: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_slice( this: &BluetoothRemoteGattDescriptor, value: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothRemoteGATTDescriptor" , js_name = writeValue)] #[doc = "The `writeValue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTDescriptor/writeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_value_with_u8_array( this: &BluetoothRemoteGattDescriptor, value: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.81/src/features/gen_BluetoothRemoteGattServer.rs000064400000000000000000000200611046102023000222410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothRemoteGATTServer , typescript_type = "BluetoothRemoteGATTServer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattServer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothRemoteGattServer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothRemoteGattServer) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTServer" , 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/BluetoothRemoteGATTServer/connected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn connected(this: &BluetoothRemoteGattServer) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = connect)] #[doc = "The `connect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/connect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn connect(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn disconnect(this: &BluetoothRemoteGattServer); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] #[doc = "The `getPrimaryService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_service_with_str( this: &BluetoothRemoteGattServer, service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryService)] #[doc = "The `getPrimaryService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_service_with_u32( this: &BluetoothRemoteGattServer, service: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_services(this: &BluetoothRemoteGattServer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_services_with_str( this: &BluetoothRemoteGattServer, service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTServer" , js_name = getPrimaryServices)] #[doc = "The `getPrimaryServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTServer/getPrimaryServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattServer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_primary_services_with_u32( this: &BluetoothRemoteGattServer, service: u32, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_BluetoothRemoteGattService.rs000064400000000000000000000445051046102023000224040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = BluetoothRemoteGATTService , typescript_type = "BluetoothRemoteGATTService")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothRemoteGattService` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothRemoteGattService; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothDevice")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothDevice`, `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &BluetoothRemoteGattService) -> BluetoothDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = uuid)] #[doc = "Getter for the `uuid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/uuid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn uuid(this: &BluetoothRemoteGattService) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , 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/BluetoothRemoteGATTService/isPrimary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_primary(this: &BluetoothRemoteGattService) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)] #[doc = "Getter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oncharacteristicvaluechanged( this: &BluetoothRemoteGattService, ) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = oncharacteristicvaluechanged)] #[doc = "Setter for the `oncharacteristicvaluechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/oncharacteristicvaluechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oncharacteristicvaluechanged( this: &BluetoothRemoteGattService, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)] #[doc = "Getter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceadded(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceadded)] #[doc = "Setter for the `onserviceadded` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceadded)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceadded( this: &BluetoothRemoteGattService, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)] #[doc = "Getter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onservicechanged(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onservicechanged)] #[doc = "Setter for the `onservicechanged` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onservicechanged)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onservicechanged( this: &BluetoothRemoteGattService, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)] #[doc = "Getter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onserviceremoved(this: &BluetoothRemoteGattService) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "BluetoothRemoteGATTService" , js_name = onserviceremoved)] #[doc = "Setter for the `onserviceremoved` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/onserviceremoved)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onserviceremoved( this: &BluetoothRemoteGattService, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_str( this: &BluetoothRemoteGattService, characteristic: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristic)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_u32( this: &BluetoothRemoteGattService, characteristic: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristics(this: &BluetoothRemoteGattService) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristics_with_str( this: &BluetoothRemoteGattService, characteristic: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getCharacteristics)] #[doc = "The `getCharacteristics()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getCharacteristics)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristics_with_u32( this: &BluetoothRemoteGattService, characteristic: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)] #[doc = "The `getIncludedService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_service_with_str( this: &BluetoothRemoteGattService, service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedService)] #[doc = "The `getIncludedService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedService)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_service_with_u32( this: &BluetoothRemoteGattService, service: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_services(this: &BluetoothRemoteGattService) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_services_with_str( this: &BluetoothRemoteGattService, service: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothRemoteGATTService" , js_name = getIncludedServices)] #[doc = "The `getIncludedServices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTService/getIncludedServices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothRemoteGattService`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_included_services_with_u32( this: &BluetoothRemoteGattService, service: u32, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_BluetoothServiceDataMap.rs000064400000000000000000000140621046102023000216330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothServiceDataMap , typescript_type = "BluetoothServiceDataMap")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothServiceDataMap` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothServiceDataMap; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothServiceDataMap" , 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/BluetoothServiceDataMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &BluetoothServiceDataMap) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothServiceDataMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &BluetoothServiceDataMap) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "BluetoothServiceDataMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each( this: &BluetoothServiceDataMap, callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothServiceDataMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &BluetoothServiceDataMap, key: &str) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothServiceDataMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &BluetoothServiceDataMap, key: &str) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothServiceDataMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &BluetoothServiceDataMap) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "BluetoothServiceDataMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothServiceDataMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothServiceDataMap`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &BluetoothServiceDataMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_BluetoothUuid.rs000064400000000000000000000140141046102023000177060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = BluetoothUUID , typescript_type = "BluetoothUUID")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `BluetoothUuid` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type BluetoothUuid; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = canonicalUUID)] #[doc = "The `canonicalUUID()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/canonicalUUID_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn canonical_uuid(alias: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getCharacteristic_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_characteristic_with_u32(name: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getDescriptor_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_descriptor_with_u32(name: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] #[doc = "The `getService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_service_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] #[doc = "The `getService()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BluetoothUUID/getService_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BluetoothUuid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_service_with_u32(name: u32) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_BoxQuadOptions.rs000064400000000000000000000047011046102023000200330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CssBoxType")] #[doc = "Get the `box` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `CssBoxType`*"] #[wasm_bindgen(method, getter = "box")] pub fn get_box(this: &BoxQuadOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "box")] pub fn set_box(this: &BoxQuadOptions, val: CssBoxType); #[doc = "Get the `relativeTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] #[wasm_bindgen(method, getter = "relativeTo")] pub fn get_relative_to(this: &BoxQuadOptions) -> Option<::js_sys::Object>; #[doc = "Change the `relativeTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] #[wasm_bindgen(method, setter = "relativeTo")] pub fn set_relative_to(this: &BoxQuadOptions, val: &::js_sys::Object); } 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")] #[deprecated = "Use `set_box()` instead."] pub fn box_(&mut self, val: CssBoxType) -> &mut Self { self.set_box(val); self } #[deprecated = "Use `set_relative_to()` instead."] pub fn relative_to(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_relative_to(val); self } } impl Default for BoxQuadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BroadcastChannel.rs000064400000000000000000000107061046102023000203110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_BrowserElementDownloadOptions.rs000064400000000000000000000051171046102023000231170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, getter = "filename")] pub fn get_filename(this: &BrowserElementDownloadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, setter = "filename")] pub fn set_filename(this: &BrowserElementDownloadOptions, val: Option<&str>); #[doc = "Get the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, getter = "referrer")] pub fn get_referrer(this: &BrowserElementDownloadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, setter = "referrer")] pub fn set_referrer(this: &BrowserElementDownloadOptions, val: Option<&str>); } 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 } #[deprecated = "Use `set_filename()` instead."] pub fn filename(&mut self, val: Option<&str>) -> &mut Self { self.set_filename(val); self } #[deprecated = "Use `set_referrer()` instead."] pub fn referrer(&mut self, val: Option<&str>) -> &mut Self { self.set_referrer(val); self } } impl Default for BrowserElementDownloadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BrowserElementExecuteScriptOptions.rs000064400000000000000000000051501046102023000241340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &BrowserElementExecuteScriptOptions) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &BrowserElementExecuteScriptOptions, val: Option<&str>); #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &BrowserElementExecuteScriptOptions) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &BrowserElementExecuteScriptOptions, val: Option<&str>); } 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 } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: Option<&str>) -> &mut Self { self.set_origin(val); self } #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: Option<&str>) -> &mut Self { self.set_url(val); self } } impl Default for BrowserElementExecuteScriptOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_BrowserFeedWriter.rs000064400000000000000000000036451046102023000205260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_BrowserFindCaseSensitivity.rs000064400000000000000000000006541046102023000224120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_BrowserFindDirection.rs000064400000000000000000000005761046102023000212070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ByteLengthQueuingStrategy.rs000064400000000000000000000044101046102023000222370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ByteLengthQueuingStrategy , typescript_type = "ByteLengthQueuingStrategy")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ByteLengthQueuingStrategy` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ByteLengthQueuingStrategy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ByteLengthQueuingStrategy`*"] pub type ByteLengthQueuingStrategy; # [wasm_bindgen (structural , method , getter , js_class = "ByteLengthQueuingStrategy" , js_name = highWaterMark)] #[doc = "Getter for the `highWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ByteLengthQueuingStrategy`*"] pub fn high_water_mark(this: &ByteLengthQueuingStrategy) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "ByteLengthQueuingStrategy" , 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/ByteLengthQueuingStrategy/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ByteLengthQueuingStrategy`*"] pub fn size(this: &ByteLengthQueuingStrategy) -> ::js_sys::Function; #[cfg(feature = "QueuingStrategyInit")] #[wasm_bindgen(catch, constructor, js_class = "ByteLengthQueuingStrategy")] #[doc = "The `new ByteLengthQueuingStrategy(..)` constructor, creating a new instance of `ByteLengthQueuingStrategy`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ByteLengthQueuingStrategy/ByteLengthQueuingStrategy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ByteLengthQueuingStrategy`, `QueuingStrategyInit`*"] pub fn new(init: &QueuingStrategyInit) -> Result; } web-sys-0.3.81/src/features/gen_Cache.rs000064400000000000000000000300111046102023000161100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CacheBatchOperation.rs000064400000000000000000000103621046102023000207420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CacheQueryOptions")] #[doc = "Get the `options` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "options")] pub fn get_options(this: &CacheBatchOperation) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "options")] pub fn set_options(this: &CacheBatchOperation, val: &CacheQueryOptions); #[cfg(feature = "Request")] #[doc = "Get the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Request`*"] #[wasm_bindgen(method, getter = "request")] pub fn get_request(this: &CacheBatchOperation) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "request")] pub fn set_request(this: &CacheBatchOperation, val: &Request); #[cfg(feature = "Response")] #[doc = "Get the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Response`*"] #[wasm_bindgen(method, getter = "response")] pub fn get_response(this: &CacheBatchOperation) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "response")] pub fn set_response(this: &CacheBatchOperation, val: &Response); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &CacheBatchOperation) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &CacheBatchOperation, val: &str); } 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")] #[deprecated = "Use `set_options()` instead."] pub fn options(&mut self, val: &CacheQueryOptions) -> &mut Self { self.set_options(val); self } #[cfg(feature = "Request")] #[deprecated = "Use `set_request()` instead."] pub fn request(&mut self, val: &Request) -> &mut Self { self.set_request(val); self } #[cfg(feature = "Response")] #[deprecated = "Use `set_response()` instead."] pub fn response(&mut self, val: &Response) -> &mut Self { self.set_response(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } impl Default for CacheBatchOperation { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CacheQueryOptions.rs000064400000000000000000000076231046102023000205270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `cacheName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "cacheName")] pub fn get_cache_name(this: &CacheQueryOptions) -> Option<::alloc::string::String>; #[doc = "Change the `cacheName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, setter = "cacheName")] pub fn set_cache_name(this: &CacheQueryOptions, val: &str); #[doc = "Get the `ignoreMethod` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "ignoreMethod")] pub fn get_ignore_method(this: &CacheQueryOptions) -> Option; #[doc = "Change the `ignoreMethod` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, setter = "ignoreMethod")] pub fn set_ignore_method(this: &CacheQueryOptions, val: bool); #[doc = "Get the `ignoreSearch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "ignoreSearch")] pub fn get_ignore_search(this: &CacheQueryOptions) -> Option; #[doc = "Change the `ignoreSearch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, setter = "ignoreSearch")] pub fn set_ignore_search(this: &CacheQueryOptions, val: bool); #[doc = "Get the `ignoreVary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "ignoreVary")] pub fn get_ignore_vary(this: &CacheQueryOptions) -> Option; #[doc = "Change the `ignoreVary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, setter = "ignoreVary")] pub fn set_ignore_vary(this: &CacheQueryOptions, val: bool); } 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 } #[deprecated = "Use `set_cache_name()` instead."] pub fn cache_name(&mut self, val: &str) -> &mut Self { self.set_cache_name(val); self } #[deprecated = "Use `set_ignore_method()` instead."] pub fn ignore_method(&mut self, val: bool) -> &mut Self { self.set_ignore_method(val); self } #[deprecated = "Use `set_ignore_search()` instead."] pub fn ignore_search(&mut self, val: bool) -> &mut Self { self.set_ignore_search(val); self } #[deprecated = "Use `set_ignore_vary()` instead."] pub fn ignore_vary(&mut self, val: bool) -> &mut Self { self.set_ignore_vary(val); self } } impl Default for CacheQueryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CacheStorage.rs000064400000000000000000000105071046102023000174450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CacheStorageNamespace.rs000064400000000000000000000005751046102023000212660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CanvasCaptureMediaStream.rs000064400000000000000000000033051046102023000217660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_CanvasCaptureMediaStreamTrack.rs000064400000000000000000000034201046102023000227510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = CanvasCaptureMediaStreamTrack , typescript_type = "CanvasCaptureMediaStreamTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CanvasCaptureMediaStreamTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStreamTrack`*"] pub type CanvasCaptureMediaStreamTrack; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (structural , method , getter , js_class = "CanvasCaptureMediaStreamTrack" , 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/CanvasCaptureMediaStreamTrack/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStreamTrack`, `HtmlCanvasElement`*"] pub fn canvas(this: &CanvasCaptureMediaStreamTrack) -> HtmlCanvasElement; # [wasm_bindgen (method , structural , js_class = "CanvasCaptureMediaStreamTrack" , js_name = requestFrame)] #[doc = "The `requestFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStreamTrack`*"] pub fn request_frame(this: &CanvasCaptureMediaStreamTrack); } web-sys-0.3.81/src/features/gen_CanvasGradient.rs000064400000000000000000000020661046102023000200070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_CanvasPattern.rs000064400000000000000000000020651046102023000176660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_CanvasRenderingContext2d.rs000064400000000000000000002501121046102023000217570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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`*"] #[deprecated] pub fn set_stroke_style(this: &CanvasRenderingContext2d, value: &::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_str(this: &CanvasRenderingContext2d, value: &str); #[cfg(feature = "CanvasGradient")] # [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: `CanvasGradient`, `CanvasRenderingContext2d`*"] pub fn set_stroke_style_canvas_gradient( this: &CanvasRenderingContext2d, value: &CanvasGradient, ); #[cfg(feature = "CanvasPattern")] # [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: `CanvasPattern`, `CanvasRenderingContext2d`*"] pub fn set_stroke_style_canvas_pattern(this: &CanvasRenderingContext2d, value: &CanvasPattern); # [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`*"] #[deprecated] pub fn set_fill_style(this: &CanvasRenderingContext2d, value: &::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_str(this: &CanvasRenderingContext2d, value: &str); #[cfg(feature = "CanvasGradient")] # [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: `CanvasGradient`, `CanvasRenderingContext2d`*"] pub fn set_fill_style_canvas_gradient(this: &CanvasRenderingContext2d, value: &CanvasGradient); #[cfg(feature = "CanvasPattern")] # [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: `CanvasPattern`, `CanvasRenderingContext2d`*"] pub fn set_fill_style_canvas_pattern(this: &CanvasRenderingContext2d, value: &CanvasPattern); # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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 = "OffscreenCanvas")] # [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`, `OffscreenCanvas`*"] pub fn draw_image_with_offscreen_canvas( this: &CanvasRenderingContext2d, image: &OffscreenCanvas, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame( this: &CanvasRenderingContext2d, image: &VideoFrame, 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 = "OffscreenCanvas")] # [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`, `OffscreenCanvas`*"] pub fn draw_image_with_offscreen_canvas_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &OffscreenCanvas, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &VideoFrame, 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>; #[cfg(feature = "OffscreenCanvas")] # [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`, `OffscreenCanvas`*"] pub fn draw_image_with_offscreen_canvas_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &OffscreenCanvas, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &CanvasRenderingContext2d, image: &VideoFrame, 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(all(feature = "CanvasPattern", feature = "OffscreenCanvas",))] # [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`, `OffscreenCanvas`*"] pub fn create_pattern_with_offscreen_canvas( this: &CanvasRenderingContext2d, image: &OffscreenCanvas, repetition: &str, ) -> Result, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "CanvasPattern", feature = "VideoFrame",))] # [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`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_pattern_with_video_frame( this: &CanvasRenderingContext2d, image: &VideoFrame, 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 (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 (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn round_rect( this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn round_rect_with_f64( this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomPointInit`*"] pub fn round_rect_with_dom_point_init( this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &DomPointInit, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn round_rect_with_f64_sequence( this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn round_rect_with_dom_point_init_sequence( this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> 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 (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 = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] pub fn reset(this: &CanvasRenderingContext2d); # [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 = 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_with_default_dom_matrix_2d_init( this: &CanvasRenderingContext2d, ) -> Result<(), JsValue>; #[cfg(feature = "DomMatrix2dInit")] # [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`, `DomMatrix2dInit`*"] pub fn set_transform_with_dom_matrix_2d_init( this: &CanvasRenderingContext2d, transform: &DomMatrix2dInit, ) -> 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; } web-sys-0.3.81/src/features/gen_CanvasWindingRule.rs000064400000000000000000000005631046102023000205010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CaretChangedReason.rs000064400000000000000000000011071046102023000205710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CaretPosition.rs000064400000000000000000000037541046102023000177060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CaretStateChangedEventInit.rs000064400000000000000000000243611046102023000222570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &CaretStateChangedEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &CaretStateChangedEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &CaretStateChangedEventInit, val: bool); #[cfg(feature = "DomRectReadOnly")] #[doc = "Get the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`, `DomRectReadOnly`*"] #[wasm_bindgen(method, getter = "boundingClientRect")] pub fn get_bounding_client_rect(this: &CaretStateChangedEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "boundingClientRect")] pub fn set_bounding_client_rect( this: &CaretStateChangedEventInit, val: Option<&DomRectReadOnly>, ); #[doc = "Get the `caretVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "caretVisible")] pub fn get_caret_visible(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `caretVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "caretVisible")] pub fn set_caret_visible(this: &CaretStateChangedEventInit, val: bool); #[doc = "Get the `caretVisuallyVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "caretVisuallyVisible")] pub fn get_caret_visually_visible(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `caretVisuallyVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "caretVisuallyVisible")] pub fn set_caret_visually_visible(this: &CaretStateChangedEventInit, val: bool); #[doc = "Get the `collapsed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "collapsed")] pub fn get_collapsed(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `collapsed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "collapsed")] pub fn set_collapsed(this: &CaretStateChangedEventInit, val: bool); #[cfg(feature = "CaretChangedReason")] #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretChangedReason`, `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &CaretStateChangedEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &CaretStateChangedEventInit, val: CaretChangedReason); #[doc = "Get the `selectedTextContent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "selectedTextContent")] pub fn get_selected_text_content( this: &CaretStateChangedEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `selectedTextContent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "selectedTextContent")] pub fn set_selected_text_content(this: &CaretStateChangedEventInit, val: &str); #[doc = "Get the `selectionEditable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "selectionEditable")] pub fn get_selection_editable(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `selectionEditable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "selectionEditable")] pub fn set_selection_editable(this: &CaretStateChangedEventInit, val: bool); #[doc = "Get the `selectionVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "selectionVisible")] pub fn get_selection_visible(this: &CaretStateChangedEventInit) -> Option; #[doc = "Change the `selectionVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, setter = "selectionVisible")] pub fn set_selection_visible(this: &CaretStateChangedEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "DomRectReadOnly")] #[deprecated = "Use `set_bounding_client_rect()` instead."] pub fn bounding_client_rect(&mut self, val: Option<&DomRectReadOnly>) -> &mut Self { self.set_bounding_client_rect(val); self } #[deprecated = "Use `set_caret_visible()` instead."] pub fn caret_visible(&mut self, val: bool) -> &mut Self { self.set_caret_visible(val); self } #[deprecated = "Use `set_caret_visually_visible()` instead."] pub fn caret_visually_visible(&mut self, val: bool) -> &mut Self { self.set_caret_visually_visible(val); self } #[deprecated = "Use `set_collapsed()` instead."] pub fn collapsed(&mut self, val: bool) -> &mut Self { self.set_collapsed(val); self } #[cfg(feature = "CaretChangedReason")] #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: CaretChangedReason) -> &mut Self { self.set_reason(val); self } #[deprecated = "Use `set_selected_text_content()` instead."] pub fn selected_text_content(&mut self, val: &str) -> &mut Self { self.set_selected_text_content(val); self } #[deprecated = "Use `set_selection_editable()` instead."] pub fn selection_editable(&mut self, val: bool) -> &mut Self { self.set_selection_editable(val); self } #[deprecated = "Use `set_selection_visible()` instead."] pub fn selection_visible(&mut self, val: bool) -> &mut Self { self.set_selection_visible(val); self } } impl Default for CaretStateChangedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CdataSection.rs000064400000000000000000000012221046102023000174500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ChannelCountMode.rs000064400000000000000000000006121046102023000202770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ChannelInterpretation.rs000064400000000000000000000006031046102023000214110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ChannelMergerNode.rs000064400000000000000000000036201046102023000204330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ChannelMergerOptions.rs000064400000000000000000000110761046102023000212050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &ChannelMergerOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &ChannelMergerOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelMergerOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &ChannelMergerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &ChannelMergerOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelMergerOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &ChannelMergerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &ChannelMergerOptions, val: ChannelInterpretation); #[doc = "Get the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] #[wasm_bindgen(method, getter = "numberOfInputs")] pub fn get_number_of_inputs(this: &ChannelMergerOptions) -> Option; #[doc = "Change the `numberOfInputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] #[wasm_bindgen(method, setter = "numberOfInputs")] pub fn set_number_of_inputs(this: &ChannelMergerOptions, val: u32); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_number_of_inputs()` instead."] pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { self.set_number_of_inputs(val); self } } impl Default for ChannelMergerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ChannelSplitterNode.rs000064400000000000000000000036761046102023000210330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ChannelSplitterOptions.rs000064400000000000000000000111761046102023000215730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &ChannelSplitterOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &ChannelSplitterOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelSplitterOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &ChannelSplitterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &ChannelSplitterOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelSplitterOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation( this: &ChannelSplitterOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &ChannelSplitterOptions, val: ChannelInterpretation); #[doc = "Get the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] #[wasm_bindgen(method, getter = "numberOfOutputs")] pub fn get_number_of_outputs(this: &ChannelSplitterOptions) -> Option; #[doc = "Change the `numberOfOutputs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] #[wasm_bindgen(method, setter = "numberOfOutputs")] pub fn set_number_of_outputs(this: &ChannelSplitterOptions, val: u32); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_number_of_outputs()` instead."] pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { self.set_number_of_outputs(val); self } } impl Default for ChannelSplitterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CharacterData.rs000064400000000000000000001045071046102023000176070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String, 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_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>; } web-sys-0.3.81/src/features/gen_CheckerboardReason.rs000064400000000000000000000005621046102023000206410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CheckerboardReport.rs000064400000000000000000000077171046102023000206760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `log` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, getter = "log")] pub fn get_log(this: &CheckerboardReport) -> Option<::alloc::string::String>; #[doc = "Change the `log` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, setter = "log")] pub fn set_log(this: &CheckerboardReport, val: &str); #[cfg(feature = "CheckerboardReason")] #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReason`, `CheckerboardReport`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &CheckerboardReport) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &CheckerboardReport, val: CheckerboardReason); #[doc = "Get the `severity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, getter = "severity")] pub fn get_severity(this: &CheckerboardReport) -> Option; #[doc = "Change the `severity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, setter = "severity")] pub fn set_severity(this: &CheckerboardReport, val: u32); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &CheckerboardReport) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &CheckerboardReport, val: f64); } 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 } #[deprecated = "Use `set_log()` instead."] pub fn log(&mut self, val: &str) -> &mut Self { self.set_log(val); self } #[cfg(feature = "CheckerboardReason")] #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: CheckerboardReason) -> &mut Self { self.set_reason(val); self } #[deprecated = "Use `set_severity()` instead."] pub fn severity(&mut self, val: u32) -> &mut Self { self.set_severity(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } impl Default for CheckerboardReport { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CheckerboardReportService.rs000064400000000000000000000062311046102023000222050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_ChromeFilePropertyBag.rs000064400000000000000000000076511046102023000213170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "lastModified")] pub fn get_last_modified(this: &ChromeFilePropertyBag) -> Option; #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, setter = "lastModified")] pub fn set_last_modified(this: &ChromeFilePropertyBag, val: f64); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &ChromeFilePropertyBag, val: &str); #[doc = "Get the `existenceCheck` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "existenceCheck")] pub fn get_existence_check(this: &ChromeFilePropertyBag) -> Option; #[doc = "Change the `existenceCheck` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, setter = "existenceCheck")] pub fn set_existence_check(this: &ChromeFilePropertyBag, val: bool); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ChromeFilePropertyBag, val: &str); } 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 } #[deprecated = "Use `set_last_modified()` instead."] pub fn last_modified(&mut self, val: f64) -> &mut Self { self.set_last_modified(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_existence_check()` instead."] pub fn existence_check(&mut self, val: bool) -> &mut Self { self.set_existence_check(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for ChromeFilePropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ChromeWorker.rs000064400000000000000000000021001046102023000175120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_Client.rs000064400000000000000000000064121046102023000163330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_ClientQueryOptions.rs000064400000000000000000000050651046102023000207400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `includeUncontrolled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] #[wasm_bindgen(method, getter = "includeUncontrolled")] pub fn get_include_uncontrolled(this: &ClientQueryOptions) -> Option; #[doc = "Change the `includeUncontrolled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] #[wasm_bindgen(method, setter = "includeUncontrolled")] pub fn set_include_uncontrolled(this: &ClientQueryOptions, val: bool); #[cfg(feature = "ClientType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `ClientType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &ClientQueryOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &ClientQueryOptions, val: ClientType); } 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 } #[deprecated = "Use `set_include_uncontrolled()` instead."] pub fn include_uncontrolled(&mut self, val: bool) -> &mut Self { self.set_include_uncontrolled(val); self } #[cfg(feature = "ClientType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: ClientType) -> &mut Self { self.set_type(val); self } } impl Default for ClientQueryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ClientRectsAndTexts.rs000064400000000000000000000052241046102023000210070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "DomRectList")] #[doc = "Get the `rectList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`, `DomRectList`*"] #[wasm_bindgen(method, getter = "rectList")] pub fn get_rect_list(this: &ClientRectsAndTexts) -> DomRectList; #[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`*"] #[wasm_bindgen(method, setter = "rectList")] pub fn set_rect_list(this: &ClientRectsAndTexts, val: &DomRectList); #[doc = "Get the `textList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] #[wasm_bindgen(method, getter = "textList")] pub fn get_text_list(this: &ClientRectsAndTexts) -> ::js_sys::Array; #[doc = "Change the `textList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] #[wasm_bindgen(method, setter = "textList")] pub fn set_text_list(this: &ClientRectsAndTexts, val: &::wasm_bindgen::JsValue); } 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.set_rect_list(rect_list); ret.set_text_list(text_list); ret } #[cfg(feature = "DomRectList")] #[deprecated = "Use `set_rect_list()` instead."] pub fn rect_list(&mut self, val: &DomRectList) -> &mut Self { self.set_rect_list(val); self } #[deprecated = "Use `set_text_list()` instead."] pub fn text_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_text_list(val); self } } web-sys-0.3.81/src/features/gen_ClientType.rs000064400000000000000000000006631046102023000171770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Clients.rs000064400000000000000000000052451046102023000165210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_Clipboard.rs000064400000000000000000000060501046102023000170120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Clipboard , typescript_type = "Clipboard")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Clipboard` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`*"] pub type Clipboard; # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`*"] pub fn read(this: &Clipboard) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ClipboardUnsanitizedFormats")] # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`, `ClipboardUnsanitizedFormats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn read_with_formats( this: &Clipboard, formats: &ClipboardUnsanitizedFormats, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = readText)] #[doc = "The `readText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`*"] pub fn read_text(this: &Clipboard) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`*"] pub fn write(this: &Clipboard, data: &::wasm_bindgen::JsValue) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "Clipboard" , js_name = writeText)] #[doc = "The `writeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`*"] pub fn write_text(this: &Clipboard, data: &str) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_ClipboardEvent.rs000064400000000000000000000043221046102023000200140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ClipboardEventInit.rs000064400000000000000000000100251046102023000206350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ClipboardEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ClipboardEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ClipboardEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ClipboardEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ClipboardEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ClipboardEventInit, val: bool); #[cfg(feature = "DataTransfer")] #[doc = "Get the `clipboardData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`, `DataTransfer`*"] #[wasm_bindgen(method, getter = "clipboardData")] pub fn get_clipboard_data(this: &ClipboardEventInit) -> Option; #[cfg(feature = "DataTransfer")] #[doc = "Change the `clipboardData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`, `DataTransfer`*"] #[wasm_bindgen(method, setter = "clipboardData")] pub fn set_clipboard_data(this: &ClipboardEventInit, val: Option<&DataTransfer>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "DataTransfer")] #[deprecated = "Use `set_clipboard_data()` instead."] pub fn clipboard_data(&mut self, val: Option<&DataTransfer>) -> &mut Self { self.set_clipboard_data(val); self } } impl Default for ClipboardEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ClipboardItem.rs000064400000000000000000000114021046102023000176260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardItem , typescript_type = "ClipboardItem")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardItem` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub type ClipboardItem; #[cfg(feature = "PresentationStyle")] # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , js_name = presentationStyle)] #[doc = "Getter for the `presentationStyle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/presentationStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`, `PresentationStyle`*"] pub fn presentation_style(this: &ClipboardItem) -> PresentationStyle; # [wasm_bindgen (structural , method , getter , js_class = "ClipboardItem" , 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/ClipboardItem/types)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub fn types(this: &ClipboardItem) -> ::js_sys::Array; #[wasm_bindgen(catch, constructor, js_class = "ClipboardItem")] #[doc = "The `new ClipboardItem(..)` constructor, creating a new instance of `ClipboardItem`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub fn new_with_record_from_str_to_str_promise( items: &::js_sys::Object, ) -> Result; #[wasm_bindgen(catch, constructor, js_class = "ClipboardItem")] #[doc = "The `new ClipboardItem(..)` constructor, creating a new instance of `ClipboardItem`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub fn new_with_record_from_str_to_blob_promise( items: &::js_sys::Object, ) -> Result; #[cfg(feature = "ClipboardItemOptions")] #[wasm_bindgen(catch, constructor, js_class = "ClipboardItem")] #[doc = "The `new ClipboardItem(..)` constructor, creating a new instance of `ClipboardItem`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`, `ClipboardItemOptions`*"] pub fn new_with_record_from_str_to_str_promise_and_options( items: &::js_sys::Object, options: &ClipboardItemOptions, ) -> Result; #[cfg(feature = "ClipboardItemOptions")] #[wasm_bindgen(catch, constructor, js_class = "ClipboardItem")] #[doc = "The `new ClipboardItem(..)` constructor, creating a new instance of `ClipboardItem`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/ClipboardItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`, `ClipboardItemOptions`*"] pub fn new_with_record_from_str_to_blob_promise_and_options( items: &::js_sys::Object, options: &ClipboardItemOptions, ) -> Result; # [wasm_bindgen (method , structural , js_class = "ClipboardItem" , js_name = getType)] #[doc = "The `getType()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/getType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub fn get_type(this: &ClipboardItem, type_: &str) -> ::js_sys::Promise; # [wasm_bindgen (static_method_of = ClipboardItem , js_class = "ClipboardItem" , js_name = supports)] #[doc = "The `supports()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem/supports_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItem`*"] pub fn supports(type_: &str) -> bool; } web-sys-0.3.81/src/features/gen_ClipboardItemOptions.rs000064400000000000000000000036621046102023000212130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardItemOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardItemOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`*"] pub type ClipboardItemOptions; #[cfg(feature = "PresentationStyle")] #[doc = "Get the `presentationStyle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`, `PresentationStyle`*"] #[wasm_bindgen(method, getter = "presentationStyle")] pub fn get_presentation_style(this: &ClipboardItemOptions) -> Option; #[cfg(feature = "PresentationStyle")] #[doc = "Change the `presentationStyle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`, `PresentationStyle`*"] #[wasm_bindgen(method, setter = "presentationStyle")] pub fn set_presentation_style(this: &ClipboardItemOptions, val: PresentationStyle); } impl ClipboardItemOptions { #[doc = "Construct a new `ClipboardItemOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardItemOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "PresentationStyle")] #[deprecated = "Use `set_presentation_style()` instead."] pub fn presentation_style(&mut self, val: PresentationStyle) -> &mut Self { self.set_presentation_style(val); self } } impl Default for ClipboardItemOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ClipboardPermissionDescriptor.rs000064400000000000000000000107021046102023000231210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ClipboardPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ClipboardPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowWithoutGesture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowWithoutGesture")] pub fn get_allow_without_gesture(this: &ClipboardPermissionDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowWithoutGesture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowWithoutGesture")] pub fn set_allow_without_gesture(this: &ClipboardPermissionDescriptor, val: bool); } #[cfg(web_sys_unstable_apis)] impl ClipboardPermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `ClipboardPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_allow_without_gesture()` instead."] pub fn allow_without_gesture(&mut self, val: bool) -> &mut Self { self.set_allow_without_gesture(val); self } } web-sys-0.3.81/src/features/gen_ClipboardUnsanitizedFormats.rs000064400000000000000000000056771046102023000226020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardUnsanitizedFormats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ClipboardUnsanitizedFormats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ClipboardUnsanitizedFormats; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unsanitized` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unsanitized")] pub fn get_unsanitized(this: &ClipboardUnsanitizedFormats) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unsanitized` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unsanitized")] pub fn set_unsanitized(this: &ClipboardUnsanitizedFormats, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl ClipboardUnsanitizedFormats { #[doc = "Construct a new `ClipboardUnsanitizedFormats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_unsanitized()` instead."] pub fn unsanitized(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_unsanitized(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for ClipboardUnsanitizedFormats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CloseEvent.rs000064400000000000000000000055711046102023000171710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CloseEventInit.rs000064400000000000000000000121211046102023000200020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &CloseEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &CloseEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &CloseEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &CloseEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &CloseEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &CloseEventInit, val: bool); #[doc = "Get the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "code")] pub fn get_code(this: &CloseEventInit) -> Option; #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "code")] pub fn set_code(this: &CloseEventInit, val: u16); #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &CloseEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &CloseEventInit, val: &str); #[doc = "Get the `wasClean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "wasClean")] pub fn get_was_clean(this: &CloseEventInit) -> Option; #[doc = "Change the `wasClean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, setter = "wasClean")] pub fn set_was_clean(this: &CloseEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_code()` instead."] pub fn code(&mut self, val: u16) -> &mut Self { self.set_code(val); self } #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: &str) -> &mut Self { self.set_reason(val); self } #[deprecated = "Use `set_was_clean()` instead."] pub fn was_clean(&mut self, val: bool) -> &mut Self { self.set_was_clean(val); self } } impl Default for CloseEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CodecState.rs000064400000000000000000000012131046102023000171250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `CodecState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CodecState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CodecState { Unconfigured = "unconfigured", Configured = "configured", Closed = "closed", } web-sys-0.3.81/src/features/gen_CollectedClientData.rs000064400000000000000000000174151046102023000207510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &CollectedClientData, val: &str); #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Get the `clientExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, getter = "clientExtensions")] pub fn get_client_extensions( this: &CollectedClientData, ) -> Option; #[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`*"] #[deprecated] #[wasm_bindgen(method, setter = "clientExtensions")] pub fn set_client_extensions( this: &CollectedClientData, val: &AuthenticationExtensionsClientInputs, ); #[doc = "Get the `crossOrigin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "crossOrigin")] pub fn get_cross_origin(this: &CollectedClientData) -> Option; #[doc = "Change the `crossOrigin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, setter = "crossOrigin")] pub fn set_cross_origin(this: &CollectedClientData, val: bool); #[doc = "Get the `hashAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, getter = "hashAlgorithm")] pub fn get_hash_algorithm(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `hashAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, setter = "hashAlgorithm")] pub fn set_hash_algorithm(this: &CollectedClientData, val: &str); #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &CollectedClientData, val: &str); #[cfg(feature = "TokenBinding")] #[doc = "Get the `tokenBinding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`, `TokenBinding`*"] #[wasm_bindgen(method, getter = "tokenBinding")] pub fn get_token_binding(this: &CollectedClientData) -> Option; #[cfg(feature = "TokenBinding")] #[doc = "Change the `tokenBinding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`, `TokenBinding`*"] #[wasm_bindgen(method, setter = "tokenBinding")] pub fn set_token_binding(this: &CollectedClientData, val: &TokenBinding); #[doc = "Get the `tokenBindingId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, getter = "tokenBindingId")] pub fn get_token_binding_id(this: &CollectedClientData) -> Option<::alloc::string::String>; #[doc = "Change the `tokenBindingId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, setter = "tokenBindingId")] pub fn set_token_binding_id(this: &CollectedClientData, val: &str); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &CollectedClientData, val: &str); } 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.set_challenge(challenge); ret.set_hash_algorithm(hash_algorithm); ret.set_origin(origin); ret.set_type(type_); ret } #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &str) -> &mut Self { self.set_challenge(val); self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[deprecated = "Use `set_client_extensions()` instead."] pub fn client_extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { self.set_client_extensions(val); self } #[deprecated = "Use `set_cross_origin()` instead."] pub fn cross_origin(&mut self, val: bool) -> &mut Self { self.set_cross_origin(val); self } #[deprecated = "Use `set_hash_algorithm()` instead."] pub fn hash_algorithm(&mut self, val: &str) -> &mut Self { self.set_hash_algorithm(val); self } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &str) -> &mut Self { self.set_origin(val); self } #[cfg(feature = "TokenBinding")] #[deprecated = "Use `set_token_binding()` instead."] pub fn token_binding(&mut self, val: &TokenBinding) -> &mut Self { self.set_token_binding(val); self } #[deprecated = "Use `set_token_binding_id()` instead."] pub fn token_binding_id(&mut self, val: &str) -> &mut Self { self.set_token_binding_id(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_ColorSpaceConversion.rs000064400000000000000000000005661046102023000212210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ColorSpaceConversion` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ColorSpaceConversion`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ColorSpaceConversion { None = "none", Default = "default", } web-sys-0.3.81/src/features/gen_Comment.rs000064400000000000000000000026771046102023000165300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CompositeOperation.rs000064400000000000000000000006151046102023000207370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CompositionEvent.rs000064400000000000000000000147521046102023000204300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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) -> ::alloc::string::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, ); } web-sys-0.3.81/src/features/gen_CompositionEventInit.rs000064400000000000000000000125611046102023000212500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &CompositionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &CompositionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &CompositionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &CompositionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &CompositionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &CompositionEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &CompositionEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &CompositionEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &CompositionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &CompositionEventInit, val: Option<&Window>); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &CompositionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &CompositionEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &str) -> &mut Self { self.set_data(val); self } } impl Default for CompositionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CompressionFormat.rs000064400000000000000000000012231046102023000205620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `CompressionFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum CompressionFormat { Deflate = "deflate", DeflateRaw = "deflate-raw", Gzip = "gzip", } web-sys-0.3.81/src/features/gen_CompressionStream.rs000064400000000000000000000064421046102023000205750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CompressionStream , typescript_type = "CompressionStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CompressionStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type CompressionStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "CompressionStream" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionStream`, `ReadableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &CompressionStream) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "CompressionStream" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionStream`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &CompressionStream) -> WritableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CompressionFormat")] #[wasm_bindgen(catch, constructor, js_class = "CompressionStream")] #[doc = "The `new CompressionStream(..)` constructor, creating a new instance of `CompressionStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream/CompressionStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionFormat`, `CompressionStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: CompressionFormat) -> Result; } web-sys-0.3.81/src/features/gen_ComputedEffectTiming.rs000064400000000000000000000257521046102023000211720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &ComputedEffectTiming, val: f64); #[cfg(feature = "PlaybackDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &ComputedEffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &ComputedEffectTiming, val: PlaybackDirection); #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &ComputedEffectTiming) -> ::wasm_bindgen::JsValue; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &ComputedEffectTiming, val: &::wasm_bindgen::JsValue); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &ComputedEffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &ComputedEffectTiming, val: &str); #[doc = "Get the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "endDelay")] pub fn get_end_delay(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "endDelay")] pub fn set_end_delay(this: &ComputedEffectTiming, val: f64); #[cfg(feature = "FillMode")] #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &ComputedEffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &ComputedEffectTiming, val: FillMode); #[doc = "Get the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "iterationStart")] pub fn get_iteration_start(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "iterationStart")] pub fn set_iteration_start(this: &ComputedEffectTiming, val: f64); #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &ComputedEffectTiming, val: f64); #[doc = "Get the `activeDuration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "activeDuration")] pub fn get_active_duration(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `activeDuration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "activeDuration")] pub fn set_active_duration(this: &ComputedEffectTiming, val: f64); #[doc = "Get the `currentIteration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "currentIteration")] pub fn get_current_iteration(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `currentIteration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "currentIteration")] pub fn set_current_iteration(this: &ComputedEffectTiming, val: Option); #[doc = "Get the `endTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "endTime")] pub fn get_end_time(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `endTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "endTime")] pub fn set_end_time(this: &ComputedEffectTiming, val: f64); #[doc = "Get the `localTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "localTime")] pub fn get_local_time(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `localTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "localTime")] pub fn set_local_time(this: &ComputedEffectTiming, val: Option); #[doc = "Get the `progress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "progress")] pub fn get_progress(this: &ComputedEffectTiming) -> Option; #[doc = "Change the `progress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, setter = "progress")] pub fn set_progress(this: &ComputedEffectTiming, val: Option); } 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 } #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(feature = "PlaybackDirection")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_end_delay()` instead."] pub fn end_delay(&mut self, val: f64) -> &mut Self { self.set_end_delay(val); self } #[cfg(feature = "FillMode")] #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: FillMode) -> &mut Self { self.set_fill(val); self } #[deprecated = "Use `set_iteration_start()` instead."] pub fn iteration_start(&mut self, val: f64) -> &mut Self { self.set_iteration_start(val); self } #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: f64) -> &mut Self { self.set_iterations(val); self } #[deprecated = "Use `set_active_duration()` instead."] pub fn active_duration(&mut self, val: f64) -> &mut Self { self.set_active_duration(val); self } #[deprecated = "Use `set_current_iteration()` instead."] pub fn current_iteration(&mut self, val: Option) -> &mut Self { self.set_current_iteration(val); self } #[deprecated = "Use `set_end_time()` instead."] pub fn end_time(&mut self, val: f64) -> &mut Self { self.set_end_time(val); self } #[deprecated = "Use `set_local_time()` instead."] pub fn local_time(&mut self, val: Option) -> &mut Self { self.set_local_time(val); self } #[deprecated = "Use `set_progress()` instead."] pub fn progress(&mut self, val: Option) -> &mut Self { self.set_progress(val); self } } impl Default for ComputedEffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConnStatusDict.rs000064400000000000000000000031061046102023000200170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] #[wasm_bindgen(method, getter = "status")] pub fn get_status(this: &ConnStatusDict) -> Option<::alloc::string::String>; #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] #[wasm_bindgen(method, setter = "status")] pub fn set_status(this: &ConnStatusDict, val: &str); } 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 } #[deprecated = "Use `set_status()` instead."] pub fn status(&mut self, val: &str) -> &mut Self { self.set_status(val); self } } impl Default for ConnStatusDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConnectionType.rs000064400000000000000000000007371046102023000200620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ConsoleCounter.rs000064400000000000000000000043631046102023000200620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] #[wasm_bindgen(method, getter = "count")] pub fn get_count(this: &ConsoleCounter) -> Option; #[doc = "Change the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] #[wasm_bindgen(method, setter = "count")] pub fn set_count(this: &ConsoleCounter, val: u32); #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &ConsoleCounter) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &ConsoleCounter, val: &str); } 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 } #[deprecated = "Use `set_count()` instead."] pub fn count(&mut self, val: u32) -> &mut Self { self.set_count(val); self } #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } impl Default for ConsoleCounter { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleCounterError.rs000064400000000000000000000045311046102023000210710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &ConsoleCounterError) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &ConsoleCounterError, val: &str); #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &ConsoleCounterError) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &ConsoleCounterError, val: &str); } 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 } #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &str) -> &mut Self { self.set_error(val); self } #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } impl Default for ConsoleCounterError { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleEvent.rs000064400000000000000000000322151046102023000175210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `ID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "ID")] pub fn get_id(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue; #[doc = "Change the `ID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "ID")] pub fn set_id(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); #[doc = "Get the `addonId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "addonId")] pub fn get_addon_id(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `addonId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "addonId")] pub fn set_addon_id(this: &ConsoleEvent, val: &str); #[doc = "Get the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "arguments")] pub fn get_arguments(this: &ConsoleEvent) -> Option<::js_sys::Array>; #[doc = "Change the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "arguments")] pub fn set_arguments(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); #[doc = "Get the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "columnNumber")] pub fn get_column_number(this: &ConsoleEvent) -> Option; #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "columnNumber")] pub fn set_column_number(this: &ConsoleEvent, val: u32); #[doc = "Get the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "consoleID")] pub fn get_console_id(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "consoleID")] pub fn set_console_id(this: &ConsoleEvent, val: &str); #[doc = "Get the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "counter")] pub fn get_counter(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue; #[doc = "Change the `counter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "counter")] pub fn set_counter(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); #[doc = "Get the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "filename")] pub fn get_filename(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "filename")] pub fn set_filename(this: &ConsoleEvent, val: &str); #[doc = "Get the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "functionName")] pub fn get_function_name(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "functionName")] pub fn set_function_name(this: &ConsoleEvent, val: &str); #[doc = "Get the `groupName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "groupName")] pub fn get_group_name(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `groupName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "groupName")] pub fn set_group_name(this: &ConsoleEvent, val: &str); #[doc = "Get the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "innerID")] pub fn get_inner_id(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue; #[doc = "Change the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "innerID")] pub fn set_inner_id(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); #[doc = "Get the `level` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "level")] pub fn get_level(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `level` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "level")] pub fn set_level(this: &ConsoleEvent, val: &str); #[doc = "Get the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "lineNumber")] pub fn get_line_number(this: &ConsoleEvent) -> Option; #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "lineNumber")] pub fn set_line_number(this: &ConsoleEvent, val: u32); #[doc = "Get the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "prefix")] pub fn get_prefix(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "prefix")] pub fn set_prefix(this: &ConsoleEvent, val: &str); #[doc = "Get the `private` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "private")] pub fn get_private(this: &ConsoleEvent) -> Option; #[doc = "Change the `private` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "private")] pub fn set_private(this: &ConsoleEvent, val: bool); #[doc = "Get the `styles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "styles")] pub fn get_styles(this: &ConsoleEvent) -> Option<::js_sys::Array>; #[doc = "Change the `styles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "styles")] pub fn set_styles(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); #[doc = "Get the `timeStamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "timeStamp")] pub fn get_time_stamp(this: &ConsoleEvent) -> Option; #[doc = "Change the `timeStamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "timeStamp")] pub fn set_time_stamp(this: &ConsoleEvent, val: f64); #[doc = "Get the `timer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "timer")] pub fn get_timer(this: &ConsoleEvent) -> ::wasm_bindgen::JsValue; #[doc = "Change the `timer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, setter = "timer")] pub fn set_timer(this: &ConsoleEvent, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_addon_id()` instead."] pub fn addon_id(&mut self, val: &str) -> &mut Self { self.set_addon_id(val); self } #[deprecated = "Use `set_arguments()` instead."] pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_arguments(val); self } #[deprecated = "Use `set_column_number()` instead."] pub fn column_number(&mut self, val: u32) -> &mut Self { self.set_column_number(val); self } #[deprecated = "Use `set_console_id()` instead."] pub fn console_id(&mut self, val: &str) -> &mut Self { self.set_console_id(val); self } #[deprecated = "Use `set_counter()` instead."] pub fn counter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_counter(val); self } #[deprecated = "Use `set_filename()` instead."] pub fn filename(&mut self, val: &str) -> &mut Self { self.set_filename(val); self } #[deprecated = "Use `set_function_name()` instead."] pub fn function_name(&mut self, val: &str) -> &mut Self { self.set_function_name(val); self } #[deprecated = "Use `set_group_name()` instead."] pub fn group_name(&mut self, val: &str) -> &mut Self { self.set_group_name(val); self } #[deprecated = "Use `set_inner_id()` instead."] pub fn inner_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_inner_id(val); self } #[deprecated = "Use `set_level()` instead."] pub fn level(&mut self, val: &str) -> &mut Self { self.set_level(val); self } #[deprecated = "Use `set_line_number()` instead."] pub fn line_number(&mut self, val: u32) -> &mut Self { self.set_line_number(val); self } #[deprecated = "Use `set_prefix()` instead."] pub fn prefix(&mut self, val: &str) -> &mut Self { self.set_prefix(val); self } #[deprecated = "Use `set_private()` instead."] pub fn private(&mut self, val: bool) -> &mut Self { self.set_private(val); self } #[deprecated = "Use `set_styles()` instead."] pub fn styles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_styles(val); self } #[deprecated = "Use `set_time_stamp()` instead."] pub fn time_stamp(&mut self, val: f64) -> &mut Self { self.set_time_stamp(val); self } #[deprecated = "Use `set_timer()` instead."] pub fn timer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_timer(val); self } } impl Default for ConsoleEvent { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleInstance.rs000064400000000000000000000011531046102023000202010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ConsoleInstanceOptions.rs000064400000000000000000000133571046102023000215660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "consoleID")] pub fn get_console_id(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, setter = "consoleID")] pub fn set_console_id(this: &ConsoleInstanceOptions, val: &str); #[doc = "Get the `dump` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "dump")] pub fn get_dump(this: &ConsoleInstanceOptions) -> Option<::js_sys::Function>; #[doc = "Change the `dump` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, setter = "dump")] pub fn set_dump(this: &ConsoleInstanceOptions, val: &::js_sys::Function); #[doc = "Get the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "innerID")] pub fn get_inner_id(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, setter = "innerID")] pub fn set_inner_id(this: &ConsoleInstanceOptions, val: &str); #[cfg(feature = "ConsoleLogLevel")] #[doc = "Get the `maxLogLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`, `ConsoleLogLevel`*"] #[wasm_bindgen(method, getter = "maxLogLevel")] pub fn get_max_log_level(this: &ConsoleInstanceOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "maxLogLevel")] pub fn set_max_log_level(this: &ConsoleInstanceOptions, val: ConsoleLogLevel); #[doc = "Get the `maxLogLevelPref` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "maxLogLevelPref")] pub fn get_max_log_level_pref(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `maxLogLevelPref` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, setter = "maxLogLevelPref")] pub fn set_max_log_level_pref(this: &ConsoleInstanceOptions, val: &str); #[doc = "Get the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "prefix")] pub fn get_prefix(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, setter = "prefix")] pub fn set_prefix(this: &ConsoleInstanceOptions, val: &str); } 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 } #[deprecated = "Use `set_console_id()` instead."] pub fn console_id(&mut self, val: &str) -> &mut Self { self.set_console_id(val); self } #[deprecated = "Use `set_dump()` instead."] pub fn dump(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_dump(val); self } #[deprecated = "Use `set_inner_id()` instead."] pub fn inner_id(&mut self, val: &str) -> &mut Self { self.set_inner_id(val); self } #[cfg(feature = "ConsoleLogLevel")] #[deprecated = "Use `set_max_log_level()` instead."] pub fn max_log_level(&mut self, val: ConsoleLogLevel) -> &mut Self { self.set_max_log_level(val); self } #[deprecated = "Use `set_max_log_level_pref()` instead."] pub fn max_log_level_pref(&mut self, val: &str) -> &mut Self { self.set_max_log_level_pref(val); self } #[deprecated = "Use `set_prefix()` instead."] pub fn prefix(&mut self, val: &str) -> &mut Self { self.set_prefix(val); self } } impl Default for ConsoleInstanceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleLevel.rs000064400000000000000000000005611046102023000175060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ConsoleLogLevel.rs000064400000000000000000000012751046102023000201530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ConsoleProfileEvent.rs000064400000000000000000000046461046102023000210510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] #[wasm_bindgen(method, getter = "action")] pub fn get_action(this: &ConsoleProfileEvent) -> Option<::alloc::string::String>; #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] #[wasm_bindgen(method, setter = "action")] pub fn set_action(this: &ConsoleProfileEvent, val: &str); #[doc = "Get the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] #[wasm_bindgen(method, getter = "arguments")] pub fn get_arguments(this: &ConsoleProfileEvent) -> Option<::js_sys::Array>; #[doc = "Change the `arguments` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] #[wasm_bindgen(method, setter = "arguments")] pub fn set_arguments(this: &ConsoleProfileEvent, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_action()` instead."] pub fn action(&mut self, val: &str) -> &mut Self { self.set_action(val); self } #[deprecated = "Use `set_arguments()` instead."] pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_arguments(val); self } } impl Default for ConsoleProfileEvent { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleStackEntry.rs000064400000000000000000000112541046102023000205270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "asyncCause")] pub fn get_async_cause(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, setter = "asyncCause")] pub fn set_async_cause(this: &ConsoleStackEntry, val: Option<&str>); #[doc = "Get the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "columnNumber")] pub fn get_column_number(this: &ConsoleStackEntry) -> Option; #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, setter = "columnNumber")] pub fn set_column_number(this: &ConsoleStackEntry, val: u32); #[doc = "Get the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "filename")] pub fn get_filename(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, setter = "filename")] pub fn set_filename(this: &ConsoleStackEntry, val: &str); #[doc = "Get the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "functionName")] pub fn get_function_name(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, setter = "functionName")] pub fn set_function_name(this: &ConsoleStackEntry, val: &str); #[doc = "Get the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "lineNumber")] pub fn get_line_number(this: &ConsoleStackEntry) -> Option; #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, setter = "lineNumber")] pub fn set_line_number(this: &ConsoleStackEntry, val: u32); } 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 } #[deprecated = "Use `set_async_cause()` instead."] pub fn async_cause(&mut self, val: Option<&str>) -> &mut Self { self.set_async_cause(val); self } #[deprecated = "Use `set_column_number()` instead."] pub fn column_number(&mut self, val: u32) -> &mut Self { self.set_column_number(val); self } #[deprecated = "Use `set_filename()` instead."] pub fn filename(&mut self, val: &str) -> &mut Self { self.set_filename(val); self } #[deprecated = "Use `set_function_name()` instead."] pub fn function_name(&mut self, val: &str) -> &mut Self { self.set_function_name(val); self } #[deprecated = "Use `set_line_number()` instead."] pub fn line_number(&mut self, val: u32) -> &mut Self { self.set_line_number(val); self } } impl Default for ConsoleStackEntry { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleTimerError.rs000064400000000000000000000044601046102023000205330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &ConsoleTimerError) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &ConsoleTimerError, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ConsoleTimerError) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ConsoleTimerError, val: &str); } 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 } #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &str) -> &mut Self { self.set_error(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for ConsoleTimerError { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleTimerLogOrEnd.rs000064400000000000000000000045451046102023000211170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &ConsoleTimerLogOrEnd) -> Option; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &ConsoleTimerLogOrEnd, val: f64); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ConsoleTimerLogOrEnd) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ConsoleTimerLogOrEnd, val: &str); } 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 } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for ConsoleTimerLogOrEnd { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConsoleTimerStart.rs000064400000000000000000000031301046102023000205300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ConsoleTimerStart) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ConsoleTimerStart, val: &str); } 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 } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for ConsoleTimerStart { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConstantSourceNode.rs000064400000000000000000000123461046102023000207000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_ConstantSourceOptions.rs000064400000000000000000000032041046102023000214370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &ConstantSourceOptions) -> Option; #[doc = "Change the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &ConstantSourceOptions, val: f32); } 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 } #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f32) -> &mut Self { self.set_offset(val); self } } impl Default for ConstantSourceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConstrainBooleanParameters.rs000064400000000000000000000046431046102023000224050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] #[wasm_bindgen(method, getter = "exact")] pub fn get_exact(this: &ConstrainBooleanParameters) -> Option; #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] #[wasm_bindgen(method, setter = "exact")] pub fn set_exact(this: &ConstrainBooleanParameters, val: bool); #[doc = "Get the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] #[wasm_bindgen(method, getter = "ideal")] pub fn get_ideal(this: &ConstrainBooleanParameters) -> Option; #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] #[wasm_bindgen(method, setter = "ideal")] pub fn set_ideal(this: &ConstrainBooleanParameters, val: bool); } 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 } #[deprecated = "Use `set_exact()` instead."] pub fn exact(&mut self, val: bool) -> &mut Self { self.set_exact(val); self } #[deprecated = "Use `set_ideal()` instead."] pub fn ideal(&mut self, val: bool) -> &mut Self { self.set_ideal(val); self } } impl Default for ConstrainBooleanParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConstrainDomStringParameters.rs000064400000000000000000000050511046102023000227260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] #[wasm_bindgen(method, getter = "exact")] pub fn get_exact(this: &ConstrainDomStringParameters) -> ::wasm_bindgen::JsValue; #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] #[wasm_bindgen(method, setter = "exact")] pub fn set_exact(this: &ConstrainDomStringParameters, val: &::wasm_bindgen::JsValue); #[doc = "Get the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] #[wasm_bindgen(method, getter = "ideal")] pub fn get_ideal(this: &ConstrainDomStringParameters) -> ::wasm_bindgen::JsValue; #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] #[wasm_bindgen(method, setter = "ideal")] pub fn set_ideal(this: &ConstrainDomStringParameters, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_exact()` instead."] pub fn exact(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_exact(val); self } #[deprecated = "Use `set_ideal()` instead."] pub fn ideal(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ideal(val); self } } impl Default for ConstrainDomStringParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConstrainDoubleRange.rs000064400000000000000000000072651046102023000211740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, getter = "exact")] pub fn get_exact(this: &ConstrainDoubleRange) -> Option; #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, setter = "exact")] pub fn set_exact(this: &ConstrainDoubleRange, val: f64); #[doc = "Get the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, getter = "ideal")] pub fn get_ideal(this: &ConstrainDoubleRange) -> Option; #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, setter = "ideal")] pub fn set_ideal(this: &ConstrainDoubleRange, val: f64); #[doc = "Get the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, getter = "max")] pub fn get_max(this: &ConstrainDoubleRange) -> Option; #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, setter = "max")] pub fn set_max(this: &ConstrainDoubleRange, val: f64); #[doc = "Get the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, getter = "min")] pub fn get_min(this: &ConstrainDoubleRange) -> Option; #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] #[wasm_bindgen(method, setter = "min")] pub fn set_min(this: &ConstrainDoubleRange, val: f64); } 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 } #[deprecated = "Use `set_exact()` instead."] pub fn exact(&mut self, val: f64) -> &mut Self { self.set_exact(val); self } #[deprecated = "Use `set_ideal()` instead."] pub fn ideal(&mut self, val: f64) -> &mut Self { self.set_ideal(val); self } #[deprecated = "Use `set_max()` instead."] pub fn max(&mut self, val: f64) -> &mut Self { self.set_max(val); self } #[deprecated = "Use `set_min()` instead."] pub fn min(&mut self, val: f64) -> &mut Self { self.set_min(val); self } } impl Default for ConstrainDoubleRange { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConstrainLongRange.rs000064400000000000000000000072051046102023000206530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, getter = "exact")] pub fn get_exact(this: &ConstrainLongRange) -> Option; #[doc = "Change the `exact` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, setter = "exact")] pub fn set_exact(this: &ConstrainLongRange, val: i32); #[doc = "Get the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, getter = "ideal")] pub fn get_ideal(this: &ConstrainLongRange) -> Option; #[doc = "Change the `ideal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, setter = "ideal")] pub fn set_ideal(this: &ConstrainLongRange, val: i32); #[doc = "Get the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, getter = "max")] pub fn get_max(this: &ConstrainLongRange) -> Option; #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, setter = "max")] pub fn set_max(this: &ConstrainLongRange, val: i32); #[doc = "Get the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, getter = "min")] pub fn get_min(this: &ConstrainLongRange) -> Option; #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] #[wasm_bindgen(method, setter = "min")] pub fn set_min(this: &ConstrainLongRange, val: i32); } 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 } #[deprecated = "Use `set_exact()` instead."] pub fn exact(&mut self, val: i32) -> &mut Self { self.set_exact(val); self } #[deprecated = "Use `set_ideal()` instead."] pub fn ideal(&mut self, val: i32) -> &mut Self { self.set_ideal(val); self } #[deprecated = "Use `set_max()` instead."] pub fn max(&mut self, val: i32) -> &mut Self { self.set_max(val); self } #[deprecated = "Use `set_min()` instead."] pub fn min(&mut self, val: i32) -> &mut Self { self.set_min(val); self } } impl Default for ConstrainLongRange { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ContextAttributes2d.rs000064400000000000000000000046621046102023000210430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &ContextAttributes2d) -> Option; #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &ContextAttributes2d, val: bool); #[doc = "Get the `willReadFrequently` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] #[wasm_bindgen(method, getter = "willReadFrequently")] pub fn get_will_read_frequently(this: &ContextAttributes2d) -> Option; #[doc = "Change the `willReadFrequently` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] #[wasm_bindgen(method, setter = "willReadFrequently")] pub fn set_will_read_frequently(this: &ContextAttributes2d, val: bool); } 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 } #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: bool) -> &mut Self { self.set_alpha(val); self } #[deprecated = "Use `set_will_read_frequently()` instead."] pub fn will_read_frequently(&mut self, val: bool) -> &mut Self { self.set_will_read_frequently(val); self } } impl Default for ContextAttributes2d { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConvertCoordinateOptions.rs000064400000000000000000000053151046102023000221220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CssBoxType")] #[doc = "Get the `fromBox` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] #[wasm_bindgen(method, getter = "fromBox")] pub fn get_from_box(this: &ConvertCoordinateOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fromBox")] pub fn set_from_box(this: &ConvertCoordinateOptions, val: CssBoxType); #[cfg(feature = "CssBoxType")] #[doc = "Get the `toBox` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] #[wasm_bindgen(method, getter = "toBox")] pub fn get_to_box(this: &ConvertCoordinateOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "toBox")] pub fn set_to_box(this: &ConvertCoordinateOptions, val: CssBoxType); } 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")] #[deprecated = "Use `set_from_box()` instead."] pub fn from_box(&mut self, val: CssBoxType) -> &mut Self { self.set_from_box(val); self } #[cfg(feature = "CssBoxType")] #[deprecated = "Use `set_to_box()` instead."] pub fn to_box(&mut self, val: CssBoxType) -> &mut Self { self.set_to_box(val); self } } impl Default for ConvertCoordinateOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ConvolverNode.rs000064400000000000000000000073271046102023000177060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ConvolverOptions.rs000064400000000000000000000126051046102023000204470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &ConvolverOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &ConvolverOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ConvolverOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &ConvolverOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &ConvolverOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ConvolverOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &ConvolverOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &ConvolverOptions, val: ChannelInterpretation); #[cfg(feature = "AudioBuffer")] #[doc = "Get the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverOptions`*"] #[wasm_bindgen(method, getter = "buffer")] pub fn get_buffer(this: &ConvolverOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "buffer")] pub fn set_buffer(this: &ConvolverOptions, val: Option<&AudioBuffer>); #[doc = "Get the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] #[wasm_bindgen(method, getter = "disableNormalization")] pub fn get_disable_normalization(this: &ConvolverOptions) -> Option; #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] #[wasm_bindgen(method, setter = "disableNormalization")] pub fn set_disable_normalization(this: &ConvolverOptions, val: bool); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[cfg(feature = "AudioBuffer")] #[deprecated = "Use `set_buffer()` instead."] pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { self.set_buffer(val); self } #[deprecated = "Use `set_disable_normalization()` instead."] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { self.set_disable_normalization(val); self } } impl Default for ConvolverOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Coordinates.rs000064400000000000000000000072541046102023000173740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CountQueuingStrategy.rs000064400000000000000000000042371046102023000212710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CountQueuingStrategy , typescript_type = "CountQueuingStrategy")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CountQueuingStrategy` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"] pub type CountQueuingStrategy; # [wasm_bindgen (structural , method , getter , js_class = "CountQueuingStrategy" , js_name = highWaterMark)] #[doc = "Getter for the `highWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy/highWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"] pub fn high_water_mark(this: &CountQueuingStrategy) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "CountQueuingStrategy" , 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/CountQueuingStrategy/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"] pub fn size(this: &CountQueuingStrategy) -> ::js_sys::Function; #[cfg(feature = "QueuingStrategyInit")] #[wasm_bindgen(catch, constructor, js_class = "CountQueuingStrategy")] #[doc = "The `new CountQueuingStrategy(..)` constructor, creating a new instance of `CountQueuingStrategy`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy/CountQueuingStrategy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`, `QueuingStrategyInit`*"] pub fn new(init: &QueuingStrategyInit) -> Result; } web-sys-0.3.81/src/features/gen_Credential.rs000064400000000000000000000026431046102023000171710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_CredentialCreationOptions.rs000064400000000000000000000057451046102023000222400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "PublicKeyCredentialCreationOptions")] #[doc = "Get the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "publicKey")] pub fn get_public_key( this: &CredentialCreationOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "publicKey")] pub fn set_public_key( this: &CredentialCreationOptions, val: &PublicKeyCredentialCreationOptions, ); #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &CredentialCreationOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &CredentialCreationOptions, val: &AbortSignal); } 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")] #[deprecated = "Use `set_public_key()` instead."] pub fn public_key(&mut self, val: &PublicKeyCredentialCreationOptions) -> &mut Self { self.set_public_key(val); self } #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } impl Default for CredentialCreationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CredentialPropertiesOutput.rs000064400000000000000000000032371046102023000224670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialPropertiesOutput)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `CredentialPropertiesOutput` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialPropertiesOutput`*"] pub type CredentialPropertiesOutput; #[doc = "Get the `rk` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialPropertiesOutput`*"] #[wasm_bindgen(method, getter = "rk")] pub fn get_rk(this: &CredentialPropertiesOutput) -> Option; #[doc = "Change the `rk` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialPropertiesOutput`*"] #[wasm_bindgen(method, setter = "rk")] pub fn set_rk(this: &CredentialPropertiesOutput, val: bool); } impl CredentialPropertiesOutput { #[doc = "Construct a new `CredentialPropertiesOutput`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialPropertiesOutput`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_rk()` instead."] pub fn rk(&mut self, val: bool) -> &mut Self { self.set_rk(val); self } } impl Default for CredentialPropertiesOutput { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CredentialRequestOptions.rs000064400000000000000000000056661046102023000221260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "PublicKeyCredentialRequestOptions")] #[doc = "Get the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "publicKey")] pub fn get_public_key( this: &CredentialRequestOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "publicKey")] pub fn set_public_key(this: &CredentialRequestOptions, val: &PublicKeyCredentialRequestOptions); #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &CredentialRequestOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &CredentialRequestOptions, val: &AbortSignal); } 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")] #[deprecated = "Use `set_public_key()` instead."] pub fn public_key(&mut self, val: &PublicKeyCredentialRequestOptions) -> &mut Self { self.set_public_key(val); self } #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } impl Default for CredentialRequestOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_CredentialsContainer.rs000064400000000000000000000075301046102023000212170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_Crypto.rs000064400000000000000000000057061046102023000164020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; # [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_js_u8_array( this: &Crypto, array: &::js_sys::Uint8Array, ) -> Result<::js_sys::Object, JsValue>; # [wasm_bindgen (method , structural , js_class = "Crypto" , js_name = randomUUID)] #[doc = "The `randomUUID()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] pub fn random_uuid(this: &Crypto) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_CryptoKey.rs000064400000000000000000000044741046102023000170540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CryptoKeyPair.rs000064400000000000000000000052301046102023000176570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "CryptoKey")] #[doc = "Get the `privateKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] #[wasm_bindgen(method, getter = "privateKey")] pub fn get_private_key(this: &CryptoKeyPair) -> CryptoKey; #[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`*"] #[wasm_bindgen(method, setter = "privateKey")] pub fn set_private_key(this: &CryptoKeyPair, val: &CryptoKey); #[cfg(feature = "CryptoKey")] #[doc = "Get the `publicKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] #[wasm_bindgen(method, getter = "publicKey")] pub fn get_public_key(this: &CryptoKeyPair) -> CryptoKey; #[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`*"] #[wasm_bindgen(method, setter = "publicKey")] pub fn set_public_key(this: &CryptoKeyPair, val: &CryptoKey); } 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.set_private_key(private_key); ret.set_public_key(public_key); ret } #[cfg(feature = "CryptoKey")] #[deprecated = "Use `set_private_key()` instead."] pub fn private_key(&mut self, val: &CryptoKey) -> &mut Self { self.set_private_key(val); self } #[cfg(feature = "CryptoKey")] #[deprecated = "Use `set_public_key()` instead."] pub fn public_key(&mut self, val: &CryptoKey) -> &mut Self { self.set_public_key(val); self } } web-sys-0.3.81/src/features/gen_CssAnimation.rs000064400000000000000000000021251046102023000175020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_CssBoxType.rs000064400000000000000000000006141046102023000171560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CssConditionRule.rs000064400000000000000000000031561046102023000203460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_CssCounterStyleRule.rs000064400000000000000000000261121046102023000210550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_CssFontFaceRule.rs000064400000000000000000000021671046102023000201060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CssFontFeatureValuesRule.rs000064400000000000000000000052621046102023000220220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_CssGroupingRule.rs000064400000000000000000000050571046102023000202140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CssImportRule.rs000064400000000000000000000040531046102023000176670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CssKeyframeRule.rs000064400000000000000000000040471046102023000201630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CssKeyframesRule.rs000064400000000000000000000066401046102023000203470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CssMediaRule.rs000064400000000000000000000021641046102023000174350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CssNamespaceRule.rs000064400000000000000000000030731046102023000203120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_CssPageRule.rs000064400000000000000000000021171046102023000172700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CssPseudoElement.rs000064400000000000000000000133161046102023000203400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Animation")] # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate(this: &CssPseudoElement, keyframes: Option<&::js_sys::Object>) -> Animation; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Animation")] # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate_with_f64( this: &CssPseudoElement, keyframes: Option<&::js_sys::Object>, options: f64, ) -> Animation; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "Animation", feature = "KeyframeAnimationOptions",))] # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `CssPseudoElement`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate_with_keyframe_animation_options( this: &CssPseudoElement, keyframes: Option<&::js_sys::Object>, options: &KeyframeAnimationOptions, ) -> Animation; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = getAnimations)] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/getAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_animations(this: &CssPseudoElement) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GetAnimationsOptions")] # [wasm_bindgen (method , structural , js_class = "CSSPseudoElement" , js_name = getAnimations)] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/getAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_animations_with_options( this: &CssPseudoElement, options: &GetAnimationsOptions, ) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_CssRule.rs000064400000000000000000000123021046102023000164700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CssRuleList.rs000064400000000000000000000035251046102023000173330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"] pub fn get(this: &CssRuleList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_CssStyleDeclaration.rs000064400000000000000000000141531046102023000210350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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, ) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String, 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( 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] pub fn get(this: &CssStyleDeclaration, index: u32) -> Option<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_CssStyleRule.rs000064400000000000000000000040311046102023000175110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_CssStyleSheet.rs000064400000000000000000000105741046102023000176630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, constructor, js_class = "CSSStyleSheet")] #[doc = "The `new CssStyleSheet(..)` constructor, creating a new instance of `CssStyleSheet`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn new() -> 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; # [wasm_bindgen (method , structural , js_class = "CSSStyleSheet" , js_name = replace)] #[doc = "The `replace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn replace(this: &CssStyleSheet, text: &str) -> ::js_sys::Promise; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = replaceSync)] #[doc = "The `replaceSync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replaceSync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] pub fn replace_sync(this: &CssStyleSheet, text: &str) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_CssStyleSheetParsingMode.rs000064400000000000000000000006251046102023000220100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_CssSupportsRule.rs000064400000000000000000000012351046102023000202530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_CssTransition.rs000064400000000000000000000021631046102023000177170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_CustomElementRegistry.rs000064400000000000000000000064441046102023000214370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_CustomEvent.rs000064400000000000000000000101351046102023000173660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_CustomEventInit.rs000064400000000000000000000074031046102023000202160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &CustomEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &CustomEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &CustomEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &CustomEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &CustomEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &CustomEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &CustomEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &CustomEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_detail(val); self } } impl Default for CustomEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DataTransfer.rs000064400000000000000000000200721046102023000174710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, 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(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); } web-sys-0.3.81/src/features/gen_DataTransferItem.rs000064400000000000000000000075371046102023000203230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "DataTransferItem" , js_name = getAsFileSystemHandle)] #[doc = "The `getAsFileSystemHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsFileSystemHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_as_file_system_handle(this: &DataTransferItem) -> ::js_sys::Promise; # [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>; } web-sys-0.3.81/src/features/gen_DataTransferItemList.rs000064400000000000000000000072041046102023000211460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`*"] pub fn get(this: &DataTransferItemList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_DateTimeValue.rs000064400000000000000000000103101046102023000175760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `day` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, getter = "day")] pub fn get_day(this: &DateTimeValue) -> Option; #[doc = "Change the `day` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, setter = "day")] pub fn set_day(this: &DateTimeValue, val: i32); #[doc = "Get the `hour` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, getter = "hour")] pub fn get_hour(this: &DateTimeValue) -> Option; #[doc = "Change the `hour` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, setter = "hour")] pub fn set_hour(this: &DateTimeValue, val: i32); #[doc = "Get the `minute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, getter = "minute")] pub fn get_minute(this: &DateTimeValue) -> Option; #[doc = "Change the `minute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, setter = "minute")] pub fn set_minute(this: &DateTimeValue, val: i32); #[doc = "Get the `month` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, getter = "month")] pub fn get_month(this: &DateTimeValue) -> Option; #[doc = "Change the `month` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, setter = "month")] pub fn set_month(this: &DateTimeValue, val: i32); #[doc = "Get the `year` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, getter = "year")] pub fn get_year(this: &DateTimeValue) -> Option; #[doc = "Change the `year` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] #[wasm_bindgen(method, setter = "year")] pub fn set_year(this: &DateTimeValue, val: i32); } 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 } #[deprecated = "Use `set_day()` instead."] pub fn day(&mut self, val: i32) -> &mut Self { self.set_day(val); self } #[deprecated = "Use `set_hour()` instead."] pub fn hour(&mut self, val: i32) -> &mut Self { self.set_hour(val); self } #[deprecated = "Use `set_minute()` instead."] pub fn minute(&mut self, val: i32) -> &mut Self { self.set_minute(val); self } #[deprecated = "Use `set_month()` instead."] pub fn month(&mut self, val: i32) -> &mut Self { self.set_month(val); self } #[deprecated = "Use `set_year()` instead."] pub fn year(&mut self, val: i32) -> &mut Self { self.set_year(val); self } } impl Default for DateTimeValue { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DecoderDoctorNotification.rs000064400000000000000000000157141046102023000222110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `decodeIssue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "decodeIssue")] pub fn get_decode_issue(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `decodeIssue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "decodeIssue")] pub fn set_decode_issue(this: &DecoderDoctorNotification, val: &str); #[doc = "Get the `decoderDoctorReportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "decoderDoctorReportId")] pub fn get_decoder_doctor_report_id( this: &DecoderDoctorNotification, ) -> ::alloc::string::String; #[doc = "Change the `decoderDoctorReportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "decoderDoctorReportId")] pub fn set_decoder_doctor_report_id(this: &DecoderDoctorNotification, val: &str); #[doc = "Get the `docURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "docURL")] pub fn get_doc_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `docURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "docURL")] pub fn set_doc_url(this: &DecoderDoctorNotification, val: &str); #[doc = "Get the `formats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "formats")] pub fn get_formats(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `formats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "formats")] pub fn set_formats(this: &DecoderDoctorNotification, val: &str); #[doc = "Get the `isSolved` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "isSolved")] pub fn get_is_solved(this: &DecoderDoctorNotification) -> bool; #[doc = "Change the `isSolved` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "isSolved")] pub fn set_is_solved(this: &DecoderDoctorNotification, val: bool); #[doc = "Get the `resourceURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "resourceURL")] pub fn get_resource_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `resourceURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, setter = "resourceURL")] pub fn set_resource_url(this: &DecoderDoctorNotification, val: &str); #[cfg(feature = "DecoderDoctorNotificationType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &DecoderDoctorNotification) -> DecoderDoctorNotificationType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &DecoderDoctorNotification, val: DecoderDoctorNotificationType); } 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.set_decoder_doctor_report_id(decoder_doctor_report_id); ret.set_is_solved(is_solved); ret.set_type(type_); ret } #[deprecated = "Use `set_decode_issue()` instead."] pub fn decode_issue(&mut self, val: &str) -> &mut Self { self.set_decode_issue(val); self } #[deprecated = "Use `set_decoder_doctor_report_id()` instead."] pub fn decoder_doctor_report_id(&mut self, val: &str) -> &mut Self { self.set_decoder_doctor_report_id(val); self } #[deprecated = "Use `set_doc_url()` instead."] pub fn doc_url(&mut self, val: &str) -> &mut Self { self.set_doc_url(val); self } #[deprecated = "Use `set_formats()` instead."] pub fn formats(&mut self, val: &str) -> &mut Self { self.set_formats(val); self } #[deprecated = "Use `set_is_solved()` instead."] pub fn is_solved(&mut self, val: bool) -> &mut Self { self.set_is_solved(val); self } #[deprecated = "Use `set_resource_url()` instead."] pub fn resource_url(&mut self, val: &str) -> &mut Self { self.set_resource_url(val); self } #[cfg(feature = "DecoderDoctorNotificationType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: DecoderDoctorNotificationType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_DecoderDoctorNotificationType.rs000064400000000000000000000013121046102023000230400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_DecompressionStream.rs000064400000000000000000000065141046102023000211060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DecompressionStream , typescript_type = "DecompressionStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DecompressionStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecompressionStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type DecompressionStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "DecompressionStream" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecompressionStream`, `ReadableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &DecompressionStream) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "DecompressionStream" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecompressionStream`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &DecompressionStream) -> WritableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CompressionFormat")] #[wasm_bindgen(catch, constructor, js_class = "DecompressionStream")] #[doc = "The `new DecompressionStream(..)` constructor, creating a new instance of `DecompressionStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream/DecompressionStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompressionFormat`, `DecompressionStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(format: CompressionFormat) -> Result; } web-sys-0.3.81/src/features/gen_DedicatedWorkerGlobalScope.rs000064400000000000000000000174161046102023000222760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onrtctransform)] #[doc = "Getter for the `onrtctransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onrtctransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onrtctransform(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onrtctransform)] #[doc = "Setter for the `onrtctransform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onrtctransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onrtctransform( 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>; # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = cancelAnimationFrame)] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn cancel_animation_frame( this: &DedicatedWorkerGlobalScope, handle: i32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = requestAnimationFrame)] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] pub fn request_animation_frame( this: &DedicatedWorkerGlobalScope, callback: &::js_sys::Function, ) -> Result; } web-sys-0.3.81/src/features/gen_DelayNode.rs000064400000000000000000000043111046102023000167550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DelayOptions.rs000064400000000000000000000120731046102023000175270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &DelayOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &DelayOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DelayOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &DelayOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &DelayOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DelayOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &DelayOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &DelayOptions, val: ChannelInterpretation); #[doc = "Get the `delayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, getter = "delayTime")] pub fn get_delay_time(this: &DelayOptions) -> Option; #[doc = "Change the `delayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, setter = "delayTime")] pub fn set_delay_time(this: &DelayOptions, val: f64); #[doc = "Get the `maxDelayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, getter = "maxDelayTime")] pub fn get_max_delay_time(this: &DelayOptions) -> Option; #[doc = "Change the `maxDelayTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] #[wasm_bindgen(method, setter = "maxDelayTime")] pub fn set_max_delay_time(this: &DelayOptions, val: f64); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_delay_time()` instead."] pub fn delay_time(&mut self, val: f64) -> &mut Self { self.set_delay_time(val); self } #[deprecated = "Use `set_max_delay_time()` instead."] pub fn max_delay_time(&mut self, val: f64) -> &mut Self { self.set_max_delay_time(val); self } } impl Default for DelayOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceAcceleration.rs000064400000000000000000000037111046102023000206250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DeviceAccelerationInit.rs000064400000000000000000000057671046102023000214660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &DeviceAccelerationInit) -> Option; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &DeviceAccelerationInit, val: Option); #[doc = "Get the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &DeviceAccelerationInit) -> Option; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &DeviceAccelerationInit, val: Option); #[doc = "Get the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, getter = "z")] pub fn get_z(this: &DeviceAccelerationInit) -> Option; #[doc = "Change the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] #[wasm_bindgen(method, setter = "z")] pub fn set_z(this: &DeviceAccelerationInit, val: Option); } 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 } #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: Option) -> &mut Self { self.set_x(val); self } #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: Option) -> &mut Self { self.set_y(val); self } #[deprecated = "Use `set_z()` instead."] pub fn z(&mut self, val: Option) -> &mut Self { self.set_z(val); self } } impl Default for DeviceAccelerationInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceLightEvent.rs000064400000000000000000000042411046102023000203040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DeviceLightEventInit.rs000064400000000000000000000074741046102023000211430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &DeviceLightEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &DeviceLightEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &DeviceLightEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &DeviceLightEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &DeviceLightEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &DeviceLightEventInit, val: bool); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &DeviceLightEventInit) -> Option; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &DeviceLightEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: f64) -> &mut Self { self.set_value(val); self } } impl Default for DeviceLightEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceMotionEvent.rs000064400000000000000000000077071046102023000205140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DeviceMotionEventInit.rs000064400000000000000000000161531046102023000213330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &DeviceMotionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &DeviceMotionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &DeviceMotionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &DeviceMotionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &DeviceMotionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &DeviceMotionEventInit, val: bool); #[cfg(feature = "DeviceAccelerationInit")] #[doc = "Get the `acceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "acceleration")] pub fn get_acceleration(this: &DeviceMotionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "acceleration")] pub fn set_acceleration(this: &DeviceMotionEventInit, val: &DeviceAccelerationInit); #[cfg(feature = "DeviceAccelerationInit")] #[doc = "Get the `accelerationIncludingGravity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "accelerationIncludingGravity")] pub fn get_acceleration_including_gravity( this: &DeviceMotionEventInit, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "accelerationIncludingGravity")] pub fn set_acceleration_including_gravity( this: &DeviceMotionEventInit, val: &DeviceAccelerationInit, ); #[doc = "Get the `interval` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, getter = "interval")] pub fn get_interval(this: &DeviceMotionEventInit) -> Option; #[doc = "Change the `interval` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] #[wasm_bindgen(method, setter = "interval")] pub fn set_interval(this: &DeviceMotionEventInit, val: Option); #[cfg(feature = "DeviceRotationRateInit")] #[doc = "Get the `rotationRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`, `DeviceRotationRateInit`*"] #[wasm_bindgen(method, getter = "rotationRate")] pub fn get_rotation_rate(this: &DeviceMotionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "rotationRate")] pub fn set_rotation_rate(this: &DeviceMotionEventInit, val: &DeviceRotationRateInit); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "DeviceAccelerationInit")] #[deprecated = "Use `set_acceleration()` instead."] pub fn acceleration(&mut self, val: &DeviceAccelerationInit) -> &mut Self { self.set_acceleration(val); self } #[cfg(feature = "DeviceAccelerationInit")] #[deprecated = "Use `set_acceleration_including_gravity()` instead."] pub fn acceleration_including_gravity(&mut self, val: &DeviceAccelerationInit) -> &mut Self { self.set_acceleration_including_gravity(val); self } #[deprecated = "Use `set_interval()` instead."] pub fn interval(&mut self, val: Option) -> &mut Self { self.set_interval(val); self } #[cfg(feature = "DeviceRotationRateInit")] #[deprecated = "Use `set_rotation_rate()` instead."] pub fn rotation_rate(&mut self, val: &DeviceRotationRateInit) -> &mut Self { self.set_rotation_rate(val); self } } impl Default for DeviceMotionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceOrientationEvent.rs000064400000000000000000000205571046102023000215400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_DeviceOrientationEventInit.rs000064400000000000000000000143031046102023000223540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &DeviceOrientationEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &DeviceOrientationEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &DeviceOrientationEventInit, val: bool); #[doc = "Get the `absolute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "absolute")] pub fn get_absolute(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `absolute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "absolute")] pub fn set_absolute(this: &DeviceOrientationEventInit, val: bool); #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &DeviceOrientationEventInit, val: Option); #[doc = "Get the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "beta")] pub fn get_beta(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "beta")] pub fn set_beta(this: &DeviceOrientationEventInit, val: Option); #[doc = "Get the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, getter = "gamma")] pub fn get_gamma(this: &DeviceOrientationEventInit) -> Option; #[doc = "Change the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] #[wasm_bindgen(method, setter = "gamma")] pub fn set_gamma(this: &DeviceOrientationEventInit, val: Option); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_absolute()` instead."] pub fn absolute(&mut self, val: bool) -> &mut Self { self.set_absolute(val); self } #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: Option) -> &mut Self { self.set_alpha(val); self } #[deprecated = "Use `set_beta()` instead."] pub fn beta(&mut self, val: Option) -> &mut Self { self.set_beta(val); self } #[deprecated = "Use `set_gamma()` instead."] pub fn gamma(&mut self, val: Option) -> &mut Self { self.set_gamma(val); self } } impl Default for DeviceOrientationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceProximityEvent.rs000064400000000000000000000062451046102023000212470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DeviceProximityEventInit.rs000064400000000000000000000124641046102023000220730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &DeviceProximityEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &DeviceProximityEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &DeviceProximityEventInit, val: bool); #[doc = "Get the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "max")] pub fn get_max(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "max")] pub fn set_max(this: &DeviceProximityEventInit, val: f64); #[doc = "Get the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "min")] pub fn get_min(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "min")] pub fn set_min(this: &DeviceProximityEventInit, val: f64); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &DeviceProximityEventInit) -> Option; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &DeviceProximityEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_max()` instead."] pub fn max(&mut self, val: f64) -> &mut Self { self.set_max(val); self } #[deprecated = "Use `set_min()` instead."] pub fn min(&mut self, val: f64) -> &mut Self { self.set_min(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: f64) -> &mut Self { self.set_value(val); self } } impl Default for DeviceProximityEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DeviceRotationRate.rs000064400000000000000000000037651046102023000206600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DeviceRotationRateInit.rs000064400000000000000000000061321046102023000214730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &DeviceRotationRateInit) -> Option; #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &DeviceRotationRateInit, val: Option); #[doc = "Get the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, getter = "beta")] pub fn get_beta(this: &DeviceRotationRateInit) -> Option; #[doc = "Change the `beta` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, setter = "beta")] pub fn set_beta(this: &DeviceRotationRateInit, val: Option); #[doc = "Get the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, getter = "gamma")] pub fn get_gamma(this: &DeviceRotationRateInit) -> Option; #[doc = "Change the `gamma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] #[wasm_bindgen(method, setter = "gamma")] pub fn set_gamma(this: &DeviceRotationRateInit, val: Option); } 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 } #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: Option) -> &mut Self { self.set_alpha(val); self } #[deprecated = "Use `set_beta()` instead."] pub fn beta(&mut self, val: Option) -> &mut Self { self.set_beta(val); self } #[deprecated = "Use `set_gamma()` instead."] pub fn gamma(&mut self, val: Option) -> &mut Self { self.set_gamma(val); self } } impl Default for DeviceRotationRateInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DhKeyDeriveParams.rs000064400000000000000000000047241046102023000204300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &DhKeyDeriveParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &DhKeyDeriveParams, val: &str); #[cfg(feature = "CryptoKey")] #[doc = "Get the `public` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `DhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "public")] pub fn get_public(this: &DhKeyDeriveParams) -> CryptoKey; #[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`*"] #[wasm_bindgen(method, setter = "public")] pub fn set_public(this: &DhKeyDeriveParams, val: &CryptoKey); } 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.set_name(name); ret.set_public(public); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "CryptoKey")] #[deprecated = "Use `set_public()` instead."] pub fn public(&mut self, val: &CryptoKey) -> &mut Self { self.set_public(val); self } } web-sys-0.3.81/src/features/gen_DirectionSetting.rs000064400000000000000000000005531046102023000203730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Directory.rs000064400000000000000000000055751046102023000170720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, 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(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>; } web-sys-0.3.81/src/features/gen_DirectoryPickerOptions.rs000064400000000000000000000132501046102023000215710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DirectoryPickerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DirectoryPickerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type DirectoryPickerOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &DirectoryPickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &DirectoryPickerOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &DirectoryPickerOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &DirectoryPickerOptions, val: FileSystemPermissionMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "startIn")] pub fn get_start_in(this: &DirectoryPickerOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "startIn")] pub fn set_start_in(this: &DirectoryPickerOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl DirectoryPickerOptions { #[doc = "Construct a new `DirectoryPickerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: FileSystemPermissionMode) -> &mut Self { self.set_mode(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_start_in()` instead."] pub fn start_in(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_start_in(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for DirectoryPickerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DisplayMediaStreamConstraints.rs000064400000000000000000000050711046102023000230660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DisplayMediaStreamConstraints)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DisplayMediaStreamConstraints` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] pub type DisplayMediaStreamConstraints; #[doc = "Get the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "audio")] pub fn get_audio(this: &DisplayMediaStreamConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "audio")] pub fn set_audio(this: &DisplayMediaStreamConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "video")] pub fn get_video(this: &DisplayMediaStreamConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "video")] pub fn set_video(this: &DisplayMediaStreamConstraints, val: &::wasm_bindgen::JsValue); } impl DisplayMediaStreamConstraints { #[doc = "Construct a new `DisplayMediaStreamConstraints`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_audio()` instead."] pub fn audio(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_audio(val); self } #[deprecated = "Use `set_video()` instead."] pub fn video(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_video(val); self } } impl Default for DisplayMediaStreamConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DisplayNameOptions.rs000064400000000000000000000045401046102023000206770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `keys` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] #[wasm_bindgen(method, getter = "keys")] pub fn get_keys(this: &DisplayNameOptions) -> Option<::js_sys::Array>; #[doc = "Change the `keys` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] #[wasm_bindgen(method, setter = "keys")] pub fn set_keys(this: &DisplayNameOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] #[wasm_bindgen(method, getter = "style")] pub fn get_style(this: &DisplayNameOptions) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] #[wasm_bindgen(method, setter = "style")] pub fn set_style(this: &DisplayNameOptions, val: &str); } 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 } #[deprecated = "Use `set_keys()` instead."] pub fn keys(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_keys(val); self } #[deprecated = "Use `set_style()` instead."] pub fn style(&mut self, val: &str) -> &mut Self { self.set_style(val); self } } impl Default for DisplayNameOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DisplayNameResult.rs000064400000000000000000000060661046102023000205270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, getter = "locale")] pub fn get_locale(this: &DisplayNameResult) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, setter = "locale")] pub fn set_locale(this: &DisplayNameResult, val: &str); #[doc = "Get the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, getter = "style")] pub fn get_style(this: &DisplayNameResult) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, setter = "style")] pub fn set_style(this: &DisplayNameResult, val: &str); #[doc = "Get the `values` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, getter = "values")] pub fn get_values(this: &DisplayNameResult) -> Option<::js_sys::Object>; #[doc = "Change the `values` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, setter = "values")] pub fn set_values(this: &DisplayNameResult, val: &::js_sys::Object); } 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 } #[deprecated = "Use `set_locale()` instead."] pub fn locale(&mut self, val: &str) -> &mut Self { self.set_locale(val); self } #[deprecated = "Use `set_style()` instead."] pub fn style(&mut self, val: &str) -> &mut Self { self.set_style(val); self } #[deprecated = "Use `set_values()` instead."] pub fn values(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_values(val); self } } impl Default for DisplayNameResult { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DistanceModelType.rs000064400000000000000000000006221046102023000204670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_DnsCacheDict.rs000064400000000000000000000031271046102023000173710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `entries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] #[wasm_bindgen(method, getter = "entries")] pub fn get_entries(this: &DnsCacheDict) -> Option<::js_sys::Array>; #[doc = "Change the `entries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] #[wasm_bindgen(method, setter = "entries")] pub fn set_entries(this: &DnsCacheDict, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_entries()` instead."] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_entries(val); self } } impl Default for DnsCacheDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DnsCacheEntry.rs000064400000000000000000000106421046102023000176070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `expiration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "expiration")] pub fn get_expiration(this: &DnsCacheEntry) -> Option; #[doc = "Change the `expiration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, setter = "expiration")] pub fn set_expiration(this: &DnsCacheEntry, val: f64); #[doc = "Get the `family` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "family")] pub fn get_family(this: &DnsCacheEntry) -> Option<::alloc::string::String>; #[doc = "Change the `family` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, setter = "family")] pub fn set_family(this: &DnsCacheEntry, val: &str); #[doc = "Get the `hostaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "hostaddr")] pub fn get_hostaddr(this: &DnsCacheEntry) -> Option<::js_sys::Array>; #[doc = "Change the `hostaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, setter = "hostaddr")] pub fn set_hostaddr(this: &DnsCacheEntry, val: &::wasm_bindgen::JsValue); #[doc = "Get the `hostname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "hostname")] pub fn get_hostname(this: &DnsCacheEntry) -> Option<::alloc::string::String>; #[doc = "Change the `hostname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, setter = "hostname")] pub fn set_hostname(this: &DnsCacheEntry, val: &str); #[doc = "Get the `trr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "trr")] pub fn get_trr(this: &DnsCacheEntry) -> Option; #[doc = "Change the `trr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, setter = "trr")] pub fn set_trr(this: &DnsCacheEntry, val: bool); } 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 } #[deprecated = "Use `set_expiration()` instead."] pub fn expiration(&mut self, val: f64) -> &mut Self { self.set_expiration(val); self } #[deprecated = "Use `set_family()` instead."] pub fn family(&mut self, val: &str) -> &mut Self { self.set_family(val); self } #[deprecated = "Use `set_hostaddr()` instead."] pub fn hostaddr(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hostaddr(val); self } #[deprecated = "Use `set_hostname()` instead."] pub fn hostname(&mut self, val: &str) -> &mut Self { self.set_hostname(val); self } #[deprecated = "Use `set_trr()` instead."] pub fn trr(&mut self, val: bool) -> &mut Self { self.set_trr(val); self } } impl Default for DnsCacheEntry { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DnsLookupDict.rs000064400000000000000000000057511046102023000176440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `address` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, getter = "address")] pub fn get_address(this: &DnsLookupDict) -> Option<::js_sys::Array>; #[doc = "Change the `address` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, setter = "address")] pub fn set_address(this: &DnsLookupDict, val: &::wasm_bindgen::JsValue); #[doc = "Get the `answer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, getter = "answer")] pub fn get_answer(this: &DnsLookupDict) -> Option; #[doc = "Change the `answer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, setter = "answer")] pub fn set_answer(this: &DnsLookupDict, val: bool); #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &DnsLookupDict) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &DnsLookupDict, val: &str); } 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 } #[deprecated = "Use `set_address()` instead."] pub fn address(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_address(val); self } #[deprecated = "Use `set_answer()` instead."] pub fn answer(&mut self, val: bool) -> &mut Self { self.set_answer(val); self } #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &str) -> &mut Self { self.set_error(val); self } } impl Default for DnsLookupDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Document.rs000064400000000000000000006032231046102023000166760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; #[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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = pictureInPictureEnabled)] #[doc = "Getter for the `pictureInPictureEnabled` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pictureInPictureEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn picture_in_picture_enabled(this: &Document) -> bool; # [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 = "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 = "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; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = adoptedStyleSheets)] #[doc = "Getter for the `adoptedStyleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn adopted_style_sheets(this: &Document) -> ::js_sys::Array; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = adoptedStyleSheets)] #[doc = "Setter for the `adoptedStyleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_adopted_style_sheets(this: &Document, value: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = pictureInPictureElement)] #[doc = "Getter for the `pictureInPictureElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pictureInPictureElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn picture_in_picture_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 = onbeforetoggle)] #[doc = "Getter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onbeforetoggle(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onbeforetoggle)] #[doc = "Setter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onbeforetoggle(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 = onbeforeinput)] #[doc = "Getter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn onbeforeinput(this: &Document) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = onbeforeinput)] #[doc = "Setter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn set_onbeforeinput(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); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Document" , js_name = exitPictureInPicture)] #[doc = "The `exitPictureInPicture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPictureInPicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn exit_picture_in_picture(this: &Document) -> ::js_sys::Promise; # [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(web_sys_unstable_apis)] #[cfg(feature = "ViewTransition")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)] #[doc = "The `startViewTransition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn start_view_transition(this: &Document) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ViewTransition")] # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)] #[doc = "The `startViewTransition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn start_view_transition_with_update_callback( this: &Document, update_callback: Option<&::js_sys::Function>, ) -> Result; #[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>; # [wasm_bindgen (method , structural , variadic , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node(this: &Document, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_0(this: &Document); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_1(this: &Document, nodes_1: &Node); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_2(this: &Document, nodes_1: &Node, nodes_2: &Node); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_3( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_4( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_5( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_node_6( this: &Document, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_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, ); # [wasm_bindgen (method , structural , variadic , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str(this: &Document, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_0(this: &Document); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_1(this: &Document, nodes_1: &str); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_3( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_4( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_5( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_with_str_6( this: &Document, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ); # [wasm_bindgen (method , structural , js_class = "Document" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] pub fn replace_children_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, ); #[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; } web-sys-0.3.81/src/features/gen_DocumentFragment.rs000064400000000000000000001034541046102023000203630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; # [wasm_bindgen (method , structural , variadic , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node(this: &DocumentFragment, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_0(this: &DocumentFragment); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_1(this: &DocumentFragment, nodes_1: &Node); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_2(this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_3( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_4( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_5( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_node_6( this: &DocumentFragment, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_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, ); # [wasm_bindgen (method , structural , variadic , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str(this: &DocumentFragment, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_0(this: &DocumentFragment); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_1(this: &DocumentFragment, nodes_1: &str); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_2(this: &DocumentFragment, nodes_1: &str, nodes_2: &str); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_3( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_4( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_5( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_with_str_6( this: &DocumentFragment, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ); # [wasm_bindgen (method , structural , js_class = "DocumentFragment" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] pub fn replace_children_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, ); } web-sys-0.3.81/src/features/gen_DocumentTimeline.rs000064400000000000000000000032731046102023000203640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DocumentTimelineOptions.rs000064400000000000000000000033051046102023000217340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `originTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] #[wasm_bindgen(method, getter = "originTime")] pub fn get_origin_time(this: &DocumentTimelineOptions) -> Option; #[doc = "Change the `originTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] #[wasm_bindgen(method, setter = "originTime")] pub fn set_origin_time(this: &DocumentTimelineOptions, val: f64); } 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 } #[deprecated = "Use `set_origin_time()` instead."] pub fn origin_time(&mut self, val: f64) -> &mut Self { self.set_origin_time(val); self } } impl Default for DocumentTimelineOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DocumentType.rs000064400000000000000000000751671046102023000175520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_DomError.rs000064400000000000000000000044401046102023000166450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_DomException.rs000064400000000000000000000266461046102023000175260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_DomImplementation.rs000064400000000000000000000101401046102023000205330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DomMatrix.rs000064400000000000000000001055051046102023000170240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_f32_array(array32: &::js_sys::Float32Array) -> 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_f64_array(array64: &::js_sys::Float64Array) -> 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; } web-sys-0.3.81/src/features/gen_DomMatrix2dInit.rs000064400000000000000000000213551046102023000200760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrix2DInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrix2dInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] pub type DomMatrix2dInit; #[doc = "Get the `a` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "a")] pub fn get_a(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `a` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "a")] pub fn set_a(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `b` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "b")] pub fn get_b(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `b` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "b")] pub fn set_b(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `c` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "c")] pub fn get_c(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `c` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "c")] pub fn set_c(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "d")] pub fn get_d(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "d")] pub fn set_d(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "e")] pub fn get_e(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "e")] pub fn set_e(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `f` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "f")] pub fn get_f(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `f` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "f")] pub fn set_f(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m11` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m11")] pub fn get_m11(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m11` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m11")] pub fn set_m11(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m12` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m12")] pub fn get_m12(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m12` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m12")] pub fn set_m12(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m21` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m21")] pub fn get_m21(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m21` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m21")] pub fn set_m21(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m22` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m22")] pub fn get_m22(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m22` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m22")] pub fn set_m22(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m41` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m41")] pub fn get_m41(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m41` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m41")] pub fn set_m41(this: &DomMatrix2dInit, val: f64); #[doc = "Get the `m42` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, getter = "m42")] pub fn get_m42(this: &DomMatrix2dInit) -> Option; #[doc = "Change the `m42` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] #[wasm_bindgen(method, setter = "m42")] pub fn set_m42(this: &DomMatrix2dInit, val: f64); } impl DomMatrix2dInit { #[doc = "Construct a new `DomMatrix2dInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_a()` instead."] pub fn a(&mut self, val: f64) -> &mut Self { self.set_a(val); self } #[deprecated = "Use `set_b()` instead."] pub fn b(&mut self, val: f64) -> &mut Self { self.set_b(val); self } #[deprecated = "Use `set_c()` instead."] pub fn c(&mut self, val: f64) -> &mut Self { self.set_c(val); self } #[deprecated = "Use `set_d()` instead."] pub fn d(&mut self, val: f64) -> &mut Self { self.set_d(val); self } #[deprecated = "Use `set_e()` instead."] pub fn e(&mut self, val: f64) -> &mut Self { self.set_e(val); self } #[deprecated = "Use `set_f()` instead."] pub fn f(&mut self, val: f64) -> &mut Self { self.set_f(val); self } #[deprecated = "Use `set_m11()` instead."] pub fn m11(&mut self, val: f64) -> &mut Self { self.set_m11(val); self } #[deprecated = "Use `set_m12()` instead."] pub fn m12(&mut self, val: f64) -> &mut Self { self.set_m12(val); self } #[deprecated = "Use `set_m21()` instead."] pub fn m21(&mut self, val: f64) -> &mut Self { self.set_m21(val); self } #[deprecated = "Use `set_m22()` instead."] pub fn m22(&mut self, val: f64) -> &mut Self { self.set_m22(val); self } #[deprecated = "Use `set_m41()` instead."] pub fn m41(&mut self, val: f64) -> &mut Self { self.set_m41(val); self } #[deprecated = "Use `set_m42()` instead."] pub fn m42(&mut self, val: f64) -> &mut Self { self.set_m42(val); self } } impl Default for DomMatrix2dInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomMatrixInit.rs000064400000000000000000000375561046102023000176620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrixInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DomMatrixInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] pub type DomMatrixInit; #[doc = "Get the `a` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "a")] pub fn get_a(this: &DomMatrixInit) -> Option; #[doc = "Change the `a` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "a")] pub fn set_a(this: &DomMatrixInit, val: f64); #[doc = "Get the `b` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "b")] pub fn get_b(this: &DomMatrixInit) -> Option; #[doc = "Change the `b` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "b")] pub fn set_b(this: &DomMatrixInit, val: f64); #[doc = "Get the `c` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "c")] pub fn get_c(this: &DomMatrixInit) -> Option; #[doc = "Change the `c` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "c")] pub fn set_c(this: &DomMatrixInit, val: f64); #[doc = "Get the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "d")] pub fn get_d(this: &DomMatrixInit) -> Option; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "d")] pub fn set_d(this: &DomMatrixInit, val: f64); #[doc = "Get the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "e")] pub fn get_e(this: &DomMatrixInit) -> Option; #[doc = "Change the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "e")] pub fn set_e(this: &DomMatrixInit, val: f64); #[doc = "Get the `f` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "f")] pub fn get_f(this: &DomMatrixInit) -> Option; #[doc = "Change the `f` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "f")] pub fn set_f(this: &DomMatrixInit, val: f64); #[doc = "Get the `m11` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m11")] pub fn get_m11(this: &DomMatrixInit) -> Option; #[doc = "Change the `m11` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m11")] pub fn set_m11(this: &DomMatrixInit, val: f64); #[doc = "Get the `m12` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m12")] pub fn get_m12(this: &DomMatrixInit) -> Option; #[doc = "Change the `m12` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m12")] pub fn set_m12(this: &DomMatrixInit, val: f64); #[doc = "Get the `m21` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m21")] pub fn get_m21(this: &DomMatrixInit) -> Option; #[doc = "Change the `m21` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m21")] pub fn set_m21(this: &DomMatrixInit, val: f64); #[doc = "Get the `m22` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m22")] pub fn get_m22(this: &DomMatrixInit) -> Option; #[doc = "Change the `m22` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m22")] pub fn set_m22(this: &DomMatrixInit, val: f64); #[doc = "Get the `m41` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m41")] pub fn get_m41(this: &DomMatrixInit) -> Option; #[doc = "Change the `m41` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m41")] pub fn set_m41(this: &DomMatrixInit, val: f64); #[doc = "Get the `m42` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m42")] pub fn get_m42(this: &DomMatrixInit) -> Option; #[doc = "Change the `m42` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m42")] pub fn set_m42(this: &DomMatrixInit, val: f64); #[doc = "Get the `is2D` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "is2D")] pub fn get_is_2d(this: &DomMatrixInit) -> Option; #[doc = "Change the `is2D` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "is2D")] pub fn set_is_2d(this: &DomMatrixInit, val: bool); #[doc = "Get the `m13` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m13")] pub fn get_m13(this: &DomMatrixInit) -> Option; #[doc = "Change the `m13` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m13")] pub fn set_m13(this: &DomMatrixInit, val: f64); #[doc = "Get the `m14` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m14")] pub fn get_m14(this: &DomMatrixInit) -> Option; #[doc = "Change the `m14` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m14")] pub fn set_m14(this: &DomMatrixInit, val: f64); #[doc = "Get the `m23` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m23")] pub fn get_m23(this: &DomMatrixInit) -> Option; #[doc = "Change the `m23` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m23")] pub fn set_m23(this: &DomMatrixInit, val: f64); #[doc = "Get the `m24` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m24")] pub fn get_m24(this: &DomMatrixInit) -> Option; #[doc = "Change the `m24` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m24")] pub fn set_m24(this: &DomMatrixInit, val: f64); #[doc = "Get the `m31` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m31")] pub fn get_m31(this: &DomMatrixInit) -> Option; #[doc = "Change the `m31` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m31")] pub fn set_m31(this: &DomMatrixInit, val: f64); #[doc = "Get the `m32` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m32")] pub fn get_m32(this: &DomMatrixInit) -> Option; #[doc = "Change the `m32` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m32")] pub fn set_m32(this: &DomMatrixInit, val: f64); #[doc = "Get the `m33` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m33")] pub fn get_m33(this: &DomMatrixInit) -> Option; #[doc = "Change the `m33` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m33")] pub fn set_m33(this: &DomMatrixInit, val: f64); #[doc = "Get the `m34` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m34")] pub fn get_m34(this: &DomMatrixInit) -> Option; #[doc = "Change the `m34` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m34")] pub fn set_m34(this: &DomMatrixInit, val: f64); #[doc = "Get the `m43` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m43")] pub fn get_m43(this: &DomMatrixInit) -> Option; #[doc = "Change the `m43` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m43")] pub fn set_m43(this: &DomMatrixInit, val: f64); #[doc = "Get the `m44` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, getter = "m44")] pub fn get_m44(this: &DomMatrixInit) -> Option; #[doc = "Change the `m44` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] #[wasm_bindgen(method, setter = "m44")] pub fn set_m44(this: &DomMatrixInit, val: f64); } impl DomMatrixInit { #[doc = "Construct a new `DomMatrixInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_a()` instead."] pub fn a(&mut self, val: f64) -> &mut Self { self.set_a(val); self } #[deprecated = "Use `set_b()` instead."] pub fn b(&mut self, val: f64) -> &mut Self { self.set_b(val); self } #[deprecated = "Use `set_c()` instead."] pub fn c(&mut self, val: f64) -> &mut Self { self.set_c(val); self } #[deprecated = "Use `set_d()` instead."] pub fn d(&mut self, val: f64) -> &mut Self { self.set_d(val); self } #[deprecated = "Use `set_e()` instead."] pub fn e(&mut self, val: f64) -> &mut Self { self.set_e(val); self } #[deprecated = "Use `set_f()` instead."] pub fn f(&mut self, val: f64) -> &mut Self { self.set_f(val); self } #[deprecated = "Use `set_m11()` instead."] pub fn m11(&mut self, val: f64) -> &mut Self { self.set_m11(val); self } #[deprecated = "Use `set_m12()` instead."] pub fn m12(&mut self, val: f64) -> &mut Self { self.set_m12(val); self } #[deprecated = "Use `set_m21()` instead."] pub fn m21(&mut self, val: f64) -> &mut Self { self.set_m21(val); self } #[deprecated = "Use `set_m22()` instead."] pub fn m22(&mut self, val: f64) -> &mut Self { self.set_m22(val); self } #[deprecated = "Use `set_m41()` instead."] pub fn m41(&mut self, val: f64) -> &mut Self { self.set_m41(val); self } #[deprecated = "Use `set_m42()` instead."] pub fn m42(&mut self, val: f64) -> &mut Self { self.set_m42(val); self } #[deprecated = "Use `set_is_2d()` instead."] pub fn is_2d(&mut self, val: bool) -> &mut Self { self.set_is_2d(val); self } #[deprecated = "Use `set_m13()` instead."] pub fn m13(&mut self, val: f64) -> &mut Self { self.set_m13(val); self } #[deprecated = "Use `set_m14()` instead."] pub fn m14(&mut self, val: f64) -> &mut Self { self.set_m14(val); self } #[deprecated = "Use `set_m23()` instead."] pub fn m23(&mut self, val: f64) -> &mut Self { self.set_m23(val); self } #[deprecated = "Use `set_m24()` instead."] pub fn m24(&mut self, val: f64) -> &mut Self { self.set_m24(val); self } #[deprecated = "Use `set_m31()` instead."] pub fn m31(&mut self, val: f64) -> &mut Self { self.set_m31(val); self } #[deprecated = "Use `set_m32()` instead."] pub fn m32(&mut self, val: f64) -> &mut Self { self.set_m32(val); self } #[deprecated = "Use `set_m33()` instead."] pub fn m33(&mut self, val: f64) -> &mut Self { self.set_m33(val); self } #[deprecated = "Use `set_m34()` instead."] pub fn m34(&mut self, val: f64) -> &mut Self { self.set_m34(val); self } #[deprecated = "Use `set_m43()` instead."] pub fn m43(&mut self, val: f64) -> &mut Self { self.set_m43(val); self } #[deprecated = "Use `set_m44()` instead."] pub fn m44(&mut self, val: f64) -> &mut Self { self.set_m44(val); self } } impl Default for DomMatrixInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomMatrixReadOnly.rs000064400000000000000000000722151046102023000204630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec, 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<::alloc::vec::Vec, 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; } web-sys-0.3.81/src/features/gen_DomParser.rs000064400000000000000000000031151046102023000170060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DomPoint.rs000064400000000000000000000156251046102023000166540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_static)"] #[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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`*"] pub fn from_point_with_other(other: &DomPointInit) -> DomPoint; } web-sys-0.3.81/src/features/gen_DomPointInit.rs000064400000000000000000000066111046102023000174730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `w` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, getter = "w")] pub fn get_w(this: &DomPointInit) -> Option; #[doc = "Change the `w` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, setter = "w")] pub fn set_w(this: &DomPointInit, val: f64); #[doc = "Get the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &DomPointInit) -> Option; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &DomPointInit, val: f64); #[doc = "Get the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &DomPointInit) -> Option; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &DomPointInit, val: f64); #[doc = "Get the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, getter = "z")] pub fn get_z(this: &DomPointInit) -> Option; #[doc = "Change the `z` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] #[wasm_bindgen(method, setter = "z")] pub fn set_z(this: &DomPointInit, val: f64); } 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 } #[deprecated = "Use `set_w()` instead."] pub fn w(&mut self, val: f64) -> &mut Self { self.set_w(val); self } #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: f64) -> &mut Self { self.set_x(val); self } #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: f64) -> &mut Self { self.set_y(val); self } #[deprecated = "Use `set_z()` instead."] pub fn z(&mut self, val: f64) -> &mut Self { self.set_z(val); self } } impl Default for DomPointInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomPointReadOnly.rs000064400000000000000000000143221046102023000203030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_static)"] #[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_static)"] #[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; } web-sys-0.3.81/src/features/gen_DomQuad.rs000064400000000000000000000155171046102023000164550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DomQuadInit.rs000064400000000000000000000101051046102023000172650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "DomPointInit")] #[doc = "Get the `p1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] #[wasm_bindgen(method, getter = "p1")] pub fn get_p1(this: &DomQuadInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p1")] pub fn set_p1(this: &DomQuadInit, val: &DomPointInit); #[cfg(feature = "DomPointInit")] #[doc = "Get the `p2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] #[wasm_bindgen(method, getter = "p2")] pub fn get_p2(this: &DomQuadInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p2")] pub fn set_p2(this: &DomQuadInit, val: &DomPointInit); #[cfg(feature = "DomPointInit")] #[doc = "Get the `p3` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] #[wasm_bindgen(method, getter = "p3")] pub fn get_p3(this: &DomQuadInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p3")] pub fn set_p3(this: &DomQuadInit, val: &DomPointInit); #[cfg(feature = "DomPointInit")] #[doc = "Get the `p4` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] #[wasm_bindgen(method, getter = "p4")] pub fn get_p4(this: &DomQuadInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p4")] pub fn set_p4(this: &DomQuadInit, val: &DomPointInit); } 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")] #[deprecated = "Use `set_p1()` instead."] pub fn p1(&mut self, val: &DomPointInit) -> &mut Self { self.set_p1(val); self } #[cfg(feature = "DomPointInit")] #[deprecated = "Use `set_p2()` instead."] pub fn p2(&mut self, val: &DomPointInit) -> &mut Self { self.set_p2(val); self } #[cfg(feature = "DomPointInit")] #[deprecated = "Use `set_p3()` instead."] pub fn p3(&mut self, val: &DomPointInit) -> &mut Self { self.set_p3(val); self } #[cfg(feature = "DomPointInit")] #[deprecated = "Use `set_p4()` instead."] pub fn p4(&mut self, val: &DomPointInit) -> &mut Self { self.set_p4(val); self } } impl Default for DomQuadInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomQuadJson.rs000064400000000000000000000077051046102023000173070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "DomPoint")] #[doc = "Get the `p1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] #[wasm_bindgen(method, getter = "p1")] pub fn get_p1(this: &DomQuadJson) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p1")] pub fn set_p1(this: &DomQuadJson, val: &DomPoint); #[cfg(feature = "DomPoint")] #[doc = "Get the `p2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] #[wasm_bindgen(method, getter = "p2")] pub fn get_p2(this: &DomQuadJson) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p2")] pub fn set_p2(this: &DomQuadJson, val: &DomPoint); #[cfg(feature = "DomPoint")] #[doc = "Get the `p3` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] #[wasm_bindgen(method, getter = "p3")] pub fn get_p3(this: &DomQuadJson) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p3")] pub fn set_p3(this: &DomQuadJson, val: &DomPoint); #[cfg(feature = "DomPoint")] #[doc = "Get the `p4` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] #[wasm_bindgen(method, getter = "p4")] pub fn get_p4(this: &DomQuadJson) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "p4")] pub fn set_p4(this: &DomQuadJson, val: &DomPoint); } 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")] #[deprecated = "Use `set_p1()` instead."] pub fn p1(&mut self, val: &DomPoint) -> &mut Self { self.set_p1(val); self } #[cfg(feature = "DomPoint")] #[deprecated = "Use `set_p2()` instead."] pub fn p2(&mut self, val: &DomPoint) -> &mut Self { self.set_p2(val); self } #[cfg(feature = "DomPoint")] #[deprecated = "Use `set_p3()` instead."] pub fn p3(&mut self, val: &DomPoint) -> &mut Self { self.set_p3(val); self } #[cfg(feature = "DomPoint")] #[deprecated = "Use `set_p4()` instead."] pub fn p4(&mut self, val: &DomPoint) -> &mut Self { self.set_p4(val); self } } impl Default for DomQuadJson { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomRect.rs000064400000000000000000000140451046102023000164530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DomRectInit.rs000064400000000000000000000067021046102023000173000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &DomRectInit) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &DomRectInit, val: f64); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &DomRectInit) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &DomRectInit, val: f64); #[doc = "Get the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &DomRectInit) -> Option; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &DomRectInit, val: f64); #[doc = "Get the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &DomRectInit) -> Option; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &DomRectInit, val: f64); } 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 } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: f64) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: f64) -> &mut Self { self.set_width(val); self } #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: f64) -> &mut Self { self.set_x(val); self } #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: f64) -> &mut Self { self.set_y(val); self } } impl Default for DomRectInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DomRectList.rs000064400000000000000000000035251046102023000173100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"] pub fn get(this: &DomRectList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_DomRectReadOnly.rs000064400000000000000000000160221046102023000201060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DomRequest.rs000064400000000000000000000126101046102023000172020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_DomRequestReadyState.rs000064400000000000000000000005661046102023000211770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_DomStringList.rs000064400000000000000000000043641046102023000176630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; #[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] pub fn get(this: &DomStringList, index: u32) -> Option<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_DomStringMap.rs000064400000000000000000000032751046102023000174650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub fn get(this: &DomStringMap, name: &str) -> Option<::alloc::string::String>; #[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)] #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."] #[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. As in the literal Javascript `delete this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] pub fn delete(this: &DomStringMap, name: &str); } web-sys-0.3.81/src/features/gen_DomTokenList.rs000064400000000000000000000371751046102023000175030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn entries(this: &DomTokenList) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn for_each(this: &DomTokenList, callback: &::js_sys::Function) -> Result<(), JsValue>; # [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<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn keys(this: &DomTokenList) -> ::js_sys::Iterator; # [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" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn values(this: &DomTokenList) -> ::js_sys::Iterator; #[wasm_bindgen(method, structural, js_class = "DOMTokenList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] pub fn get(this: &DomTokenList, index: u32) -> Option<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_DomWindowResizeEventDetail.rs000064400000000000000000000046461046102023000223420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &DomWindowResizeEventDetail) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &DomWindowResizeEventDetail, val: i32); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &DomWindowResizeEventDetail) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &DomWindowResizeEventDetail, val: i32); } 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 } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: i32) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: i32) -> &mut Self { self.set_width(val); self } } impl Default for DomWindowResizeEventDetail { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DoubleRange.rs000064400000000000000000000075471046102023000173160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DoubleRange)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `DoubleRange` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type DoubleRange; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "max")] pub fn get_max(this: &DoubleRange) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "max")] pub fn set_max(this: &DoubleRange, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "min")] pub fn get_min(this: &DoubleRange) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "min")] pub fn set_min(this: &DoubleRange, val: f64); } #[cfg(web_sys_unstable_apis)] impl DoubleRange { #[doc = "Construct a new `DoubleRange`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_max()` instead."] pub fn max(&mut self, val: f64) -> &mut Self { self.set_max(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_min()` instead."] pub fn min(&mut self, val: f64) -> &mut Self { self.set_min(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for DoubleRange { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DragEvent.rs000064400000000000000000000352251046102023000170000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>, ); } web-sys-0.3.81/src/features/gen_DragEventInit.rs000064400000000000000000000531561046102023000176270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &DragEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &DragEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &DragEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &DragEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &DragEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &DragEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &DragEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &DragEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &DragEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &DragEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &DragEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &DragEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &DragEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &DragEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &DragEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &DragEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &DragEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &DragEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &DragEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &DragEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &DragEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &DragEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &DragEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &DragEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &DragEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &DragEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &DragEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &DragEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &DragEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &DragEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &DragEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &DragEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &DragEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &DragEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &DragEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &DragEventInit, val: bool); #[doc = "Get the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "button")] pub fn get_button(this: &DragEventInit) -> Option; #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "button")] pub fn set_button(this: &DragEventInit, val: i16); #[doc = "Get the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "buttons")] pub fn get_buttons(this: &DragEventInit) -> Option; #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "buttons")] pub fn set_buttons(this: &DragEventInit, val: u16); #[doc = "Get the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "clientX")] pub fn get_client_x(this: &DragEventInit) -> Option; #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "clientX")] pub fn set_client_x(this: &DragEventInit, val: i32); #[doc = "Get the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "clientY")] pub fn get_client_y(this: &DragEventInit) -> Option; #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "clientY")] pub fn set_client_y(this: &DragEventInit, val: i32); #[doc = "Get the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "movementX")] pub fn get_movement_x(this: &DragEventInit) -> Option; #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "movementX")] pub fn set_movement_x(this: &DragEventInit, val: i32); #[doc = "Get the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "movementY")] pub fn get_movement_y(this: &DragEventInit) -> Option; #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "movementY")] pub fn set_movement_y(this: &DragEventInit, val: i32); #[cfg(feature = "EventTarget")] #[doc = "Get the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `EventTarget`*"] #[wasm_bindgen(method, getter = "relatedTarget")] pub fn get_related_target(this: &DragEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "relatedTarget")] pub fn set_related_target(this: &DragEventInit, val: Option<&EventTarget>); #[doc = "Get the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "screenX")] pub fn get_screen_x(this: &DragEventInit) -> Option; #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "screenX")] pub fn set_screen_x(this: &DragEventInit, val: i32); #[doc = "Get the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, getter = "screenY")] pub fn get_screen_y(this: &DragEventInit) -> Option; #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] #[wasm_bindgen(method, setter = "screenY")] pub fn set_screen_y(this: &DragEventInit, val: i32); #[cfg(feature = "DataTransfer")] #[doc = "Get the `dataTransfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEventInit`*"] #[wasm_bindgen(method, getter = "dataTransfer")] pub fn get_data_transfer(this: &DragEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "dataTransfer")] pub fn set_data_transfer(this: &DragEventInit, val: Option<&DataTransfer>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_button()` instead."] pub fn button(&mut self, val: i16) -> &mut Self { self.set_button(val); self } #[deprecated = "Use `set_buttons()` instead."] pub fn buttons(&mut self, val: u16) -> &mut Self { self.set_buttons(val); self } #[deprecated = "Use `set_client_x()` instead."] pub fn client_x(&mut self, val: i32) -> &mut Self { self.set_client_x(val); self } #[deprecated = "Use `set_client_y()` instead."] pub fn client_y(&mut self, val: i32) -> &mut Self { self.set_client_y(val); self } #[deprecated = "Use `set_movement_x()` instead."] pub fn movement_x(&mut self, val: i32) -> &mut Self { self.set_movement_x(val); self } #[deprecated = "Use `set_movement_y()` instead."] pub fn movement_y(&mut self, val: i32) -> &mut Self { self.set_movement_y(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_related_target()` instead."] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { self.set_related_target(val); self } #[deprecated = "Use `set_screen_x()` instead."] pub fn screen_x(&mut self, val: i32) -> &mut Self { self.set_screen_x(val); self } #[deprecated = "Use `set_screen_y()` instead."] pub fn screen_y(&mut self, val: i32) -> &mut Self { self.set_screen_y(val); self } #[cfg(feature = "DataTransfer")] #[deprecated = "Use `set_data_transfer()` instead."] pub fn data_transfer(&mut self, val: Option<&DataTransfer>) -> &mut Self { self.set_data_transfer(val); self } } impl Default for DragEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_DynamicsCompressorNode.rs000064400000000000000000000121531046102023000215460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_DynamicsCompressorOptions.rs000064400000000000000000000170401046102023000223140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &DynamicsCompressorOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &DynamicsCompressorOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &DynamicsCompressorOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation( this: &DynamicsCompressorOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &DynamicsCompressorOptions, val: ChannelInterpretation); #[doc = "Get the `attack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "attack")] pub fn get_attack(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `attack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "attack")] pub fn set_attack(this: &DynamicsCompressorOptions, val: f32); #[doc = "Get the `knee` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "knee")] pub fn get_knee(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `knee` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "knee")] pub fn set_knee(this: &DynamicsCompressorOptions, val: f32); #[doc = "Get the `ratio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "ratio")] pub fn get_ratio(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `ratio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "ratio")] pub fn set_ratio(this: &DynamicsCompressorOptions, val: f32); #[doc = "Get the `release` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "release")] pub fn get_release(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `release` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "release")] pub fn set_release(this: &DynamicsCompressorOptions, val: f32); #[doc = "Get the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, getter = "threshold")] pub fn get_threshold(this: &DynamicsCompressorOptions) -> Option; #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] #[wasm_bindgen(method, setter = "threshold")] pub fn set_threshold(this: &DynamicsCompressorOptions, val: f32); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_attack()` instead."] pub fn attack(&mut self, val: f32) -> &mut Self { self.set_attack(val); self } #[deprecated = "Use `set_knee()` instead."] pub fn knee(&mut self, val: f32) -> &mut Self { self.set_knee(val); self } #[deprecated = "Use `set_ratio()` instead."] pub fn ratio(&mut self, val: f32) -> &mut Self { self.set_ratio(val); self } #[deprecated = "Use `set_release()` instead."] pub fn release(&mut self, val: f32) -> &mut Self { self.set_release(val); self } #[deprecated = "Use `set_threshold()` instead."] pub fn threshold(&mut self, val: f32) -> &mut Self { self.set_threshold(val); self } } impl Default for DynamicsCompressorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EcKeyAlgorithm.rs000064400000000000000000000044541046102023000177700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &EcKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &EcKeyAlgorithm, val: &str); #[doc = "Get the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "namedCurve")] pub fn get_named_curve(this: &EcKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "namedCurve")] pub fn set_named_curve(this: &EcKeyAlgorithm, val: &str); } 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.set_name(name); ret.set_named_curve(named_curve); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_named_curve()` instead."] pub fn named_curve(&mut self, val: &str) -> &mut Self { self.set_named_curve(val); self } } web-sys-0.3.81/src/features/gen_EcKeyGenParams.rs000064400000000000000000000044541046102023000177170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &EcKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &EcKeyGenParams, val: &str); #[doc = "Get the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, getter = "namedCurve")] pub fn get_named_curve(this: &EcKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, setter = "namedCurve")] pub fn set_named_curve(this: &EcKeyGenParams, val: &str); } 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.set_name(name); ret.set_named_curve(named_curve); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_named_curve()` instead."] pub fn named_curve(&mut self, val: &str) -> &mut Self { self.set_named_curve(val); self } } web-sys-0.3.81/src/features/gen_EcKeyImportParams.rs000064400000000000000000000044441046102023000204570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &EcKeyImportParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &EcKeyImportParams, val: &str); #[doc = "Get the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, getter = "namedCurve")] pub fn get_named_curve(this: &EcKeyImportParams) -> Option<::alloc::string::String>; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, setter = "namedCurve")] pub fn set_named_curve(this: &EcKeyImportParams, val: &str); } 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.set_name(name); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_named_curve()` instead."] pub fn named_curve(&mut self, val: &str) -> &mut Self { self.set_named_curve(val); self } } web-sys-0.3.81/src/features/gen_EcdhKeyDeriveParams.rs000064400000000000000000000047621046102023000207420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &EcdhKeyDeriveParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &EcdhKeyDeriveParams, val: &str); #[cfg(feature = "CryptoKey")] #[doc = "Get the `public` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `EcdhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "public")] pub fn get_public(this: &EcdhKeyDeriveParams) -> CryptoKey; #[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`*"] #[wasm_bindgen(method, setter = "public")] pub fn set_public(this: &EcdhKeyDeriveParams, val: &CryptoKey); } 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.set_name(name); ret.set_public(public); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "CryptoKey")] #[deprecated = "Use `set_public()` instead."] pub fn public(&mut self, val: &CryptoKey) -> &mut Self { self.set_public(val); self } } web-sys-0.3.81/src/features/gen_EcdsaParams.rs000064400000000000000000000043531046102023000173020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &EcdsaParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &EcdsaParams, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &EcdsaParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &EcdsaParams, val: &::wasm_bindgen::JsValue); } 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.set_name(name); ret.set_hash(hash); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } } web-sys-0.3.81/src/features/gen_EffectTiming.rs000064400000000000000000000155331046102023000174650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &EffectTiming) -> Option; #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &EffectTiming, val: f64); #[cfg(feature = "PlaybackDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `PlaybackDirection`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &EffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &EffectTiming, val: PlaybackDirection); #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &EffectTiming) -> ::wasm_bindgen::JsValue; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &EffectTiming, val: &::wasm_bindgen::JsValue); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &EffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &EffectTiming, val: &str); #[doc = "Get the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "endDelay")] pub fn get_end_delay(this: &EffectTiming) -> Option; #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "endDelay")] pub fn set_end_delay(this: &EffectTiming, val: f64); #[cfg(feature = "FillMode")] #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `FillMode`*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &EffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &EffectTiming, val: FillMode); #[doc = "Get the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "iterationStart")] pub fn get_iteration_start(this: &EffectTiming) -> Option; #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "iterationStart")] pub fn set_iteration_start(this: &EffectTiming, val: f64); #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &EffectTiming) -> Option; #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &EffectTiming, val: f64); } 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 } #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(feature = "PlaybackDirection")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_end_delay()` instead."] pub fn end_delay(&mut self, val: f64) -> &mut Self { self.set_end_delay(val); self } #[cfg(feature = "FillMode")] #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: FillMode) -> &mut Self { self.set_fill(val); self } #[deprecated = "Use `set_iteration_start()` instead."] pub fn iteration_start(&mut self, val: f64) -> &mut Self { self.set_iteration_start(val); self } #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: f64) -> &mut Self { self.set_iterations(val); self } } impl Default for EffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Element.rs000064400000000000000000003372211046102023000165130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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<::alloc::string::String>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Animation")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `Element`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate(this: &Element, keyframes: Option<&::js_sys::Object>) -> Animation; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Animation")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `Element`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate_with_f64( this: &Element, keyframes: Option<&::js_sys::Object>, options: f64, ) -> Animation; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "Animation", feature = "KeyframeAnimationOptions",))] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = animate)] #[doc = "The `animate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/animate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`, `Element`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animate_with_keyframe_animation_options( this: &Element, keyframes: Option<&::js_sys::Object>, options: &KeyframeAnimationOptions, ) -> Animation; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAnimations)] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_animations(this: &Element) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GetAnimationsOptions")] # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAnimations)] #[doc = "The `getAnimations()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAnimations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_animations_with_options( this: &Element, options: &GetAnimationsOptions, ) -> ::js_sys::Array; # [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>; # [wasm_bindgen (method , structural , variadic , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node(this: &Element, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_0(this: &Element); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_1(this: &Element, nodes_1: &Node); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_2(this: &Element, nodes_1: &Node, nodes_2: &Node); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_3( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_4( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_5( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_node_6( this: &Element, nodes_1: &Node, nodes_2: &Node, nodes_3: &Node, nodes_4: &Node, nodes_5: &Node, nodes_6: &Node, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_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, ); # [wasm_bindgen (method , structural , variadic , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str(this: &Element, nodes: &::js_sys::Array); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_0(this: &Element); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_1(this: &Element, nodes_1: &str); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_3(this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_4( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_5( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_with_str_6( this: &Element, nodes_1: &str, nodes_2: &str, nodes_3: &str, nodes_4: &str, nodes_5: &str, nodes_6: &str, ); # [wasm_bindgen (method , structural , js_class = "Element" , js_name = replaceChildren)] #[doc = "The `replaceChildren()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] pub fn replace_children_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, ); } web-sys-0.3.81/src/features/gen_ElementCreationOptions.rs000064400000000000000000000045671046102023000215600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `is` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, getter = "is")] pub fn get_is(this: &ElementCreationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `is` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, setter = "is")] pub fn set_is(this: &ElementCreationOptions, val: &str); #[doc = "Get the `pseudo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, getter = "pseudo")] pub fn get_pseudo(this: &ElementCreationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `pseudo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, setter = "pseudo")] pub fn set_pseudo(this: &ElementCreationOptions, val: &str); } 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 } #[deprecated = "Use `set_is()` instead."] pub fn is(&mut self, val: &str) -> &mut Self { self.set_is(val); self } #[deprecated = "Use `set_pseudo()` instead."] pub fn pseudo(&mut self, val: &str) -> &mut Self { self.set_pseudo(val); self } } impl Default for ElementCreationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ElementDefinitionOptions.rs000064400000000000000000000033071046102023000220730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `extends` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] #[wasm_bindgen(method, getter = "extends")] pub fn get_extends(this: &ElementDefinitionOptions) -> Option<::alloc::string::String>; #[doc = "Change the `extends` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] #[wasm_bindgen(method, setter = "extends")] pub fn set_extends(this: &ElementDefinitionOptions, val: &str); } 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 } #[deprecated = "Use `set_extends()` instead."] pub fn extends(&mut self, val: &str) -> &mut Self { self.set_extends(val); self } } impl Default for ElementDefinitionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EncodedAudioChunk.rs000064400000000000000000000160711046102023000204330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunk , typescript_type = "EncodedAudioChunk")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunk` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedAudioChunk; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkType")] # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , 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/EncodedAudioChunk/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`, `EncodedAudioChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &EncodedAudioChunk) -> EncodedAudioChunkType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , 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/EncodedAudioChunk/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &EncodedAudioChunk) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , 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/EncodedAudioChunk/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &EncodedAudioChunk) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedAudioChunk" , js_name = byteLength)] #[doc = "Getter for the `byteLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/byteLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn byte_length(this: &EncodedAudioChunk) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkInit")] #[wasm_bindgen(catch, constructor, js_class = "EncodedAudioChunk")] #[doc = "The `new EncodedAudioChunk(..)` constructor, creating a new instance of `EncodedAudioChunk`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/EncodedAudioChunk)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`, `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &EncodedAudioChunkInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedAudioChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source( this: &EncodedAudioChunk, destination: &::js_sys::Object, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedAudioChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_slice( this: &EncodedAudioChunk, destination: &mut [u8], ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedAudioChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_array( this: &EncodedAudioChunk, destination: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_EncodedAudioChunkInit.rs000064400000000000000000000160111046102023000212510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunkInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunkInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedAudioChunkInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &EncodedAudioChunkInit) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &EncodedAudioChunkInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &EncodedAudioChunkInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &EncodedAudioChunkInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &EncodedAudioChunkInit) -> f64; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &EncodedAudioChunkInit, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`, `EncodedAudioChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &EncodedAudioChunkInit) -> EncodedAudioChunkType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`, `EncodedAudioChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &EncodedAudioChunkInit, val: EncodedAudioChunkType); } #[cfg(web_sys_unstable_apis)] impl EncodedAudioChunkInit { #[cfg(feature = "EncodedAudioChunkType")] #[doc = "Construct a new `EncodedAudioChunkInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`, `EncodedAudioChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(data: &::js_sys::Object, timestamp: f64, type_: EncodedAudioChunkType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_data(data); ret.set_timestamp(timestamp); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedAudioChunkType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: EncodedAudioChunkType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_EncodedAudioChunkMetadata.rs000064400000000000000000000061441046102023000220740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedAudioChunkMetadata)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedAudioChunkMetadata` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedAudioChunkMetadata; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] #[doc = "Get the `decoderConfig` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `EncodedAudioChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "decoderConfig")] pub fn get_decoder_config(this: &EncodedAudioChunkMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AudioDecoderConfig")] #[doc = "Change the `decoderConfig` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioDecoderConfig`, `EncodedAudioChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "decoderConfig")] pub fn set_decoder_config(this: &EncodedAudioChunkMetadata, val: &AudioDecoderConfig); } #[cfg(web_sys_unstable_apis)] impl EncodedAudioChunkMetadata { #[doc = "Construct a new `EncodedAudioChunkMetadata`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AudioDecoderConfig")] #[deprecated = "Use `set_decoder_config()` instead."] pub fn decoder_config(&mut self, val: &AudioDecoderConfig) -> &mut Self { self.set_decoder_config(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for EncodedAudioChunkMetadata { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EncodedAudioChunkType.rs000064400000000000000000000011711046102023000212700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `EncodedAudioChunkType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum EncodedAudioChunkType { Key = "key", Delta = "delta", } web-sys-0.3.81/src/features/gen_EncodedVideoChunk.rs000064400000000000000000000160711046102023000204400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunk , typescript_type = "EncodedVideoChunk")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunk` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedVideoChunk; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkType")] # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , 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/EncodedVideoChunk/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`, `EncodedVideoChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &EncodedVideoChunk) -> EncodedVideoChunkType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , 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/EncodedVideoChunk/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &EncodedVideoChunk) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , 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/EncodedVideoChunk/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &EncodedVideoChunk) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "EncodedVideoChunk" , js_name = byteLength)] #[doc = "Getter for the `byteLength` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/byteLength)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn byte_length(this: &EncodedVideoChunk) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkInit")] #[wasm_bindgen(catch, constructor, js_class = "EncodedVideoChunk")] #[doc = "The `new EncodedVideoChunk(..)` constructor, creating a new instance of `EncodedVideoChunk`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/EncodedVideoChunk)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`, `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &EncodedVideoChunkInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedVideoChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source( this: &EncodedVideoChunk, destination: &::js_sys::Object, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedVideoChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_slice( this: &EncodedVideoChunk, destination: &mut [u8], ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "EncodedVideoChunk" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_array( this: &EncodedVideoChunk, destination: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_EncodedVideoChunkInit.rs000064400000000000000000000160111046102023000212560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunkInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunkInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedVideoChunkInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &EncodedVideoChunkInit) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &EncodedVideoChunkInit, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &EncodedVideoChunkInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &EncodedVideoChunkInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &EncodedVideoChunkInit) -> f64; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &EncodedVideoChunkInit, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`, `EncodedVideoChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &EncodedVideoChunkInit) -> EncodedVideoChunkType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`, `EncodedVideoChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &EncodedVideoChunkInit, val: EncodedVideoChunkType); } #[cfg(web_sys_unstable_apis)] impl EncodedVideoChunkInit { #[cfg(feature = "EncodedVideoChunkType")] #[doc = "Construct a new `EncodedVideoChunkInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`, `EncodedVideoChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(data: &::js_sys::Object, timestamp: f64, type_: EncodedVideoChunkType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_data(data); ret.set_timestamp(timestamp); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunkType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: EncodedVideoChunkType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_EncodedVideoChunkMetadata.rs000064400000000000000000000140011046102023000220700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = EncodedVideoChunkMetadata)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `EncodedVideoChunkMetadata` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type EncodedVideoChunkMetadata; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `alphaSideData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alphaSideData")] pub fn get_alpha_side_data(this: &EncodedVideoChunkMetadata) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `alphaSideData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alphaSideData")] pub fn set_alpha_side_data(this: &EncodedVideoChunkMetadata, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] #[doc = "Get the `decoderConfig` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "decoderConfig")] pub fn get_decoder_config(this: &EncodedVideoChunkMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] #[doc = "Change the `decoderConfig` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "decoderConfig")] pub fn set_decoder_config(this: &EncodedVideoChunkMetadata, val: &VideoDecoderConfig); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SvcOutputMetadata")] #[doc = "Get the `svc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`, `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "svc")] pub fn get_svc(this: &EncodedVideoChunkMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SvcOutputMetadata")] #[doc = "Change the `svc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`, `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "svc")] pub fn set_svc(this: &EncodedVideoChunkMetadata, val: &SvcOutputMetadata); } #[cfg(web_sys_unstable_apis)] impl EncodedVideoChunkMetadata { #[doc = "Construct a new `EncodedVideoChunkMetadata`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_alpha_side_data()` instead."] pub fn alpha_side_data(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_alpha_side_data(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] #[deprecated = "Use `set_decoder_config()` instead."] pub fn decoder_config(&mut self, val: &VideoDecoderConfig) -> &mut Self { self.set_decoder_config(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SvcOutputMetadata")] #[deprecated = "Use `set_svc()` instead."] pub fn svc(&mut self, val: &SvcOutputMetadata) -> &mut Self { self.set_svc(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for EncodedVideoChunkMetadata { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EncodedVideoChunkType.rs000064400000000000000000000011711046102023000212750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `EncodedVideoChunkType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum EncodedVideoChunkType { Key = "key", Delta = "delta", } web-sys-0.3.81/src/features/gen_EndingTypes.rs000064400000000000000000000005471046102023000173510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ErrorCallback.rs000064400000000000000000000032051046102023000176200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &ErrorCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &ErrorCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for ErrorCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ErrorEvent.rs000064400000000000000000000074031046102023000172110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_ErrorEventInit.rs000064400000000000000000000150341046102023000200340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ErrorEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ErrorEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ErrorEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ErrorEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ErrorEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ErrorEventInit, val: bool); #[doc = "Get the `colno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "colno")] pub fn get_colno(this: &ErrorEventInit) -> Option; #[doc = "Change the `colno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "colno")] pub fn set_colno(this: &ErrorEventInit, val: u32); #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &ErrorEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &ErrorEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "filename")] pub fn get_filename(this: &ErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "filename")] pub fn set_filename(this: &ErrorEventInit, val: &str); #[doc = "Get the `lineno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "lineno")] pub fn get_lineno(this: &ErrorEventInit) -> Option; #[doc = "Change the `lineno` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "lineno")] pub fn set_lineno(this: &ErrorEventInit, val: u32); #[doc = "Get the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "message")] pub fn get_message(this: &ErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, setter = "message")] pub fn set_message(this: &ErrorEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_colno()` instead."] pub fn colno(&mut self, val: u32) -> &mut Self { self.set_colno(val); self } #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_error(val); self } #[deprecated = "Use `set_filename()` instead."] pub fn filename(&mut self, val: &str) -> &mut Self { self.set_filename(val); self } #[deprecated = "Use `set_lineno()` instead."] pub fn lineno(&mut self, val: u32) -> &mut Self { self.set_lineno(val); self } #[deprecated = "Use `set_message()` instead."] pub fn message(&mut self, val: &str) -> &mut Self { self.set_message(val); self } } impl Default for ErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Event.rs000064400000000000000000000245341046102023000162030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_EventInit.rs000064400000000000000000000056221046102023000170240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &EventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &EventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &EventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &EventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &EventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &EventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } } impl Default for EventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EventListener.rs000064400000000000000000000032051046102023000177010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &EventListener) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &EventListener, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for EventListener { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EventListenerOptions.rs000064400000000000000000000032041046102023000212540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] #[wasm_bindgen(method, getter = "capture")] pub fn get_capture(this: &EventListenerOptions) -> Option; #[doc = "Change the `capture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] #[wasm_bindgen(method, setter = "capture")] pub fn set_capture(this: &EventListenerOptions, val: bool); } 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 } #[deprecated = "Use `set_capture()` instead."] pub fn capture(&mut self, val: bool) -> &mut Self { self.set_capture(val); self } } impl Default for EventListenerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EventModifierInit.rs000064400000000000000000000347601046102023000205100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &EventModifierInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &EventModifierInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &EventModifierInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &EventModifierInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &EventModifierInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &EventModifierInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &EventModifierInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &EventModifierInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &EventModifierInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &EventModifierInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &EventModifierInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &EventModifierInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &EventModifierInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &EventModifierInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &EventModifierInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &EventModifierInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &EventModifierInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &EventModifierInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &EventModifierInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &EventModifierInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } } impl Default for EventModifierInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EventSource.rs000064400000000000000000000153141046102023000173600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_EventSourceInit.rs000064400000000000000000000032251046102023000202020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `withCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] #[wasm_bindgen(method, getter = "withCredentials")] pub fn get_with_credentials(this: &EventSourceInit) -> Option; #[doc = "Change the `withCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] #[wasm_bindgen(method, setter = "withCredentials")] pub fn set_with_credentials(this: &EventSourceInit, val: bool); } 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 } #[deprecated = "Use `set_with_credentials()` instead."] pub fn with_credentials(&mut self, val: bool) -> &mut Self { self.set_with_credentials(val); self } } impl Default for EventSourceInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_EventTarget.rs000064400000000000000000000277621046102023000173600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_Exception.rs000064400000000000000000000100561046102023000170520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_ExtBlendMinmax.rs000064400000000000000000000020551046102023000177730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtColorBufferFloat.rs000064400000000000000000000012141046102023000207670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtColorBufferHalfFloat.rs000064400000000000000000000033361046102023000215710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtDisjointTimerQuery.rs000064400000000000000000000153221046102023000214100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtFragDepth.rs000064400000000000000000000011371046102023000174410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtSRgb.rs000064400000000000000000000027151046102023000164350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtShaderTextureLod.rs000064400000000000000000000012141046102023000210170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtTextureFilterAnisotropic.rs000064400000000000000000000024251046102023000226170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ExtTextureNorm16.rs000064400000000000000000000046411046102023000202430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_texture_norm16 , typescript_type = "EXT_texture_norm16")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ExtTextureNorm16` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_norm16)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub type ExtTextureNorm16; } impl ExtTextureNorm16 { #[doc = "The `EXT_texture_norm16.R16_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const R16_EXT: u32 = 33322u64 as u32; #[doc = "The `EXT_texture_norm16.RG16_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RG16_EXT: u32 = 33324u64 as u32; #[doc = "The `EXT_texture_norm16.RGB16_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RGB16_EXT: u32 = 32852u64 as u32; #[doc = "The `EXT_texture_norm16.RGBA16_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RGBA16_EXT: u32 = 32859u64 as u32; #[doc = "The `EXT_texture_norm16.R16_SNORM_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const R16_SNORM_EXT: u32 = 36760u64 as u32; #[doc = "The `EXT_texture_norm16.RG16_SNORM_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RG16_SNORM_EXT: u32 = 36761u64 as u32; #[doc = "The `EXT_texture_norm16.RGB16_SNORM_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RGB16_SNORM_EXT: u32 = 36762u64 as u32; #[doc = "The `EXT_texture_norm16.RGBA16_SNORM_EXT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtTextureNorm16`*"] pub const RGBA16_SNORM_EXT: u32 = 36763u64 as u32; } web-sys-0.3.81/src/features/gen_ExtendableEvent.rs000064400000000000000000000042461046102023000201750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_ExtendableEventInit.rs000064400000000000000000000061321046102023000210150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ExtendableEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ExtendableEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ExtendableEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ExtendableEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ExtendableEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ExtendableEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } } impl Default for ExtendableEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ExtendableMessageEvent.rs000064400000000000000000000105121046102023000214730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_ExtendableMessageEventInit.rs000064400000000000000000000161761046102023000223330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ExtendableMessageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ExtendableMessageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ExtendableMessageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ExtendableMessageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ExtendableMessageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ExtendableMessageEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &ExtendableMessageEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &ExtendableMessageEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "lastEventId")] pub fn get_last_event_id(this: &ExtendableMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "lastEventId")] pub fn set_last_event_id(this: &ExtendableMessageEventInit, val: &str); #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &ExtendableMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &ExtendableMessageEventInit, val: &str); #[doc = "Get the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "ports")] pub fn get_ports(this: &ExtendableMessageEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "ports")] pub fn set_ports(this: &ExtendableMessageEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &ExtendableMessageEventInit) -> Option<::js_sys::Object>; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &ExtendableMessageEventInit, val: Option<&::js_sys::Object>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } #[deprecated = "Use `set_last_event_id()` instead."] pub fn last_event_id(&mut self, val: &str) -> &mut Self { self.set_last_event_id(val); self } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &str) -> &mut Self { self.set_origin(val); self } #[deprecated = "Use `set_ports()` instead."] pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ports(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_source(val); self } } impl Default for ExtendableMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_External.rs000064400000000000000000000027641046102023000167050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FakePluginMimeEntry.rs000064400000000000000000000061151046102023000207740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &FakePluginMimeEntry) -> Option<::alloc::string::String>; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &FakePluginMimeEntry, val: &str); #[doc = "Get the `extension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "extension")] pub fn get_extension(this: &FakePluginMimeEntry) -> Option<::alloc::string::String>; #[doc = "Change the `extension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, setter = "extension")] pub fn set_extension(this: &FakePluginMimeEntry, val: &str); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &FakePluginMimeEntry) -> ::alloc::string::String; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &FakePluginMimeEntry, val: &str); } 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.set_type(type_); ret } #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &str) -> &mut Self { self.set_description(val); self } #[deprecated = "Use `set_extension()` instead."] pub fn extension(&mut self, val: &str) -> &mut Self { self.set_extension(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_FakePluginTagInit.rs000064400000000000000000000172751046102023000204330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &FakePluginTagInit, val: &str); #[doc = "Get the `fileName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "fileName")] pub fn get_file_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `fileName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "fileName")] pub fn set_file_name(this: &FakePluginTagInit, val: &str); #[doc = "Get the `fullPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "fullPath")] pub fn get_full_path(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `fullPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "fullPath")] pub fn set_full_path(this: &FakePluginTagInit, val: &str); #[doc = "Get the `handlerURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "handlerURI")] pub fn get_handler_uri(this: &FakePluginTagInit) -> ::alloc::string::String; #[doc = "Change the `handlerURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "handlerURI")] pub fn set_handler_uri(this: &FakePluginTagInit, val: &str); #[doc = "Get the `mimeEntries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "mimeEntries")] pub fn get_mime_entries(this: &FakePluginTagInit) -> ::js_sys::Array; #[doc = "Change the `mimeEntries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "mimeEntries")] pub fn set_mime_entries(this: &FakePluginTagInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &FakePluginTagInit, val: &str); #[doc = "Get the `niceName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "niceName")] pub fn get_nice_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `niceName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "niceName")] pub fn set_nice_name(this: &FakePluginTagInit, val: &str); #[doc = "Get the `sandboxScript` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "sandboxScript")] pub fn get_sandbox_script(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `sandboxScript` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "sandboxScript")] pub fn set_sandbox_script(this: &FakePluginTagInit, val: &str); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &FakePluginTagInit, val: &str); } 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.set_handler_uri(handler_uri); ret.set_mime_entries(mime_entries); ret } #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &str) -> &mut Self { self.set_description(val); self } #[deprecated = "Use `set_file_name()` instead."] pub fn file_name(&mut self, val: &str) -> &mut Self { self.set_file_name(val); self } #[deprecated = "Use `set_full_path()` instead."] pub fn full_path(&mut self, val: &str) -> &mut Self { self.set_full_path(val); self } #[deprecated = "Use `set_handler_uri()` instead."] pub fn handler_uri(&mut self, val: &str) -> &mut Self { self.set_handler_uri(val); self } #[deprecated = "Use `set_mime_entries()` instead."] pub fn mime_entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_mime_entries(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_nice_name()` instead."] pub fn nice_name(&mut self, val: &str) -> &mut Self { self.set_nice_name(val); self } #[deprecated = "Use `set_sandbox_script()` instead."] pub fn sandbox_script(&mut self, val: &str) -> &mut Self { self.set_sandbox_script(val); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } } web-sys-0.3.81/src/features/gen_FetchEvent.rs000064400000000000000000000057051046102023000171540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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>; } web-sys-0.3.81/src/features/gen_FetchEventInit.rs000064400000000000000000000124241046102023000177740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &FetchEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &FetchEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &FetchEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &FetchEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &FetchEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &FetchEventInit, val: bool); #[doc = "Get the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "clientId")] pub fn get_client_id(this: &FetchEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, setter = "clientId")] pub fn set_client_id(this: &FetchEventInit, val: Option<&str>); #[doc = "Get the `isReload` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "isReload")] pub fn get_is_reload(this: &FetchEventInit) -> Option; #[doc = "Change the `isReload` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, setter = "isReload")] pub fn set_is_reload(this: &FetchEventInit, val: bool); #[cfg(feature = "Request")] #[doc = "Get the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`, `Request`*"] #[wasm_bindgen(method, getter = "request")] pub fn get_request(this: &FetchEventInit) -> Request; #[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`*"] #[wasm_bindgen(method, setter = "request")] pub fn set_request(this: &FetchEventInit, val: &Request); } 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.set_request(request); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_client_id()` instead."] pub fn client_id(&mut self, val: Option<&str>) -> &mut Self { self.set_client_id(val); self } #[deprecated = "Use `set_is_reload()` instead."] pub fn is_reload(&mut self, val: bool) -> &mut Self { self.set_is_reload(val); self } #[cfg(feature = "Request")] #[deprecated = "Use `set_request()` instead."] pub fn request(&mut self, val: &Request) -> &mut Self { self.set_request(val); self } } web-sys-0.3.81/src/features/gen_FetchObserver.rs000064400000000000000000000101141046102023000176500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_FetchReadableStreamReadDataArray.rs000064400000000000000000000034651046102023000233340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &FetchReadableStreamReadDataArray) -> Option<::alloc::vec::Vec>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &FetchReadableStreamReadDataArray, val: &::js_sys::Uint8Array); } 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 } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::js_sys::Uint8Array) -> &mut Self { self.set_value(val); self } } impl Default for FetchReadableStreamReadDataArray { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FetchReadableStreamReadDataDone.rs000064400000000000000000000033551046102023000231410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] #[wasm_bindgen(method, getter = "done")] pub fn get_done(this: &FetchReadableStreamReadDataDone) -> Option; #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] #[wasm_bindgen(method, setter = "done")] pub fn set_done(this: &FetchReadableStreamReadDataDone, val: bool); } 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 } #[deprecated = "Use `set_done()` instead."] pub fn done(&mut self, val: bool) -> &mut Self { self.set_done(val); self } } impl Default for FetchReadableStreamReadDataDone { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FetchState.rs000064400000000000000000000006671046102023000171550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_File.rs000064400000000000000000000153501046102023000157750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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_slice_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_slice_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; } web-sys-0.3.81/src/features/gen_FileCallback.rs000064400000000000000000000031711046102023000174100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &FileCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &FileCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for FileCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileList.rs000064400000000000000000000034201046102023000166240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`, `FileList`*"] pub fn get(this: &FileList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_FilePickerAcceptType.rs000064400000000000000000000102311046102023000211060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FilePickerAcceptType)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FilePickerAcceptType` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type FilePickerAcceptType; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `accept` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "accept")] pub fn get_accept(this: &FilePickerAcceptType) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `accept` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "accept")] pub fn set_accept(this: &FilePickerAcceptType, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &FilePickerAcceptType) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &FilePickerAcceptType, val: &str); } #[cfg(web_sys_unstable_apis)] impl FilePickerAcceptType { #[doc = "Construct a new `FilePickerAcceptType`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerAcceptType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_accept()` instead."] pub fn accept(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_accept(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &str) -> &mut Self { self.set_description(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for FilePickerAcceptType { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FilePickerOptions.rs000064400000000000000000000154641046102023000205150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FilePickerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FilePickerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type FilePickerOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "excludeAcceptAllOption")] pub fn get_exclude_accept_all_option(this: &FilePickerOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "excludeAcceptAllOption")] pub fn set_exclude_accept_all_option(this: &FilePickerOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &FilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &FilePickerOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "startIn")] pub fn get_start_in(this: &FilePickerOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "startIn")] pub fn set_start_in(this: &FilePickerOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "types")] pub fn get_types(this: &FilePickerOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "types")] pub fn set_types(this: &FilePickerOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl FilePickerOptions { #[doc = "Construct a new `FilePickerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_exclude_accept_all_option()` instead."] pub fn exclude_accept_all_option(&mut self, val: bool) -> &mut Self { self.set_exclude_accept_all_option(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_start_in()` instead."] pub fn start_in(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_start_in(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_types()` instead."] pub fn types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_types(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for FilePickerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FilePropertyBag.rs000064400000000000000000000044771046102023000201640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] #[wasm_bindgen(method, getter = "lastModified")] pub fn get_last_modified(this: &FilePropertyBag) -> Option; #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] #[wasm_bindgen(method, setter = "lastModified")] pub fn set_last_modified(this: &FilePropertyBag, val: f64); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &FilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &FilePropertyBag, val: &str); } 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 } #[deprecated = "Use `set_last_modified()` instead."] pub fn last_modified(&mut self, val: f64) -> &mut Self { self.set_last_modified(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } impl Default for FilePropertyBag { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileReader.rs000064400000000000000000000266311046102023000171240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FileReaderSync.rs000064400000000000000000000075261046102023000177630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; #[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<::alloc::string::String, JsValue>; #[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<::alloc::string::String, JsValue>; #[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<::alloc::string::String, JsValue>; } web-sys-0.3.81/src/features/gen_FileSystem.rs000064400000000000000000000027701046102023000172040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_FileSystemCreateWritableOptions.rs000064400000000000000000000035431046102023000233750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemCreateWritableOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemCreateWritableOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"] pub type FileSystemCreateWritableOptions; #[doc = "Get the `keepExistingData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"] #[wasm_bindgen(method, getter = "keepExistingData")] pub fn get_keep_existing_data(this: &FileSystemCreateWritableOptions) -> Option; #[doc = "Change the `keepExistingData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"] #[wasm_bindgen(method, setter = "keepExistingData")] pub fn set_keep_existing_data(this: &FileSystemCreateWritableOptions, val: bool); } impl FileSystemCreateWritableOptions { #[doc = "Construct a new `FileSystemCreateWritableOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_keep_existing_data()` instead."] pub fn keep_existing_data(&mut self, val: bool) -> &mut Self { self.set_keep_existing_data(val); self } } impl Default for FileSystemCreateWritableOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemDirectoryEntry.rs000064400000000000000000000331001046102023000221020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_FileSystemDirectoryHandle.rs000064400000000000000000000141631046102023000222040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = FileSystemHandle , extends = :: js_sys :: Object , js_name = FileSystemDirectoryHandle , typescript_type = "FileSystemDirectoryHandle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemDirectoryHandle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub type FileSystemDirectoryHandle; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn entries(this: &FileSystemDirectoryHandle) -> ::js_sys::AsyncIterator; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getDirectoryHandle)] #[doc = "The `getDirectoryHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn get_directory_handle(this: &FileSystemDirectoryHandle, name: &str) -> ::js_sys::Promise; #[cfg(feature = "FileSystemGetDirectoryOptions")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getDirectoryHandle)] #[doc = "The `getDirectoryHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemGetDirectoryOptions`*"] pub fn get_directory_handle_with_options( this: &FileSystemDirectoryHandle, name: &str, options: &FileSystemGetDirectoryOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getFileHandle)] #[doc = "The `getFileHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn get_file_handle(this: &FileSystemDirectoryHandle, name: &str) -> ::js_sys::Promise; #[cfg(feature = "FileSystemGetFileOptions")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = getFileHandle)] #[doc = "The `getFileHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemGetFileOptions`*"] pub fn get_file_handle_with_options( this: &FileSystemDirectoryHandle, name: &str, options: &FileSystemGetFileOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn keys(this: &FileSystemDirectoryHandle) -> ::js_sys::AsyncIterator; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = removeEntry)] #[doc = "The `removeEntry()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/removeEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn remove_entry(this: &FileSystemDirectoryHandle, name: &str) -> ::js_sys::Promise; #[cfg(feature = "FileSystemRemoveOptions")] # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = removeEntry)] #[doc = "The `removeEntry()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/removeEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`, `FileSystemRemoveOptions`*"] pub fn remove_entry_with_options( this: &FileSystemDirectoryHandle, name: &str, options: &FileSystemRemoveOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = resolve)] #[doc = "The `resolve()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/resolve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn resolve( this: &FileSystemDirectoryHandle, possible_descendant: &FileSystemHandle, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemDirectoryHandle" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryHandle`*"] pub fn values(this: &FileSystemDirectoryHandle) -> ::js_sys::AsyncIterator; } web-sys-0.3.81/src/features/gen_FileSystemDirectoryReader.rs000064400000000000000000000112731046102023000222120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_FileSystemEntriesCallback.rs000064400000000000000000000034251046102023000221510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &FileSystemEntriesCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &FileSystemEntriesCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for FileSystemEntriesCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemEntry.rs000064400000000000000000000155751046102023000202350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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, ); } web-sys-0.3.81/src/features/gen_FileSystemEntryCallback.rs000064400000000000000000000033751046102023000216450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &FileSystemEntryCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &FileSystemEntryCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for FileSystemEntryCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemFileEntry.rs000064400000000000000000000077531046102023000210340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_FileSystemFileHandle.rs000064400000000000000000000053271046102023000211210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = FileSystemHandle , extends = :: js_sys :: Object , js_name = FileSystemFileHandle , typescript_type = "FileSystemFileHandle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemFileHandle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"] pub type FileSystemFileHandle; # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createSyncAccessHandle)] #[doc = "The `createSyncAccessHandle()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"] pub fn create_sync_access_handle(this: &FileSystemFileHandle) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createWritable)] #[doc = "The `createWritable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"] pub fn create_writable(this: &FileSystemFileHandle) -> ::js_sys::Promise; #[cfg(feature = "FileSystemCreateWritableOptions")] # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = createWritable)] #[doc = "The `createWritable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/createWritable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`, `FileSystemFileHandle`*"] pub fn create_writable_with_options( this: &FileSystemFileHandle, options: &FileSystemCreateWritableOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "FileSystemFileHandle" , js_name = getFile)] #[doc = "The `getFile()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileHandle/getFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFileHandle`*"] pub fn get_file(this: &FileSystemFileHandle) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_FileSystemFlags.rs000064400000000000000000000044401046102023000201550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] #[wasm_bindgen(method, getter = "create")] pub fn get_create(this: &FileSystemFlags) -> Option; #[doc = "Change the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] #[wasm_bindgen(method, setter = "create")] pub fn set_create(this: &FileSystemFlags, val: bool); #[doc = "Get the `exclusive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] #[wasm_bindgen(method, getter = "exclusive")] pub fn get_exclusive(this: &FileSystemFlags) -> Option; #[doc = "Change the `exclusive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] #[wasm_bindgen(method, setter = "exclusive")] pub fn set_exclusive(this: &FileSystemFlags, val: bool); } 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 } #[deprecated = "Use `set_create()` instead."] pub fn create(&mut self, val: bool) -> &mut Self { self.set_create(val); self } #[deprecated = "Use `set_exclusive()` instead."] pub fn exclusive(&mut self, val: bool) -> &mut Self { self.set_exclusive(val); self } } impl Default for FileSystemFlags { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemGetDirectoryOptions.rs000064400000000000000000000033471046102023000231060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemGetDirectoryOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemGetDirectoryOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetDirectoryOptions`*"] pub type FileSystemGetDirectoryOptions; #[doc = "Get the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetDirectoryOptions`*"] #[wasm_bindgen(method, getter = "create")] pub fn get_create(this: &FileSystemGetDirectoryOptions) -> Option; #[doc = "Change the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetDirectoryOptions`*"] #[wasm_bindgen(method, setter = "create")] pub fn set_create(this: &FileSystemGetDirectoryOptions, val: bool); } impl FileSystemGetDirectoryOptions { #[doc = "Construct a new `FileSystemGetDirectoryOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetDirectoryOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_create()` instead."] pub fn create(&mut self, val: bool) -> &mut Self { self.set_create(val); self } } impl Default for FileSystemGetDirectoryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemGetFileOptions.rs000064400000000000000000000032531046102023000220150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemGetFileOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemGetFileOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetFileOptions`*"] pub type FileSystemGetFileOptions; #[doc = "Get the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetFileOptions`*"] #[wasm_bindgen(method, getter = "create")] pub fn get_create(this: &FileSystemGetFileOptions) -> Option; #[doc = "Change the `create` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetFileOptions`*"] #[wasm_bindgen(method, setter = "create")] pub fn set_create(this: &FileSystemGetFileOptions, val: bool); } impl FileSystemGetFileOptions { #[doc = "Construct a new `FileSystemGetFileOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemGetFileOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_create()` instead."] pub fn create(&mut self, val: bool) -> &mut Self { self.set_create(val); self } } impl Default for FileSystemGetFileOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemHandle.rs000064400000000000000000000125701046102023000203170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemHandle , typescript_type = "FileSystemHandle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemHandle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] pub type FileSystemHandle; #[cfg(feature = "FileSystemHandleKind")] # [wasm_bindgen (structural , method , getter , js_class = "FileSystemHandle" , 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/FileSystemHandle/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandleKind`*"] pub fn kind(this: &FileSystemHandle) -> FileSystemHandleKind; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemHandle" , 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/FileSystemHandle/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] pub fn name(this: &FileSystemHandle) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = isSameEntry)] #[doc = "The `isSameEntry()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/isSameEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] pub fn is_same_entry(this: &FileSystemHandle, other: &FileSystemHandle) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = queryPermission)] #[doc = "The `queryPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/queryPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn query_permission(this: &FileSystemHandle) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemHandlePermissionDescriptor")] # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = queryPermission)] #[doc = "The `queryPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/queryPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandlePermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn query_permission_with_descriptor( this: &FileSystemHandle, descriptor: &FileSystemHandlePermissionDescriptor, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/requestPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_permission(this: &FileSystemHandle) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemHandlePermissionDescriptor")] # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/requestPermission)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemHandlePermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_permission_with_descriptor( this: &FileSystemHandle, descriptor: &FileSystemHandlePermissionDescriptor, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_FileSystemHandleKind.rs000064400000000000000000000005721046102023000211240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `FileSystemHandleKind` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandleKind`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FileSystemHandleKind { File = "file", Directory = "directory", } web-sys-0.3.81/src/features/gen_FileSystemHandlePermissionDescriptor.rs000064400000000000000000000063171046102023000244310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemHandlePermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemHandlePermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandlePermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type FileSystemHandlePermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandlePermissionDescriptor`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode( this: &FileSystemHandlePermissionDescriptor, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandlePermissionDescriptor`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &FileSystemHandlePermissionDescriptor, val: FileSystemPermissionMode); } #[cfg(web_sys_unstable_apis)] impl FileSystemHandlePermissionDescriptor { #[doc = "Construct a new `FileSystemHandlePermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandlePermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "FileSystemPermissionMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: FileSystemPermissionMode) -> &mut Self { self.set_mode(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for FileSystemHandlePermissionDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemPermissionDescriptor.rs000064400000000000000000000143131046102023000233100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type FileSystemPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &FileSystemPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &FileSystemPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemHandle")] #[doc = "Get the `handle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "handle")] pub fn get_handle(this: &FileSystemPermissionDescriptor) -> FileSystemHandle; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemHandle")] #[doc = "Change the `handle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "handle")] pub fn set_handle(this: &FileSystemPermissionDescriptor, val: &FileSystemHandle); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionDescriptor`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &FileSystemPermissionDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionDescriptor`, `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &FileSystemPermissionDescriptor, val: FileSystemPermissionMode); } #[cfg(web_sys_unstable_apis)] impl FileSystemPermissionDescriptor { #[cfg(all(feature = "FileSystemHandle", feature = "PermissionName",))] #[doc = "Construct a new `FileSystemPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`, `FileSystemPermissionDescriptor`, `PermissionName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName, handle: &FileSystemHandle) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret.set_handle(handle); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemHandle")] #[deprecated = "Use `set_handle()` instead."] pub fn handle(&mut self, val: &FileSystemHandle) -> &mut Self { self.set_handle(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FileSystemPermissionMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: FileSystemPermissionMode) -> &mut Self { self.set_mode(val); self } } web-sys-0.3.81/src/features/gen_FileSystemPermissionMode.rs000064400000000000000000000012141046102023000220520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `FileSystemPermissionMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemPermissionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FileSystemPermissionMode { Read = "read", Readwrite = "readwrite", } web-sys-0.3.81/src/features/gen_FileSystemReadWriteOptions.rs000064400000000000000000000032341046102023000223630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemReadWriteOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemReadWriteOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`*"] pub type FileSystemReadWriteOptions; #[doc = "Get the `at` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`*"] #[wasm_bindgen(method, getter = "at")] pub fn get_at(this: &FileSystemReadWriteOptions) -> Option; #[doc = "Change the `at` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`*"] #[wasm_bindgen(method, setter = "at")] pub fn set_at(this: &FileSystemReadWriteOptions, val: f64); } impl FileSystemReadWriteOptions { #[doc = "Construct a new `FileSystemReadWriteOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_at()` instead."] pub fn at(&mut self, val: f64) -> &mut Self { self.set_at(val); self } } impl Default for FileSystemReadWriteOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemRemoveOptions.rs000064400000000000000000000032721046102023000217340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemRemoveOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemRemoveOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemRemoveOptions`*"] pub type FileSystemRemoveOptions; #[doc = "Get the `recursive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemRemoveOptions`*"] #[wasm_bindgen(method, getter = "recursive")] pub fn get_recursive(this: &FileSystemRemoveOptions) -> Option; #[doc = "Change the `recursive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemRemoveOptions`*"] #[wasm_bindgen(method, setter = "recursive")] pub fn set_recursive(this: &FileSystemRemoveOptions, val: bool); } impl FileSystemRemoveOptions { #[doc = "Construct a new `FileSystemRemoveOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemRemoveOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_recursive()` instead."] pub fn recursive(&mut self, val: bool) -> &mut Self { self.set_recursive(val); self } } impl Default for FileSystemRemoveOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FileSystemSyncAccessHandle.rs000064400000000000000000000245251046102023000223010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FileSystemSyncAccessHandle , typescript_type = "FileSystemSyncAccessHandle")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemSyncAccessHandle` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub type FileSystemSyncAccessHandle; # [wasm_bindgen (method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn close(this: &FileSystemSyncAccessHandle); # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn flush(this: &FileSystemSyncAccessHandle) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = getSize)] #[doc = "The `getSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/getSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn get_size(this: &FileSystemSyncAccessHandle) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn read_with_buffer_source( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Object, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn read_with_u8_array( this: &FileSystemSyncAccessHandle, buffer: &mut [u8], ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn read_with_js_u8_array( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Uint8Array, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn read_with_buffer_source_and_options( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Object, options: &FileSystemReadWriteOptions, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn read_with_u8_array_and_options( this: &FileSystemSyncAccessHandle, buffer: &mut [u8], options: &FileSystemReadWriteOptions, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn read_with_js_u8_array_and_options( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Uint8Array, options: &FileSystemReadWriteOptions, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn truncate_with_u32( this: &FileSystemSyncAccessHandle, new_size: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn truncate_with_f64( this: &FileSystemSyncAccessHandle, new_size: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn write_with_buffer_source( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Object, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn write_with_u8_array( this: &FileSystemSyncAccessHandle, buffer: &[u8], ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemSyncAccessHandle`*"] pub fn write_with_js_u8_array( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Uint8Array, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn write_with_buffer_source_and_options( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Object, options: &FileSystemReadWriteOptions, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn write_with_u8_array_and_options( this: &FileSystemSyncAccessHandle, buffer: &[u8], options: &FileSystemReadWriteOptions, ) -> Result; #[cfg(feature = "FileSystemReadWriteOptions")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemSyncAccessHandle" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemReadWriteOptions`, `FileSystemSyncAccessHandle`*"] pub fn write_with_js_u8_array_and_options( this: &FileSystemSyncAccessHandle, buffer: &::js_sys::Uint8Array, options: &FileSystemReadWriteOptions, ) -> Result; } web-sys-0.3.81/src/features/gen_FileSystemWritableFileStream.rs000064400000000000000000000143641046102023000226540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WritableStream , extends = :: js_sys :: Object , js_name = FileSystemWritableFileStream , typescript_type = "FileSystemWritableFileStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FileSystemWritableFileStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub type FileSystemWritableFileStream; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)] #[doc = "The `seek()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn seek_with_u32( this: &FileSystemWritableFileStream, position: u32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = seek)] #[doc = "The `seek()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/seek)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn seek_with_f64( this: &FileSystemWritableFileStream, position: f64, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn truncate_with_u32( this: &FileSystemWritableFileStream, size: u32, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = truncate)] #[doc = "The `truncate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/truncate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn truncate_with_f64( this: &FileSystemWritableFileStream, size: f64, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn write_with_buffer_source( this: &FileSystemWritableFileStream, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn write_with_u8_array( this: &FileSystemWritableFileStream, data: &[u8], ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn write_with_js_u8_array( this: &FileSystemWritableFileStream, data: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileSystemWritableFileStream`*"] pub fn write_with_blob( this: &FileSystemWritableFileStream, data: &Blob, ) -> Result<::js_sys::Promise, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`*"] pub fn write_with_str( this: &FileSystemWritableFileStream, data: &str, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "WriteParams")] # [wasm_bindgen (catch , method , structural , js_class = "FileSystemWritableFileStream" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemWritableFileStream`, `WriteParams`*"] pub fn write_with_write_params( this: &FileSystemWritableFileStream, data: &WriteParams, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.81/src/features/gen_FillMode.rs000064400000000000000000000006271046102023000166120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_FlashClassification.rs000064400000000000000000000006631046102023000210300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_FlowControlType.rs000064400000000000000000000011571046102023000202300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `FlowControlType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FlowControlType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum FlowControlType { None = "none", Hardware = "hardware", } web-sys-0.3.81/src/features/gen_FocusEvent.rs000064400000000000000000000042111046102023000171710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FocusEventInit.rs000064400000000000000000000126451046102023000200270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &FocusEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &FocusEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &FocusEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &FocusEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &FocusEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &FocusEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &FocusEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &FocusEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &FocusEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &FocusEventInit, val: Option<&Window>); #[cfg(feature = "EventTarget")] #[doc = "Get the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `FocusEventInit`*"] #[wasm_bindgen(method, getter = "relatedTarget")] pub fn get_related_target(this: &FocusEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "relatedTarget")] pub fn set_related_target(this: &FocusEventInit, val: Option<&EventTarget>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_related_target()` instead."] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { self.set_related_target(val); self } } impl Default for FocusEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FocusOptions.rs000064400000000000000000000045241046102023000175520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FocusOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FocusOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] pub type FocusOptions; #[doc = "Get the `focusVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] #[wasm_bindgen(method, getter = "focusVisible")] pub fn get_focus_visible(this: &FocusOptions) -> Option; #[doc = "Change the `focusVisible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] #[wasm_bindgen(method, setter = "focusVisible")] pub fn set_focus_visible(this: &FocusOptions, val: bool); #[doc = "Get the `preventScroll` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] #[wasm_bindgen(method, getter = "preventScroll")] pub fn get_prevent_scroll(this: &FocusOptions) -> Option; #[doc = "Change the `preventScroll` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] #[wasm_bindgen(method, setter = "preventScroll")] pub fn set_prevent_scroll(this: &FocusOptions, val: bool); } impl FocusOptions { #[doc = "Construct a new `FocusOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_focus_visible()` instead."] pub fn focus_visible(&mut self, val: bool) -> &mut Self { self.set_focus_visible(val); self } #[deprecated = "Use `set_prevent_scroll()` instead."] pub fn prevent_scroll(&mut self, val: bool) -> &mut Self { self.set_prevent_scroll(val); self } } impl Default for FocusOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FontData.rs000064400000000000000000000105121046102023000166110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = FontData , typescript_type = "FontData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `FontData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type FontData; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , js_name = postscriptName)] #[doc = "Getter for the `postscriptName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/postscriptName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn postscript_name(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , js_name = fullName)] #[doc = "Getter for the `fullName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/fullName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn full_name(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , 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/FontData/family)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn family(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , 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/FontData/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn style(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "FontData" , js_name = blob)] #[doc = "The `blob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontData/blob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn blob(this: &FontData) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_FontFace.rs000064400000000000000000000364741046102023000166150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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: &[u8]) -> 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_js_u8_array( family: &str, source: &::js_sys::Uint8Array, ) -> 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: &[u8], 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_js_u8_array_and_descriptors( family: &str, source: &::js_sys::Uint8Array, 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>; } web-sys-0.3.81/src/features/gen_FontFaceDescriptors.rs000064400000000000000000000157541046102023000210350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `display` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "display")] pub fn get_display(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `display` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "display")] pub fn set_display(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `featureSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "featureSettings")] pub fn get_feature_settings(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `featureSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "featureSettings")] pub fn set_feature_settings(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `stretch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "stretch")] pub fn get_stretch(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `stretch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "stretch")] pub fn set_stretch(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "style")] pub fn get_style(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "style")] pub fn set_style(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `unicodeRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "unicodeRange")] pub fn get_unicode_range(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `unicodeRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "unicodeRange")] pub fn set_unicode_range(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `variant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "variant")] pub fn get_variant(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `variant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "variant")] pub fn set_variant(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `variationSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "variationSettings")] pub fn get_variation_settings(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `variationSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "variationSettings")] pub fn set_variation_settings(this: &FontFaceDescriptors, val: &str); #[doc = "Get the `weight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "weight")] pub fn get_weight(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `weight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, setter = "weight")] pub fn set_weight(this: &FontFaceDescriptors, val: &str); } 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 } #[deprecated = "Use `set_display()` instead."] pub fn display(&mut self, val: &str) -> &mut Self { self.set_display(val); self } #[deprecated = "Use `set_feature_settings()` instead."] pub fn feature_settings(&mut self, val: &str) -> &mut Self { self.set_feature_settings(val); self } #[deprecated = "Use `set_stretch()` instead."] pub fn stretch(&mut self, val: &str) -> &mut Self { self.set_stretch(val); self } #[deprecated = "Use `set_style()` instead."] pub fn style(&mut self, val: &str) -> &mut Self { self.set_style(val); self } #[deprecated = "Use `set_unicode_range()` instead."] pub fn unicode_range(&mut self, val: &str) -> &mut Self { self.set_unicode_range(val); self } #[deprecated = "Use `set_variant()` instead."] pub fn variant(&mut self, val: &str) -> &mut Self { self.set_variant(val); self } #[deprecated = "Use `set_variation_settings()` instead."] pub fn variation_settings(&mut self, val: &str) -> &mut Self { self.set_variation_settings(val); self } #[deprecated = "Use `set_weight()` instead."] pub fn weight(&mut self, val: &str) -> &mut Self { self.set_weight(val); self } } impl Default for FontFaceDescriptors { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FontFaceLoadStatus.rs000064400000000000000000000006441046102023000206070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_FontFaceSet.rs000064400000000000000000000243541046102023000172630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FontFaceSetIterator.rs000064400000000000000000000022551046102023000207710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FontFaceSetIteratorResult.rs000064400000000000000000000046661046102023000222000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] #[wasm_bindgen(method, getter = "done")] pub fn get_done(this: &FontFaceSetIteratorResult) -> bool; #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] #[wasm_bindgen(method, setter = "done")] pub fn set_done(this: &FontFaceSetIteratorResult, val: bool); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &FontFaceSetIteratorResult) -> ::wasm_bindgen::JsValue; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &FontFaceSetIteratorResult, val: &::wasm_bindgen::JsValue); } 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.set_done(done); ret.set_value(value); ret } #[deprecated = "Use `set_done()` instead."] pub fn done(&mut self, val: bool) -> &mut Self { self.set_done(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_value(val); self } } web-sys-0.3.81/src/features/gen_FontFaceSetLoadEvent.rs000064400000000000000000000044511046102023000210610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_FontFaceSetLoadEventInit.rs000064400000000000000000000077661046102023000217210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &FontFaceSetLoadEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &FontFaceSetLoadEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &FontFaceSetLoadEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &FontFaceSetLoadEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &FontFaceSetLoadEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &FontFaceSetLoadEventInit, val: bool); #[doc = "Get the `fontfaces` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, getter = "fontfaces")] pub fn get_fontfaces(this: &FontFaceSetLoadEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `fontfaces` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] #[wasm_bindgen(method, setter = "fontfaces")] pub fn set_fontfaces(this: &FontFaceSetLoadEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_fontfaces()` instead."] pub fn fontfaces(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_fontfaces(val); self } } impl Default for FontFaceSetLoadEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_FontFaceSetLoadStatus.rs000064400000000000000000000005751046102023000212660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_FormData.rs000064400000000000000000000170731046102023000166170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn entries(this: &FormData) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "FormData" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn for_each(this: &FormData, callback: &::js_sys::Function) -> Result<(), JsValue>; # [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; # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn keys(this: &FormData) -> ::js_sys::Iterator; #[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>; # [wasm_bindgen (method , structural , js_class = "FormData" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FormData`*"] pub fn values(this: &FormData) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_FrameType.rs000064400000000000000000000006141046102023000170070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_FuzzingFunctions.rs000064400000000000000000000037071046102023000204460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_static)"] #[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_static)"] #[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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] pub fn garbage_collect(); } web-sys-0.3.81/src/features/gen_GainNode.rs000064400000000000000000000042311046102023000165760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_GainOptions.rs000064400000000000000000000103721046102023000173470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &GainOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &GainOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `GainOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &GainOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &GainOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `GainOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &GainOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &GainOptions, val: ChannelInterpretation); #[doc = "Get the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] #[wasm_bindgen(method, getter = "gain")] pub fn get_gain(this: &GainOptions) -> Option; #[doc = "Change the `gain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] #[wasm_bindgen(method, setter = "gain")] pub fn set_gain(this: &GainOptions, val: f32); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_gain()` instead."] pub fn gain(&mut self, val: f32) -> &mut Self { self.set_gain(val); self } } impl Default for GainOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Gamepad.rs000064400000000000000000000156161046102023000164610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; # [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 = 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 = "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; # [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 = 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 = 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`*"] #[deprecated] pub fn display_id(this: &Gamepad) -> u32; #[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 = 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; #[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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GamepadHapticActuator")] # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = vibrationActuator)] #[doc = "Getter for the `vibrationActuator` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/vibrationActuator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadHapticActuator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vibration_actuator(this: &Gamepad) -> GamepadHapticActuator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = touchEvents)] #[doc = "Getter for the `touchEvents` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/touchEvents)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn touch_events(this: &Gamepad) -> Option<::js_sys::Array>; } web-sys-0.3.81/src/features/gen_GamepadButton.rs000064400000000000000000000035761046102023000176570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_GamepadEffectParameters.rs000064400000000000000000000231431046102023000216140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadEffectParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadEffectParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GamepadEffectParameters; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &GamepadEffectParameters, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `leftTrigger` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "leftTrigger")] pub fn get_left_trigger(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `leftTrigger` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "leftTrigger")] pub fn set_left_trigger(this: &GamepadEffectParameters, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rightTrigger` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rightTrigger")] pub fn get_right_trigger(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rightTrigger` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rightTrigger")] pub fn set_right_trigger(this: &GamepadEffectParameters, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `startDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "startDelay")] pub fn get_start_delay(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `startDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "startDelay")] pub fn set_start_delay(this: &GamepadEffectParameters, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `strongMagnitude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "strongMagnitude")] pub fn get_strong_magnitude(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `strongMagnitude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "strongMagnitude")] pub fn set_strong_magnitude(this: &GamepadEffectParameters, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `weakMagnitude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "weakMagnitude")] pub fn get_weak_magnitude(this: &GamepadEffectParameters) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `weakMagnitude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "weakMagnitude")] pub fn set_weak_magnitude(this: &GamepadEffectParameters, val: f64); } #[cfg(web_sys_unstable_apis)] impl GamepadEffectParameters { #[doc = "Construct a new `GamepadEffectParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_left_trigger()` instead."] pub fn left_trigger(&mut self, val: f64) -> &mut Self { self.set_left_trigger(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_right_trigger()` instead."] pub fn right_trigger(&mut self, val: f64) -> &mut Self { self.set_right_trigger(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_start_delay()` instead."] pub fn start_delay(&mut self, val: f64) -> &mut Self { self.set_start_delay(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_strong_magnitude()` instead."] pub fn strong_magnitude(&mut self, val: f64) -> &mut Self { self.set_strong_magnitude(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_weak_magnitude()` instead."] pub fn weak_magnitude(&mut self, val: f64) -> &mut Self { self.set_weak_magnitude(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GamepadEffectParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GamepadEvent.rs000064400000000000000000000041641046102023000174570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_GamepadEventInit.rs000064400000000000000000000076021046102023000203030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &GamepadEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &GamepadEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &GamepadEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &GamepadEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &GamepadEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &GamepadEventInit, val: bool); #[cfg(feature = "Gamepad")] #[doc = "Get the `gamepad` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadEventInit`*"] #[wasm_bindgen(method, getter = "gamepad")] pub fn get_gamepad(this: &GamepadEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "gamepad")] pub fn set_gamepad(this: &GamepadEventInit, val: Option<&Gamepad>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "Gamepad")] #[deprecated = "Use `set_gamepad()` instead."] pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { self.set_gamepad(val); self } } impl Default for GamepadEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GamepadHand.rs000064400000000000000000000005461046102023000172500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_GamepadHapticActuator.rs000064400000000000000000000120571046102023000213110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] pub fn type_(this: &GamepadHapticActuator) -> GamepadHapticActuatorType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GamepadHapticActuator" , js_name = effects)] #[doc = "Getter for the `effects` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/effects)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn effects(this: &GamepadHapticActuator) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GamepadHapticEffectType")] # [wasm_bindgen (method , structural , js_class = "GamepadHapticActuator" , js_name = playEffect)] #[doc = "The `playEffect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/playEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`, `GamepadHapticEffectType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn play_effect( this: &GamepadHapticActuator, type_: GamepadHapticEffectType, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GamepadEffectParameters", feature = "GamepadHapticEffectType", ))] # [wasm_bindgen (method , structural , js_class = "GamepadHapticActuator" , js_name = playEffect)] #[doc = "The `playEffect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/playEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadEffectParameters`, `GamepadHapticActuator`, `GamepadHapticEffectType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn play_effect_with_params( this: &GamepadHapticActuator, type_: GamepadHapticEffectType, params: &GamepadEffectParameters, ) -> ::js_sys::Promise; # [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>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GamepadHapticActuator" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &GamepadHapticActuator) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_GamepadHapticActuatorType.rs000064400000000000000000000005661046102023000221550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_GamepadHapticEffectType.rs000064400000000000000000000012371046102023000215630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GamepadHapticEffectType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticEffectType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GamepadHapticEffectType { DualRumble = "dual-rumble", TriggerRumble = "trigger-rumble", } web-sys-0.3.81/src/features/gen_GamepadHapticsResult.rs000064400000000000000000000012101046102023000211550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GamepadHapticsResult` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadHapticsResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GamepadHapticsResult { Complete = "complete", Preempted = "preempted", } web-sys-0.3.81/src/features/gen_GamepadMappingType.rs000064400000000000000000000005561046102023000206340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_GamepadPose.rs000064400000000000000000000110561046102023000173020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_GamepadTouch.rs000064400000000000000000000073741046102023000174660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadTouch , typescript_type = "GamepadTouch")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GamepadTouch` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GamepadTouch; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GamepadTouch" , js_name = touchId)] #[doc = "Getter for the `touchId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/touchId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn touch_id(this: &GamepadTouch) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GamepadTouch" , js_name = surfaceId)] #[doc = "Getter for the `surfaceId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/surfaceId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn surface_id(this: &GamepadTouch) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GamepadTouch" , 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/GamepadTouch/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn position(this: &GamepadTouch) -> ::alloc::vec::Vec; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GamepadTouch" , js_name = surfaceDimensions)] #[doc = "Getter for the `surfaceDimensions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/surfaceDimensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn surface_dimensions(this: &GamepadTouch) -> Option<::alloc::vec::Vec>; } web-sys-0.3.81/src/features/gen_Geolocation.rs000064400000000000000000000111441046102023000173560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_GestureEvent.rs000064400000000000000000000221631046102023000175360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = GestureEvent , typescript_type = "GestureEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GestureEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GestureEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GestureEvent; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn scale(this: &GestureEvent) -> f32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , js_name = rotation)] #[doc = "Getter for the `rotation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GestureEvent/rotation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rotation(this: &GestureEvent) -> f32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/ctrlKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ctrl_key(this: &GestureEvent) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/shiftKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn shift_key(this: &GestureEvent) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/altKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alt_key(this: &GestureEvent) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/metaKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn meta_key(this: &GestureEvent) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/clientX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn client_x(this: &GestureEvent) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/clientY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn client_y(this: &GestureEvent) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/screenX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn screen_x(this: &GestureEvent) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GestureEvent" , 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/GestureEvent/screenY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GestureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn screen_y(this: &GestureEvent) -> i32; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "EventTarget", feature = "Window",))] # [wasm_bindgen (method , structural , js_class = "GestureEvent" , js_name = initGestureEvent)] #[doc = "The `initGestureEvent()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GestureEvent/initGestureEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `GestureEvent`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn init_gesture_event( this: &GestureEvent, 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, target: Option<&EventTarget>, scale: f32, rotation: f32, ); } web-sys-0.3.81/src/features/gen_GetAnimationsOptions.rs000064400000000000000000000054241046102023000212350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetAnimationsOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GetAnimationsOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GetAnimationsOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "subtree")] pub fn get_subtree(this: &GetAnimationsOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "subtree")] pub fn set_subtree(this: &GetAnimationsOptions, val: bool); } #[cfg(web_sys_unstable_apis)] impl GetAnimationsOptions { #[doc = "Construct a new `GetAnimationsOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetAnimationsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_subtree()` instead."] pub fn subtree(&mut self, val: bool) -> &mut Self { self.set_subtree(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GetAnimationsOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GetRootNodeOptions.rs000064400000000000000000000031651046102023000206640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &GetRootNodeOptions) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &GetRootNodeOptions, val: bool); } 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 } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } } impl Default for GetRootNodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GetUserMediaRequest.rs000064400000000000000000000110701046102023000210000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_Gpu.rs000064400000000000000000000075721046102023000156600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Gpu; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WgslLanguageFeatures")] # [wasm_bindgen (structural , method , getter , js_class = "GPU" , js_name = wgslLanguageFeatures)] #[doc = "Getter for the `wgslLanguageFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/wgslLanguageFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`, `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn wgsl_language_features(this: &Gpu) -> WgslLanguageFeatures; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] # [wasm_bindgen (method , structural , js_class = "GPU" , js_name = getPreferredCanvasFormat)] #[doc = "The `getPreferredCanvasFormat()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/getPreferredCanvasFormat)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gpu`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_preferred_canvas_format(this: &Gpu) -> GpuTextureFormat; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_adapter_with_options( this: &Gpu, options: &GpuRequestAdapterOptions, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_GpuAdapter.rs000064400000000000000000000126431046102023000171540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapter; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedFeatures")] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = features)] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/features)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn features(this: &GpuAdapter) -> GpuSupportedFeatures; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedLimits")] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , 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/GPUAdapter/limits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuAdapter) -> GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAdapterInfo")] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = info)] #[doc = "Getter for the `info` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/info)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn info(this: &GpuAdapter) -> GpuAdapterInfo; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapter" , js_name = isFallbackAdapter)] #[doc = "Getter for the `isFallbackAdapter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/isFallbackAdapter)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_fallback_adapter(this: &GpuAdapter) -> bool; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device_with_descriptor( this: &GpuAdapter, descriptor: &GpuDeviceDescriptor, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_GpuAdapterInfo.rs000064400000000000000000000074601046102023000177710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUAdapterInfo , typescript_type = "GPUAdapterInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuAdapterInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuAdapterInfo; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = vendor)] #[doc = "Getter for the `vendor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/vendor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = architecture)] #[doc = "Getter for the `architecture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/architecture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapterInfo/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , 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/GPUAdapterInfo/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_GpuAddressMode.rs000064400000000000000000000012341046102023000177600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuAutoLayoutMode.rs000064400000000000000000000011321046102023000204760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuAutoLayoutMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAutoLayoutMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuAutoLayoutMode { Auto = "auto", } web-sys-0.3.81/src/features/gen_GpuBindGroup.rs000064400000000000000000000044021046102023000174570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroup) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBindGroup, value: &str); } web-sys-0.3.81/src/features/gen_GpuBindGroupDescriptor.rs000064400000000000000000000133241046102023000215210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuBindGroupDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuBindGroupDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entries` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entries")] pub fn get_entries(this: &GpuBindGroupDescriptor) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entries` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entries")] pub fn set_entries(this: &GpuBindGroupDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &GpuBindGroupDescriptor) -> GpuBindGroupLayout; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &GpuBindGroupDescriptor, val: &GpuBindGroupLayout); } #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entries: &::wasm_bindgen::JsValue, layout: &GpuBindGroupLayout) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_entries(entries); ret.set_layout(layout); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entries()` instead."] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_entries(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &GpuBindGroupLayout) -> &mut Self { self.set_layout(val); self } } web-sys-0.3.81/src/features/gen_GpuBindGroupEntry.rs000064400000000000000000000101021046102023000204730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupEntry; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `binding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "binding")] pub fn get_binding(this: &GpuBindGroupEntry) -> u32; #[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: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "binding")] pub fn set_binding(this: &GpuBindGroupEntry, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `resource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "resource")] pub fn get_resource(this: &GpuBindGroupEntry) -> ::wasm_bindgen::JsValue; #[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: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "resource")] pub fn set_resource(this: &GpuBindGroupEntry, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuBindGroupEntry { #[doc = "Construct a new `GpuBindGroupEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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.set_binding(binding); ret.set_resource(resource); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_binding()` instead."] pub fn binding(&mut self, val: u32) -> &mut Self { self.set_binding(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_resource()` instead."] pub fn resource(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_resource(val); self } } web-sys-0.3.81/src/features/gen_GpuBindGroupLayout.rs000064400000000000000000000045261046102023000206640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBindGroupLayout) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBindGroupLayout, value: &str); } web-sys-0.3.81/src/features/gen_GpuBindGroupLayoutDescriptor.rs000064400000000000000000000102571046102023000227210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayoutDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuBindGroupLayoutDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuBindGroupLayoutDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entries` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entries")] pub fn get_entries(this: &GpuBindGroupLayoutDescriptor) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entries` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entries")] pub fn set_entries(this: &GpuBindGroupLayoutDescriptor, val: &::wasm_bindgen::JsValue); } #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entries: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_entries(entries); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entries()` instead."] pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_entries(val); self } } web-sys-0.3.81/src/features/gen_GpuBindGroupLayoutEntry.rs000064400000000000000000000303331046102023000217010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBindGroupLayoutEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBindGroupLayoutEntry; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `binding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "binding")] pub fn get_binding(this: &GpuBindGroupLayoutEntry) -> u32; #[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: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "binding")] pub fn set_binding(this: &GpuBindGroupLayoutEntry, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingLayout")] #[doc = "Get the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "buffer")] pub fn get_buffer(this: &GpuBindGroupLayoutEntry) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingLayout")] #[doc = "Change the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "buffer")] pub fn set_buffer(this: &GpuBindGroupLayoutEntry, val: &GpuBufferBindingLayout); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuExternalTextureBindingLayout")] #[doc = "Get the `externalTexture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuExternalTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "externalTexture")] pub fn get_external_texture( this: &GpuBindGroupLayoutEntry, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuExternalTextureBindingLayout")] #[doc = "Change the `externalTexture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuExternalTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "externalTexture")] pub fn set_external_texture( this: &GpuBindGroupLayoutEntry, val: &GpuExternalTextureBindingLayout, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSamplerBindingLayout")] #[doc = "Get the `sampler` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuSamplerBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampler")] pub fn get_sampler(this: &GpuBindGroupLayoutEntry) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSamplerBindingLayout")] #[doc = "Change the `sampler` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuSamplerBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampler")] pub fn set_sampler(this: &GpuBindGroupLayoutEntry, val: &GpuSamplerBindingLayout); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureBindingLayout")] #[doc = "Get the `storageTexture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuStorageTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "storageTexture")] pub fn get_storage_texture( this: &GpuBindGroupLayoutEntry, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureBindingLayout")] #[doc = "Change the `storageTexture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuStorageTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "storageTexture")] pub fn set_storage_texture( this: &GpuBindGroupLayoutEntry, val: &GpuStorageTextureBindingLayout, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureBindingLayout")] #[doc = "Get the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "texture")] pub fn get_texture(this: &GpuBindGroupLayoutEntry) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureBindingLayout")] #[doc = "Change the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`, `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "texture")] pub fn set_texture(this: &GpuBindGroupLayoutEntry, val: &GpuTextureBindingLayout); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `visibility` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "visibility")] pub fn get_visibility(this: &GpuBindGroupLayoutEntry) -> u32; #[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: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "visibility")] pub fn set_visibility(this: &GpuBindGroupLayoutEntry, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuBindGroupLayoutEntry { #[doc = "Construct a new `GpuBindGroupLayoutEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(binding: u32, visibility: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_binding(binding); ret.set_visibility(visibility); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_binding()` instead."] pub fn binding(&mut self, val: u32) -> &mut Self { self.set_binding(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingLayout")] #[deprecated = "Use `set_buffer()` instead."] pub fn buffer(&mut self, val: &GpuBufferBindingLayout) -> &mut Self { self.set_buffer(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuExternalTextureBindingLayout")] #[deprecated = "Use `set_external_texture()` instead."] pub fn external_texture(&mut self, val: &GpuExternalTextureBindingLayout) -> &mut Self { self.set_external_texture(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSamplerBindingLayout")] #[deprecated = "Use `set_sampler()` instead."] pub fn sampler(&mut self, val: &GpuSamplerBindingLayout) -> &mut Self { self.set_sampler(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureBindingLayout")] #[deprecated = "Use `set_storage_texture()` instead."] pub fn storage_texture(&mut self, val: &GpuStorageTextureBindingLayout) -> &mut Self { self.set_storage_texture(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureBindingLayout")] #[deprecated = "Use `set_texture()` instead."] pub fn texture(&mut self, val: &GpuTextureBindingLayout) -> &mut Self { self.set_texture(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_visibility()` instead."] pub fn visibility(&mut self, val: u32) -> &mut Self { self.set_visibility(val); self } } web-sys-0.3.81/src/features/gen_GpuBlendComponent.rs000064400000000000000000000136671046102023000205120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendComponent)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendComponent` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBlendComponent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendFactor")] #[doc = "Get the `dstFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dstFactor")] pub fn get_dst_factor(this: &GpuBlendComponent) -> Option; #[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: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dstFactor")] pub fn set_dst_factor(this: &GpuBlendComponent, val: GpuBlendFactor); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendOperation")] #[doc = "Get the `operation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "operation")] pub fn get_operation(this: &GpuBlendComponent) -> Option; #[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: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "operation")] pub fn set_operation(this: &GpuBlendComponent, val: GpuBlendOperation); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendFactor")] #[doc = "Get the `srcFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "srcFactor")] pub fn get_src_factor(this: &GpuBlendComponent) -> Option; #[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: `GpuBlendComponent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "srcFactor")] pub fn set_src_factor(this: &GpuBlendComponent, val: GpuBlendFactor); } #[cfg(web_sys_unstable_apis)] impl GpuBlendComponent { #[doc = "Construct a new `GpuBlendComponent`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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")] #[deprecated = "Use `set_dst_factor()` instead."] pub fn dst_factor(&mut self, val: GpuBlendFactor) -> &mut Self { self.set_dst_factor(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendOperation")] #[deprecated = "Use `set_operation()` instead."] pub fn operation(&mut self, val: GpuBlendOperation) -> &mut Self { self.set_operation(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendFactor")] #[deprecated = "Use `set_src_factor()` instead."] pub fn src_factor(&mut self, val: GpuBlendFactor) -> &mut Self { self.set_src_factor(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuBlendComponent { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuBlendFactor.rs000064400000000000000000000021331046102023000177500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuBlendFactor { Zero = "zero", One = "one", Src = "src", OneMinusSrc = "one-minus-src", SrcAlpha = "src-alpha", OneMinusSrcAlpha = "one-minus-src-alpha", Dst = "dst", OneMinusDst = "one-minus-dst", DstAlpha = "dst-alpha", OneMinusDstAlpha = "one-minus-dst-alpha", SrcAlphaSaturated = "src-alpha-saturated", Constant = "constant", OneMinusConstant = "one-minus-constant", Src1 = "src1", OneMinusSrc1 = "one-minus-src1", Src1Alpha = "src1-alpha", OneMinusSrc1Alpha = "one-minus-src1-alpha", } web-sys-0.3.81/src/features/gen_GpuBlendOperation.rs000064400000000000000000000012771046102023000205020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuBlendState.rs000064400000000000000000000105741046102023000176220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBlendState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBlendState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBlendState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &GpuBlendState) -> GpuBlendComponent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &GpuBlendState, val: &GpuBlendComponent); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[doc = "Get the `color` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "color")] pub fn get_color(this: &GpuBlendState) -> GpuBlendComponent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[doc = "Change the `color` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "color")] pub fn set_color(this: &GpuBlendState, val: &GpuBlendComponent); } #[cfg(web_sys_unstable_apis)] impl GpuBlendState { #[cfg(feature = "GpuBlendComponent")] #[doc = "Construct a new `GpuBlendState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendComponent`, `GpuBlendState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(alpha: &GpuBlendComponent, color: &GpuBlendComponent) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_alpha(alpha); ret.set_color(color); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: &GpuBlendComponent) -> &mut Self { self.set_alpha(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendComponent")] #[deprecated = "Use `set_color()` instead."] pub fn color(&mut self, val: &GpuBlendComponent) -> &mut Self { self.set_color(val); self } } web-sys-0.3.81/src/features/gen_GpuBuffer.rs000064400000000000000000000405511046102023000170040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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 = size)] #[doc = "Getter for the `size` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/size)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &GpuBuffer) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = usage)] #[doc = "Getter for the `usage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/usage)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(this: &GpuBuffer) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferMapState")] # [wasm_bindgen (structural , method , getter , js_class = "GPUBuffer" , js_name = mapState)] #[doc = "Getter for the `mapState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferMapState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_state(this: &GpuBuffer) -> GpuBufferMapState; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuBuffer) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuBuffer, value: &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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuBuffer); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range(this: &GpuBuffer) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32( this: &GpuBuffer, offset: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64( this: &GpuBuffer, offset: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32_and_u32( this: &GpuBuffer, offset: u32, size: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64_and_u32( this: &GpuBuffer, offset: f64, size: u32, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_u32_and_f64( this: &GpuBuffer, offset: u32, size: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUBuffer" , js_name = getMappedRange)] #[doc = "The `getMappedRange()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/getMappedRange)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_mapped_range_with_f64_and_f64( this: &GpuBuffer, offset: f64, size: f64, ) -> Result<::js_sys::ArrayBuffer, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async(this: &GpuBuffer, mode: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_u32(this: &GpuBuffer, mode: u32, offset: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_f64(this: &GpuBuffer, mode: u32, offset: f64) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_u32_and_u32( this: &GpuBuffer, mode: u32, offset: u32, size: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_f64_and_u32( this: &GpuBuffer, mode: u32, offset: f64, size: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_u32_and_f64( this: &GpuBuffer, mode: u32, offset: u32, size: f64, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUBuffer" , js_name = mapAsync)] #[doc = "The `mapAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapAsync)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn map_async_with_f64_and_f64( this: &GpuBuffer, mode: u32, offset: f64, size: f64, ) -> ::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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unmap(this: &GpuBuffer); } web-sys-0.3.81/src/features/gen_GpuBufferBinding.rs000064400000000000000000000125441046102023000203000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferBinding; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "buffer")] pub fn get_buffer(this: &GpuBufferBinding) -> GpuBuffer; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "buffer")] pub fn set_buffer(this: &GpuBufferBinding, val: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &GpuBufferBinding) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &GpuBufferBinding, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &GpuBufferBinding) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &GpuBufferBinding, val: f64); } #[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://wasm-bindgen.github.io/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.set_buffer(buffer); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[deprecated = "Use `set_buffer()` instead."] pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { self.set_buffer(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f64) -> &mut Self { self.set_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: f64) -> &mut Self { self.set_size(val); self } } web-sys-0.3.81/src/features/gen_GpuBufferBindingLayout.rs000064400000000000000000000134141046102023000214730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUBufferBindingLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuBufferBindingLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferBindingLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hasDynamicOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hasDynamicOffset")] pub fn get_has_dynamic_offset(this: &GpuBufferBindingLayout) -> Option; #[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: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hasDynamicOffset")] pub fn set_has_dynamic_offset(this: &GpuBufferBindingLayout, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `minBindingSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "minBindingSize")] pub fn get_min_binding_size(this: &GpuBufferBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `minBindingSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "minBindingSize")] pub fn set_min_binding_size(this: &GpuBufferBindingLayout, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`, `GpuBufferBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &GpuBufferBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`, `GpuBufferBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &GpuBufferBindingLayout, val: GpuBufferBindingType); } #[cfg(web_sys_unstable_apis)] impl GpuBufferBindingLayout { #[doc = "Construct a new `GpuBufferBindingLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_has_dynamic_offset()` instead."] pub fn has_dynamic_offset(&mut self, val: bool) -> &mut Self { self.set_has_dynamic_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_min_binding_size()` instead."] pub fn min_binding_size(&mut self, val: f64) -> &mut Self { self.set_min_binding_size(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBufferBindingType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: GpuBufferBindingType) -> &mut Self { self.set_type(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuBufferBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuBufferBindingType.rs000064400000000000000000000012551046102023000211370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuBufferBindingType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuBufferBindingType { Uniform = "uniform", Storage = "storage", ReadOnlyStorage = "read-only-storage", } web-sys-0.3.81/src/features/gen_GpuBufferDescriptor.rs000064400000000000000000000151731046102023000210450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuBufferDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuBufferDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuBufferDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mappedAtCreation` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mappedAtCreation")] pub fn get_mapped_at_creation(this: &GpuBufferDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mappedAtCreation` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mappedAtCreation")] pub fn set_mapped_at_creation(this: &GpuBufferDescriptor, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &GpuBufferDescriptor) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &GpuBufferDescriptor, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &GpuBufferDescriptor) -> u32; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &GpuBufferDescriptor, val: u32); } #[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://wasm-bindgen.github.io/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.set_size(size); ret.set_usage(usage); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mapped_at_creation()` instead."] pub fn mapped_at_creation(&mut self, val: bool) -> &mut Self { self.set_mapped_at_creation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: f64) -> &mut Self { self.set_size(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u32) -> &mut Self { self.set_usage(val); self } } web-sys-0.3.81/src/features/gen_GpuBufferMapState.rs000064400000000000000000000012221046102023000204330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuBufferMapState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBufferMapState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuBufferMapState { Unmapped = "unmapped", Pending = "pending", Mapped = "mapped", } web-sys-0.3.81/src/features/gen_GpuCanvasAlphaMode.rs000064400000000000000000000012061046102023000205530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCanvasAlphaMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCanvasAlphaMode { Opaque = "opaque", Premultiplied = "premultiplied", } web-sys-0.3.81/src/features/gen_GpuCanvasConfiguration.rs000064400000000000000000000244321046102023000215360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasConfiguration)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasConfiguration` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasConfiguration; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasAlphaMode")] #[doc = "Get the `alphaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`, `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alphaMode")] pub fn get_alpha_mode(this: &GpuCanvasConfiguration) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasAlphaMode")] #[doc = "Change the `alphaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasAlphaMode`, `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alphaMode")] pub fn set_alpha_mode(this: &GpuCanvasConfiguration, val: GpuCanvasAlphaMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDevice")] #[doc = "Get the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "device")] pub fn get_device(this: &GpuCanvasConfiguration) -> GpuDevice; #[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: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "device")] pub fn set_device(this: &GpuCanvasConfiguration, val: &GpuDevice); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuCanvasConfiguration) -> GpuTextureFormat; #[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: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuCanvasConfiguration, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasToneMapping")] #[doc = "Get the `toneMapping` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuCanvasToneMapping`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "toneMapping")] pub fn get_tone_mapping(this: &GpuCanvasConfiguration) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasToneMapping")] #[doc = "Change the `toneMapping` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuCanvasToneMapping`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "toneMapping")] pub fn set_tone_mapping(this: &GpuCanvasConfiguration, val: &GpuCanvasToneMapping); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &GpuCanvasConfiguration) -> Option; #[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: `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &GpuCanvasConfiguration, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `viewFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "viewFormats")] pub fn get_view_formats(this: &GpuCanvasConfiguration) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `viewFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "viewFormats")] pub fn set_view_formats(this: &GpuCanvasConfiguration, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuCanvasConfiguration { #[cfg(all(feature = "GpuDevice", feature = "GpuTextureFormat",))] #[doc = "Construct a new `GpuCanvasConfiguration`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `GpuDevice`, `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://wasm-bindgen.github.io/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.set_device(device); ret.set_format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasAlphaMode")] #[deprecated = "Use `set_alpha_mode()` instead."] pub fn alpha_mode(&mut self, val: GpuCanvasAlphaMode) -> &mut Self { self.set_alpha_mode(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDevice")] #[deprecated = "Use `set_device()` instead."] pub fn device(&mut self, val: &GpuDevice) -> &mut Self { self.set_device(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasToneMapping")] #[deprecated = "Use `set_tone_mapping()` instead."] pub fn tone_mapping(&mut self, val: &GpuCanvasToneMapping) -> &mut Self { self.set_tone_mapping(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u32) -> &mut Self { self.set_usage(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_view_formats()` instead."] pub fn view_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_view_formats(val); self } } web-sys-0.3.81/src/features/gen_GpuCanvasContext.rs000064400000000000000000000114201046102023000203440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasContext; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCanvasContext" , 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/GPUCanvasContext/canvas)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn canvas(this: &GpuCanvasContext) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasConfiguration")] # [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = configure)] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure( this: &GpuCanvasContext, configuration: &GpuCanvasConfiguration, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasConfiguration")] # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = getConfiguration)] #[doc = "The `getConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasConfiguration`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_configuration(this: &GpuCanvasContext) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] # [wasm_bindgen (catch , method , structural , js_class = "GPUCanvasContext" , js_name = getCurrentTexture)] #[doc = "The `getCurrentTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getCurrentTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_current_texture(this: &GpuCanvasContext) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUCanvasContext" , js_name = unconfigure)] #[doc = "The `unconfigure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/unconfigure)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn unconfigure(this: &GpuCanvasContext); } web-sys-0.3.81/src/features/gen_GpuCanvasToneMapping.rs000064400000000000000000000060001046102023000211370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCanvasToneMapping)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCanvasToneMapping` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCanvasToneMapping; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasToneMappingMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`, `GpuCanvasToneMappingMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &GpuCanvasToneMapping) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCanvasToneMappingMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`, `GpuCanvasToneMappingMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &GpuCanvasToneMapping, val: GpuCanvasToneMappingMode); } #[cfg(web_sys_unstable_apis)] impl GpuCanvasToneMapping { #[doc = "Construct a new `GpuCanvasToneMapping`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMapping`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "GpuCanvasToneMappingMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: GpuCanvasToneMappingMode) -> &mut Self { self.set_mode(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuCanvasToneMapping { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuCanvasToneMappingMode.rs000064400000000000000000000012221046102023000217450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCanvasToneMappingMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCanvasToneMappingMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCanvasToneMappingMode { Standard = "standard", Extended = "extended", } web-sys-0.3.81/src/features/gen_GpuColorDict.rs000064400000000000000000000143441046102023000174560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuColorDict; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "a")] pub fn get_a(this: &GpuColorDict) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "a")] pub fn set_a(this: &GpuColorDict, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "b")] pub fn get_b(this: &GpuColorDict) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "b")] pub fn set_b(this: &GpuColorDict, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "g")] pub fn get_g(this: &GpuColorDict) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "g")] pub fn set_g(this: &GpuColorDict, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "r")] pub fn get_r(this: &GpuColorDict) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "r")] pub fn set_r(this: &GpuColorDict, val: f64); } #[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://wasm-bindgen.github.io/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.set_a(a); ret.set_b(b); ret.set_g(g); ret.set_r(r); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_a()` instead."] pub fn a(&mut self, val: f64) -> &mut Self { self.set_a(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_b()` instead."] pub fn b(&mut self, val: f64) -> &mut Self { self.set_b(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_g()` instead."] pub fn g(&mut self, val: f64) -> &mut Self { self.set_g(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_r()` instead."] pub fn r(&mut self, val: f64) -> &mut Self { self.set_r(val); self } } web-sys-0.3.81/src/features/gen_GpuColorTargetState.rs000064400000000000000000000133041046102023000210150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUColorTargetState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuColorTargetState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuColorTargetState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendState")] #[doc = "Get the `blend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendState`, `GpuColorTargetState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "blend")] pub fn get_blend(this: &GpuColorTargetState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendState")] #[doc = "Change the `blend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBlendState`, `GpuColorTargetState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "blend")] pub fn set_blend(this: &GpuColorTargetState, val: &GpuBlendState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuColorTargetState) -> GpuTextureFormat; #[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: `GpuColorTargetState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuColorTargetState, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `writeMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "writeMask")] pub fn get_write_mask(this: &GpuColorTargetState) -> Option; #[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: `GpuColorTargetState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "writeMask")] pub fn set_write_mask(this: &GpuColorTargetState, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuColorTargetState { #[cfg(feature = "GpuTextureFormat")] #[doc = "Construct a new `GpuColorTargetState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuColorTargetState`, `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://wasm-bindgen.github.io/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.set_format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBlendState")] #[deprecated = "Use `set_blend()` instead."] pub fn blend(&mut self, val: &GpuBlendState) -> &mut Self { self.set_blend(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_write_mask()` instead."] pub fn write_mask(&mut self, val: u32) -> &mut Self { self.set_write_mask(val); self } } web-sys-0.3.81/src/features/gen_GpuCommandBuffer.rs000064400000000000000000000044721046102023000203050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandBuffer) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuCommandBuffer, value: &str); } web-sys-0.3.81/src/features/gen_GpuCommandBufferDescriptor.rs000064400000000000000000000055351046102023000223450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandBufferDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuCommandBufferDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuCommandBufferDescriptor, val: &str); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuCommandBufferDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuCommandEncoder.rs000064400000000000000000001056331046102023000204540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuCommandEncoder) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuCommandEncoder, value: &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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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 (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_render_pass( this: &GpuCommandEncoder, descriptor: &GpuRenderPassDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer(this: &GpuCommandEncoder, buffer: &GpuBuffer); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_u32(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_f64(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_u32_and_u32( this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_f64_and_u32( this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_u32_and_f64( this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)] #[doc = "The `clearBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_buffer_with_f64_and_f64( this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_u32( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_u32_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: u32, destination: &GpuBuffer, destination_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_buffer_with_f64_and_f64( this: &GpuCommandEncoder, source: &GpuBuffer, source_offset: f64, destination: &GpuBuffer, destination_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuTexelCopyBufferInfo", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , 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: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_texture_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuTexelCopyBufferInfo, destination: &GpuTexelCopyTextureInfo, copy_size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuTexelCopyBufferInfo", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , 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: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuTexelCopyBufferInfo, destination: &GpuTexelCopyTextureInfo, copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuTexelCopyBufferInfo", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , 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: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_buffer_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuTexelCopyTextureInfo, destination: &GpuTexelCopyBufferInfo, copy_size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuTexelCopyBufferInfo", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , 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: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuTexelCopyTextureInfo, destination: &GpuTexelCopyBufferInfo, copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexelCopyTextureInfo")] # [wasm_bindgen (catch , 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`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_texture_with_u32_sequence( this: &GpuCommandEncoder, source: &GpuTexelCopyTextureInfo, destination: &GpuTexelCopyTextureInfo, copy_size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuTexelCopyTextureInfo",))] # [wasm_bindgen (catch , 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`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_texture_to_texture_with_gpu_extent_3d_dict( this: &GpuCommandEncoder, source: &GpuTexelCopyTextureInfo, destination: &GpuTexelCopyTextureInfo, copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish_with_descriptor( this: &GpuCommandEncoder, descriptor: &GpuCommandBufferDescriptor, ) -> GpuCommandBuffer; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn resolve_query_set_with_u32( this: &GpuCommandEncoder, query_set: &GpuQuerySet, first_query: u32, query_count: u32, destination: &GpuBuffer, destination_offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))] # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)] #[doc = "The `resolveQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn resolve_query_set_with_f64( this: &GpuCommandEncoder, query_set: &GpuQuerySet, first_query: u32, query_count: u32, destination: &GpuBuffer, destination_offset: f64, ); #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str); } web-sys-0.3.81/src/features/gen_GpuCommandEncoderDescriptor.rs000064400000000000000000000055511046102023000225110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCommandEncoderDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuCommandEncoderDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuCommandEncoderDescriptor, val: &str); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuCommandEncoderDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuCompareFunction.rs000064400000000000000000000014251046102023000206640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuCompilationInfo.rs000064400000000000000000000031561046102023000206650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationInfo , typescript_type = "GPUCompilationInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationInfo; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationInfo" , js_name = messages)] #[doc = "Getter for the `messages` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationInfo/messages)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn messages(this: &GpuCompilationInfo) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_GpuCompilationMessage.rs000064400000000000000000000126621046102023000213600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCompilationMessage , typescript_type = "GPUCompilationMessage")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCompilationMessage` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCompilationMessage; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , 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/GPUCompilationMessage/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompilationMessageType")] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , 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/GPUCompilationMessage/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`, `GpuCompilationMessageType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = lineNum)] #[doc = "Getter for the `lineNum` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/lineNum)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_num(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = linePos)] #[doc = "Getter for the `linePos` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/linePos)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn line_pos(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , 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/GPUCompilationMessage/offset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn offset(this: &GpuCompilationMessage) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , 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/GPUCompilationMessage/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &GpuCompilationMessage) -> f64; } web-sys-0.3.81/src/features/gen_GpuCompilationMessageType.rs000064400000000000000000000012401046102023000222100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuCompilationMessageType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessageType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCompilationMessageType { Error = "error", Warning = "warning", Info = "info", } web-sys-0.3.81/src/features/gen_GpuComputePassDescriptor.rs000064400000000000000000000110521046102023000220670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuComputePassDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuComputePassDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePassTimestampWrites")] #[doc = "Get the `timestampWrites` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestampWrites")] pub fn get_timestamp_writes( this: &GpuComputePassDescriptor, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePassTimestampWrites")] #[doc = "Change the `timestampWrites` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestampWrites")] pub fn set_timestamp_writes( this: &GpuComputePassDescriptor, val: &GpuComputePassTimestampWrites, ); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePassTimestampWrites")] #[deprecated = "Use `set_timestamp_writes()` instead."] pub fn timestamp_writes(&mut self, val: &GpuComputePassTimestampWrites) -> &mut Self { self.set_timestamp_writes(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuComputePassDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuComputePassEncoder.rs000064400000000000000000000407421046102023000213400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePassEncoder, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups(this: &GpuComputePassEncoder, workgroup_count_x: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups_with_workgroup_count_y( this: &GpuComputePassEncoder, workgroup_count_x: u32, workgroup_count_y: u32, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroups)] #[doc = "The `dispatchWorkgroups()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups_with_workgroup_count_y_and_workgroup_count_z( this: &GpuComputePassEncoder, workgroup_count_x: u32, workgroup_count_y: u32, workgroup_count_z: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchWorkgroupsIndirect)] #[doc = "The `dispatchWorkgroupsIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups_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 = dispatchWorkgroupsIndirect)] #[doc = "The `dispatchWorkgroupsIndirect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dispatch_workgroups_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 = end)] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/end)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group( this: &GpuComputePassEncoder, index: u32, bind_group: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuComputePassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length( this: &GpuComputePassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str); } web-sys-0.3.81/src/features/gen_GpuComputePassTimestampWrites.rs000064400000000000000000000137531046102023000231240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassTimestampWrites)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuComputePassTimestampWrites` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePassTimestampWrites; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `beginningOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")] pub fn get_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `beginningOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")] pub fn set_beginning_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `endOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "endOfPassWriteIndex")] pub fn get_end_of_pass_write_index(this: &GpuComputePassTimestampWrites) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `endOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "endOfPassWriteIndex")] pub fn set_end_of_pass_write_index(this: &GpuComputePassTimestampWrites, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Get the `querySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "querySet")] pub fn get_query_set(this: &GpuComputePassTimestampWrites) -> GpuQuerySet; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Change the `querySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "querySet")] pub fn set_query_set(this: &GpuComputePassTimestampWrites, val: &GpuQuerySet); } #[cfg(web_sys_unstable_apis)] impl GpuComputePassTimestampWrites { #[cfg(feature = "GpuQuerySet")] #[doc = "Construct a new `GpuComputePassTimestampWrites`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(query_set: &GpuQuerySet) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_query_set(query_set); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_beginning_of_pass_write_index()` instead."] pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self { self.set_beginning_of_pass_write_index(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_end_of_pass_write_index()` instead."] pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self { self.set_end_of_pass_write_index(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[deprecated = "Use `set_query_set()` instead."] pub fn query_set(&mut self, val: &GpuQuerySet) -> &mut Self { self.set_query_set(val); self } } web-sys-0.3.81/src/features/gen_GpuComputePipeline.rs000064400000000000000000000062531046102023000206760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuComputePipeline) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuComputePipeline, value: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] # [wasm_bindgen (method , structural , js_class = "GPUComputePipeline" , js_name = getBindGroupLayout)] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/getBindGroupLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_bind_group_layout(this: &GpuComputePipeline, index: u32) -> GpuBindGroupLayout; } web-sys-0.3.81/src/features/gen_GpuComputePipelineDescriptor.rs000064400000000000000000000135441046102023000227360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuComputePipelineDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuComputePipelineDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuComputePipelineDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &GpuComputePipelineDescriptor) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &GpuComputePipelineDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuProgrammableStage")] #[doc = "Get the `compute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "compute")] pub fn get_compute(this: &GpuComputePipelineDescriptor) -> GpuProgrammableStage; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuProgrammableStage")] #[doc = "Change the `compute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "compute")] pub fn set_compute(this: &GpuComputePipelineDescriptor, val: &GpuProgrammableStage); } #[cfg(web_sys_unstable_apis)] impl GpuComputePipelineDescriptor { #[cfg(feature = "GpuProgrammableStage")] #[doc = "Construct a new `GpuComputePipelineDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(layout: &::wasm_bindgen::JsValue, compute: &GpuProgrammableStage) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_layout(layout); ret.set_compute(compute); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuProgrammableStage")] #[deprecated = "Use `set_compute()` instead."] pub fn compute(&mut self, val: &GpuProgrammableStage) -> &mut Self { self.set_compute(val); self } } web-sys-0.3.81/src/features/gen_GpuCopyExternalImageDestInfo.rs000064400000000000000000000212061046102023000226030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageDestInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCopyExternalImageDestInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCopyExternalImageDestInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Get the `aspect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "aspect")] pub fn get_aspect(this: &GpuCopyExternalImageDestInfo) -> Option; #[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: `GpuCopyExternalImageDestInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "aspect")] pub fn set_aspect(this: &GpuCopyExternalImageDestInfo, val: GpuTextureAspect); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mipLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mipLevel")] pub fn get_mip_level(this: &GpuCopyExternalImageDestInfo) -> Option; #[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: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mipLevel")] pub fn set_mip_level(this: &GpuCopyExternalImageDestInfo, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &GpuCopyExternalImageDestInfo) -> ::wasm_bindgen::JsValue; #[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: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &GpuCopyExternalImageDestInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[doc = "Get the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "texture")] pub fn get_texture(this: &GpuCopyExternalImageDestInfo) -> GpuTexture; #[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: `GpuCopyExternalImageDestInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "texture")] pub fn set_texture(this: &GpuCopyExternalImageDestInfo, val: &GpuTexture); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "premultipliedAlpha")] pub fn get_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "premultipliedAlpha")] pub fn set_premultiplied_alpha(this: &GpuCopyExternalImageDestInfo, val: bool); } #[cfg(web_sys_unstable_apis)] impl GpuCopyExternalImageDestInfo { #[cfg(feature = "GpuTexture")] #[doc = "Construct a new `GpuCopyExternalImageDestInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `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://wasm-bindgen.github.io/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.set_texture(texture); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[deprecated = "Use `set_aspect()` instead."] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { self.set_aspect(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mip_level()` instead."] pub fn mip_level(&mut self, val: u32) -> &mut Self { self.set_mip_level(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_origin(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[deprecated = "Use `set_texture()` instead."] pub fn texture(&mut self, val: &GpuTexture) -> &mut Self { self.set_texture(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_premultiplied_alpha()` instead."] pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self { self.set_premultiplied_alpha(val); self } } web-sys-0.3.81/src/features/gen_GpuCopyExternalImageSourceInfo.rs000064400000000000000000000130421046102023000231430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCopyExternalImageSourceInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuCopyExternalImageSourceInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuCopyExternalImageSourceInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `flipY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "flipY")] pub fn get_flip_y(this: &GpuCopyExternalImageSourceInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `flipY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "flipY")] pub fn set_flip_y(this: &GpuCopyExternalImageSourceInfo, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &GpuCopyExternalImageSourceInfo) -> ::wasm_bindgen::JsValue; #[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: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &GpuCopyExternalImageSourceInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &GpuCopyExternalImageSourceInfo) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &GpuCopyExternalImageSourceInfo, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl GpuCopyExternalImageSourceInfo { #[doc = "Construct a new `GpuCopyExternalImageSourceInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageSourceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(source: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_source(source); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_flip_y()` instead."] pub fn flip_y(&mut self, val: bool) -> &mut Self { self.set_flip_y(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_origin(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_source(val); self } } web-sys-0.3.81/src/features/gen_GpuCullMode.rs000064400000000000000000000011601046102023000172700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuCullMode { None = "none", Front = "front", Back = "back", } web-sys-0.3.81/src/features/gen_GpuDepthStencilState.rs000064400000000000000000000375761046102023000211770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUDepthStencilState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuDepthStencilState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDepthStencilState; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthBias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthBias")] pub fn get_depth_bias(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthBias")] pub fn set_depth_bias(this: &GpuDepthStencilState, val: i32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthBiasClamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthBiasClamp")] pub fn get_depth_bias_clamp(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthBiasClamp")] pub fn set_depth_bias_clamp(this: &GpuDepthStencilState, val: f32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthBiasSlopeScale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthBiasSlopeScale")] pub fn get_depth_bias_slope_scale(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthBiasSlopeScale")] pub fn set_depth_bias_slope_scale(this: &GpuDepthStencilState, val: f32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[doc = "Get the `depthCompare` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthCompare")] pub fn get_depth_compare(this: &GpuDepthStencilState) -> Option; #[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`, `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthCompare")] pub fn set_depth_compare(this: &GpuDepthStencilState, val: GpuCompareFunction); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthWriteEnabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthWriteEnabled")] pub fn get_depth_write_enabled(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthWriteEnabled")] pub fn set_depth_write_enabled(this: &GpuDepthStencilState, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuDepthStencilState) -> GpuTextureFormat; #[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: `GpuDepthStencilState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuDepthStencilState, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[doc = "Get the `stencilBack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilBack")] pub fn get_stencil_back(this: &GpuDepthStencilState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[doc = "Change the `stencilBack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilBack")] pub fn set_stencil_back(this: &GpuDepthStencilState, val: &GpuStencilFaceState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[doc = "Get the `stencilFront` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilFront")] pub fn get_stencil_front(this: &GpuDepthStencilState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[doc = "Change the `stencilFront` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilFront")] pub fn set_stencil_front(this: &GpuDepthStencilState, val: &GpuStencilFaceState); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencilReadMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilReadMask")] pub fn get_stencil_read_mask(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilReadMask")] pub fn set_stencil_read_mask(this: &GpuDepthStencilState, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencilWriteMask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilWriteMask")] pub fn get_stencil_write_mask(this: &GpuDepthStencilState) -> Option; #[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: `GpuDepthStencilState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilWriteMask")] pub fn set_stencil_write_mask(this: &GpuDepthStencilState, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuDepthStencilState { #[cfg(feature = "GpuTextureFormat")] #[doc = "Construct a new `GpuDepthStencilState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `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://wasm-bindgen.github.io/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.set_format(format); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_bias()` instead."] pub fn depth_bias(&mut self, val: i32) -> &mut Self { self.set_depth_bias(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_bias_clamp()` instead."] pub fn depth_bias_clamp(&mut self, val: f32) -> &mut Self { self.set_depth_bias_clamp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_bias_slope_scale()` instead."] pub fn depth_bias_slope_scale(&mut self, val: f32) -> &mut Self { self.set_depth_bias_slope_scale(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[deprecated = "Use `set_depth_compare()` instead."] pub fn depth_compare(&mut self, val: GpuCompareFunction) -> &mut Self { self.set_depth_compare(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_write_enabled()` instead."] pub fn depth_write_enabled(&mut self, val: bool) -> &mut Self { self.set_depth_write_enabled(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[deprecated = "Use `set_stencil_back()` instead."] pub fn stencil_back(&mut self, val: &GpuStencilFaceState) -> &mut Self { self.set_stencil_back(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilFaceState")] #[deprecated = "Use `set_stencil_front()` instead."] pub fn stencil_front(&mut self, val: &GpuStencilFaceState) -> &mut Self { self.set_stencil_front(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil_read_mask()` instead."] pub fn stencil_read_mask(&mut self, val: u32) -> &mut Self { self.set_stencil_read_mask(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil_write_mask()` instead."] pub fn stencil_write_mask(&mut self, val: u32) -> &mut Self { self.set_stencil_write_mask(val); self } } web-sys-0.3.81/src/features/gen_GpuDevice.rs000064400000000000000000000620621046102023000167730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedFeatures")] # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = features)] #[doc = "Getter for the `features` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/features)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn features(this: &GpuDevice) -> GpuSupportedFeatures; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSupportedLimits")] # [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`, `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn limits(this: &GpuDevice) -> GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAdapterInfo")] # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = adapterInfo)] #[doc = "Getter for the `adapterInfo` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapterInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuAdapterInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn adapter_info(this: &GpuDevice) -> GpuAdapterInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueue")] # [wasm_bindgen (structural , method , getter , js_class = "GPUDevice" , js_name = queue)] #[doc = "Getter for the `queue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/queue)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuDevice) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuDevice, value: &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://wasm-bindgen.github.io/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 (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_bind_group_layout( this: &GpuDevice, descriptor: &GpuBindGroupLayoutDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_buffer( this: &GpuDevice, descriptor: &GpuBufferDescriptor, ) -> Result; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_compute_pipeline( this: &GpuDevice, descriptor: &GpuComputePipelineDescriptor, ) -> GpuComputePipeline; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuComputePipelineDescriptor")] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createComputePipelineAsync)] #[doc = "The `createComputePipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipelineAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_compute_pipeline_async( this: &GpuDevice, descriptor: &GpuComputePipelineDescriptor, ) -> ::js_sys::Promise; #[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://wasm-bindgen.github.io/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 = "GpuQuerySet", feature = "GpuQuerySetDescriptor",))] # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = createQuerySet)] #[doc = "The `createQuerySet()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createQuerySet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQuerySet`, `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_query_set( this: &GpuDevice, descriptor: &GpuQuerySetDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuRenderBundleEncoder", feature = "GpuRenderBundleEncoderDescriptor", ))] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_render_bundle_encoder( this: &GpuDevice, descriptor: &GpuRenderBundleEncoderDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_render_pipeline( this: &GpuDevice, descriptor: &GpuRenderPipelineDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPipelineDescriptor")] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = createRenderPipelineAsync)] #[doc = "The `createRenderPipelineAsync()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipelineAsync)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_render_pipeline_async( this: &GpuDevice, descriptor: &GpuRenderPipelineDescriptor, ) -> ::js_sys::Promise; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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 (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_texture( this: &GpuDevice, descriptor: &GpuTextureDescriptor, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUDevice" , js_name = destroy)] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/destroy)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuDevice); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExternalTexture", feature = "GpuExternalTextureDescriptor", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUDevice" , js_name = importExternalTexture)] #[doc = "The `importExternalTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/importExternalTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuExternalTexture`, `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn import_external_texture( this: &GpuDevice, descriptor: &GpuExternalTextureDescriptor, ) -> Result; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter); } web-sys-0.3.81/src/features/gen_GpuDeviceDescriptor.rs000064400000000000000000000162161046102023000210320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuDeviceDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuDeviceDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueueDescriptor")] #[doc = "Get the `defaultQueue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "defaultQueue")] pub fn get_default_queue(this: &GpuDeviceDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueueDescriptor")] #[doc = "Change the `defaultQueue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "defaultQueue")] pub fn set_default_queue(this: &GpuDeviceDescriptor, val: &GpuQueueDescriptor); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requiredFeatures` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requiredFeatures")] pub fn get_required_features(this: &GpuDeviceDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requiredFeatures` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requiredFeatures")] pub fn set_required_features(this: &GpuDeviceDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requiredLimits` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requiredLimits")] pub fn get_required_limits(this: &GpuDeviceDescriptor) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requiredLimits` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requiredLimits")] pub fn set_required_limits(this: &GpuDeviceDescriptor, val: &::js_sys::Object); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueueDescriptor")] #[deprecated = "Use `set_default_queue()` instead."] pub fn default_queue(&mut self, val: &GpuQueueDescriptor) -> &mut Self { self.set_default_queue(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_required_features()` instead."] pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_required_features(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_required_limits()` instead."] pub fn required_limits(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_required_limits(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuDeviceDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuDeviceLostInfo.rs000064400000000000000000000046351046102023000204530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuDeviceLostInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDeviceLostReason")] # [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , 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/GPUDeviceLostInfo/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`, `GpuDeviceLostReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reason(this: &GpuDeviceLostInfo) -> GpuDeviceLostReason; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuDeviceLostInfo) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_GpuDeviceLostReason.rs000064400000000000000000000012031046102023000207730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuDeviceLostReason` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuDeviceLostReason { Unknown = "unknown", Destroyed = "destroyed", } web-sys-0.3.81/src/features/gen_GpuError.rs000064400000000000000000000030161046102023000166570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUError , typescript_type = "GPUError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuError; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUError" , 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/GPUError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn message(this: &GpuError) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_GpuErrorFilter.rs000064400000000000000000000012331046102023000200240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuErrorFilter { Validation = "validation", OutOfMemory = "out-of-memory", Internal = "internal", } web-sys-0.3.81/src/features/gen_GpuExtent3dDict.rs000064400000000000000000000124101046102023000200660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExtent3dDict; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthOrArrayLayers` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthOrArrayLayers")] pub fn get_depth_or_array_layers(this: &GpuExtent3dDict) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthOrArrayLayers` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthOrArrayLayers")] pub fn set_depth_or_array_layers(this: &GpuExtent3dDict, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &GpuExtent3dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &GpuExtent3dDict, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &GpuExtent3dDict) -> u32; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &GpuExtent3dDict, val: u32); } #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(width: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_width(width); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_or_array_layers()` instead."] pub fn depth_or_array_layers(&mut self, val: u32) -> &mut Self { self.set_depth_or_array_layers(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: u32) -> &mut Self { self.set_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: u32) -> &mut Self { self.set_width(val); self } } web-sys-0.3.81/src/features/gen_GpuExternalTexture.rs000064400000000000000000000045261046102023000207400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTexture , typescript_type = "GPUExternalTexture")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTexture` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUExternalTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTexture; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , 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/GPUExternalTexture/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuExternalTexture) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , 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/GPUExternalTexture/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuExternalTexture, value: &str); } web-sys-0.3.81/src/features/gen_GpuExternalTextureBindingLayout.rs000064400000000000000000000030731046102023000234250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureBindingLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureBindingLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTextureBindingLayout; } #[cfg(web_sys_unstable_apis)] impl GpuExternalTextureBindingLayout { #[doc = "Construct a new `GpuExternalTextureBindingLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] impl Default for GpuExternalTextureBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuExternalTextureDescriptor.rs000064400000000000000000000102171046102023000227710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUExternalTextureDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuExternalTextureDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuExternalTextureDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuExternalTextureDescriptor) -> Option<::alloc::string::String>; #[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: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuExternalTextureDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &GpuExternalTextureDescriptor) -> ::js_sys::Object; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &GpuExternalTextureDescriptor, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl GpuExternalTextureDescriptor { #[doc = "Construct a new `GpuExternalTextureDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(source: &::js_sys::Object) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_source(source); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_source(val); self } } web-sys-0.3.81/src/features/gen_GpuFeatureName.rs000064400000000000000000000025561046102023000177720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuFeatureName` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFeatureName`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFeatureName { DepthClipControl = "depth-clip-control", Depth32floatStencil8 = "depth32float-stencil8", TextureCompressionBc = "texture-compression-bc", TextureCompressionBcSliced3d = "texture-compression-bc-sliced-3d", TextureCompressionEtc2 = "texture-compression-etc2", TextureCompressionAstc = "texture-compression-astc", TextureCompressionAstcSliced3d = "texture-compression-astc-sliced-3d", TimestampQuery = "timestamp-query", IndirectFirstInstance = "indirect-first-instance", ShaderF16 = "shader-f16", Rg11b10ufloatRenderable = "rg11b10ufloat-renderable", Bgra8unormStorage = "bgra8unorm-storage", Float32Filterable = "float32-filterable", Float32Blendable = "float32-blendable", ClipDistances = "clip-distances", DualSourceBlending = "dual-source-blending", } web-sys-0.3.81/src/features/gen_GpuFilterMode.rs000064400000000000000000000011531046102023000176200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFilterMode { Nearest = "nearest", Linear = "linear", } web-sys-0.3.81/src/features/gen_GpuFragmentState.rs000064400000000000000000000157141046102023000203420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUFragmentState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuFragmentState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuFragmentState; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "constants")] pub fn get_constants(this: &GpuFragmentState) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "constants")] pub fn set_constants(this: &GpuFragmentState, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] pub fn get_entry_point(this: &GpuFragmentState) -> Option<::alloc::string::String>; #[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: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entryPoint")] pub fn set_entry_point(this: &GpuFragmentState, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Get the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "module")] pub fn get_module(this: &GpuFragmentState) -> GpuShaderModule; #[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: `GpuFragmentState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "module")] pub fn set_module(this: &GpuFragmentState, val: &GpuShaderModule); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `targets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "targets")] pub fn get_targets(this: &GpuFragmentState) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `targets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "targets")] pub fn set_targets(this: &GpuFragmentState, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuFragmentState { #[cfg(feature = "GpuShaderModule")] #[doc = "Construct a new `GpuFragmentState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(module: &GpuShaderModule, targets: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_module(module); ret.set_targets(targets); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_constants()` instead."] pub fn constants(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_constants(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entry_point()` instead."] pub fn entry_point(&mut self, val: &str) -> &mut Self { self.set_entry_point(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[deprecated = "Use `set_module()` instead."] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { self.set_module(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_targets()` instead."] pub fn targets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_targets(val); self } } web-sys-0.3.81/src/features/gen_GpuFrontFace.rs000064400000000000000000000011301046102023000174300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuFrontFace { Ccw = "ccw", Cw = "cw", } web-sys-0.3.81/src/features/gen_GpuIndexFormat.rs000064400000000000000000000011541046102023000200070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuIndexFormat { Uint16 = "uint16", Uint32 = "uint32", } web-sys-0.3.81/src/features/gen_GpuInternalError.rs000064400000000000000000000032031046102023000203520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = GpuError , extends = :: js_sys :: Object , js_name = GPUInternalError , typescript_type = "GPUInternalError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuInternalError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUInternalError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuInternalError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuInternalError; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "GPUInternalError")] #[doc = "The `new GpuInternalError(..)` constructor, creating a new instance of `GpuInternalError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUInternalError/GPUInternalError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuInternalError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(message: &str) -> Result; } web-sys-0.3.81/src/features/gen_GpuLoadOp.rs000064400000000000000000000011271046102023000167450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuLoadOp { Load = "load", Clear = "clear", } web-sys-0.3.81/src/features/gen_GpuMipmapFilterMode.rs000064400000000000000000000011751046102023000207700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuMipmapFilterMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuMipmapFilterMode { Nearest = "nearest", Linear = "linear", } web-sys-0.3.81/src/features/gen_GpuMultisampleState.rs000064400000000000000000000127051046102023000210700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUMultisampleState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuMultisampleState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuMultisampleState; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `alphaToCoverageEnabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alphaToCoverageEnabled")] pub fn get_alpha_to_coverage_enabled(this: &GpuMultisampleState) -> Option; #[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: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alphaToCoverageEnabled")] pub fn set_alpha_to_coverage_enabled(this: &GpuMultisampleState, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "count")] pub fn get_count(this: &GpuMultisampleState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "count")] pub fn set_count(this: &GpuMultisampleState, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mask")] pub fn get_mask(this: &GpuMultisampleState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mask")] pub fn set_mask(this: &GpuMultisampleState, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuMultisampleState { #[doc = "Construct a new `GpuMultisampleState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_alpha_to_coverage_enabled()` instead."] pub fn alpha_to_coverage_enabled(&mut self, val: bool) -> &mut Self { self.set_alpha_to_coverage_enabled(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_count()` instead."] pub fn count(&mut self, val: u32) -> &mut Self { self.set_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mask()` instead."] pub fn mask(&mut self, val: u32) -> &mut Self { self.set_mask(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuMultisampleState { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuObjectDescriptorBase.rs000064400000000000000000000054711046102023000216350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuObjectDescriptorBase; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuObjectDescriptorBase) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuObjectDescriptorBase, val: &str); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuObjectDescriptorBase { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuOrigin2dDict.rs000064400000000000000000000076031046102023000200550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOrigin2dDict; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &GpuOrigin2dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &GpuOrigin2dDict, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &GpuOrigin2dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &GpuOrigin2dDict, val: u32); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: u32) -> &mut Self { self.set_x(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: u32) -> &mut Self { self.set_y(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuOrigin2dDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuOrigin3dDict.rs000064400000000000000000000121471046102023000200550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOrigin3dDict; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &GpuOrigin3dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &GpuOrigin3dDict, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &GpuOrigin3dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &GpuOrigin3dDict, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "z")] pub fn get_z(this: &GpuOrigin3dDict) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "z")] pub fn set_z(this: &GpuOrigin3dDict, val: u32); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: u32) -> &mut Self { self.set_x(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: u32) -> &mut Self { self.set_y(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_z()` instead."] pub fn z(&mut self, val: u32) -> &mut Self { self.set_z(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuOrigin3dDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuOutOfMemoryError.rs000064400000000000000000000032521046102023000210270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = GpuError , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuOutOfMemoryError; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "GPUOutOfMemoryError")] #[doc = "The `new GpuOutOfMemoryError(..)` constructor, creating a new instance of `GpuOutOfMemoryError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUOutOfMemoryError/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(message: &str) -> Result; } web-sys-0.3.81/src/features/gen_GpuPipelineDescriptorBase.rs000064400000000000000000000101761046102023000221720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineDescriptorBase; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuPipelineDescriptorBase) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuPipelineDescriptorBase, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &GpuPipelineDescriptorBase) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &GpuPipelineDescriptorBase, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuPipelineDescriptorBase { #[doc = "Construct a new `GpuPipelineDescriptorBase`."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(layout: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_layout(layout); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } } web-sys-0.3.81/src/features/gen_GpuPipelineError.rs000064400000000000000000000066461046102023000203610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomException , extends = :: js_sys :: Object , js_name = GPUPipelineError , typescript_type = "GPUPipelineError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineError; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorReason")] # [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineError" , 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/GPUPipelineError/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reason(this: &GpuPipelineError) -> GpuPipelineErrorReason; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorInit")] #[wasm_bindgen(catch, constructor, js_class = "GPUPipelineError")] #[doc = "The `new GpuPipelineError(..)` constructor, creating a new instance of `GpuPipelineError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/GPUPipelineError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(options: &GpuPipelineErrorInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorInit")] #[wasm_bindgen(catch, constructor, js_class = "GPUPipelineError")] #[doc = "The `new GpuPipelineError(..)` constructor, creating a new instance of `GpuPipelineError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/GPUPipelineError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_message( message: &str, options: &GpuPipelineErrorInit, ) -> Result; } web-sys-0.3.81/src/features/gen_GpuPipelineErrorInit.rs000064400000000000000000000060041046102023000211710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineErrorInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPipelineErrorInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineErrorInit; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorReason")] #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`, `GpuPipelineErrorReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &GpuPipelineErrorInit) -> GpuPipelineErrorReason; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorReason")] #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`, `GpuPipelineErrorReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &GpuPipelineErrorInit, val: GpuPipelineErrorReason); } #[cfg(web_sys_unstable_apis)] impl GpuPipelineErrorInit { #[cfg(feature = "GpuPipelineErrorReason")] #[doc = "Construct a new `GpuPipelineErrorInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`, `GpuPipelineErrorReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(reason: GpuPipelineErrorReason) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_reason(reason); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPipelineErrorReason")] #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: GpuPipelineErrorReason) -> &mut Self { self.set_reason(val); self } } web-sys-0.3.81/src/features/gen_GpuPipelineErrorReason.rs000064400000000000000000000012201046102023000215100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuPipelineErrorReason` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorReason`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPipelineErrorReason { Validation = "validation", Internal = "internal", } web-sys-0.3.81/src/features/gen_GpuPipelineLayout.rs000064400000000000000000000045101046102023000205310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuPipelineLayout) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuPipelineLayout, value: &str); } web-sys-0.3.81/src/features/gen_GpuPipelineLayoutDescriptor.rs000064400000000000000000000104631046102023000225740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPipelineLayoutDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuPipelineLayoutDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuPipelineLayoutDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bindGroupLayouts")] pub fn get_bind_group_layouts(this: &GpuPipelineLayoutDescriptor) -> ::js_sys::Array; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bindGroupLayouts")] pub fn set_bind_group_layouts( this: &GpuPipelineLayoutDescriptor, val: &::wasm_bindgen::JsValue, ); } #[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://wasm-bindgen.github.io/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.set_bind_group_layouts(bind_group_layouts); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bind_group_layouts()` instead."] pub fn bind_group_layouts(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_bind_group_layouts(val); self } } web-sys-0.3.81/src/features/gen_GpuPowerPreference.rs000064400000000000000000000012201046102023000206540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuPowerPreference { LowPower = "low-power", HighPerformance = "high-performance", } web-sys-0.3.81/src/features/gen_GpuPrimitiveState.rs000064400000000000000000000214651046102023000205470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPrimitiveState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuPrimitiveState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuPrimitiveState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCullMode")] #[doc = "Get the `cullMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCullMode`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cullMode")] pub fn get_cull_mode(this: &GpuPrimitiveState) -> Option; #[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`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cullMode")] pub fn set_cull_mode(this: &GpuPrimitiveState, val: GpuCullMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFrontFace")] #[doc = "Get the `frontFace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frontFace")] pub fn get_front_face(this: &GpuPrimitiveState) -> Option; #[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`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frontFace")] pub fn set_front_face(this: &GpuPrimitiveState, val: GpuFrontFace); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuIndexFormat")] #[doc = "Get the `stripIndexFormat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stripIndexFormat")] pub fn get_strip_index_format(this: &GpuPrimitiveState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuIndexFormat")] #[doc = "Change the `stripIndexFormat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stripIndexFormat")] pub fn set_strip_index_format(this: &GpuPrimitiveState, val: GpuIndexFormat); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveTopology")] #[doc = "Get the `topology` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "topology")] pub fn get_topology(this: &GpuPrimitiveState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveTopology")] #[doc = "Change the `topology` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "topology")] pub fn set_topology(this: &GpuPrimitiveState, val: GpuPrimitiveTopology); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unclippedDepth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unclippedDepth")] pub fn get_unclipped_depth(this: &GpuPrimitiveState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unclippedDepth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unclippedDepth")] pub fn set_unclipped_depth(this: &GpuPrimitiveState, val: bool); } #[cfg(web_sys_unstable_apis)] impl GpuPrimitiveState { #[doc = "Construct a new `GpuPrimitiveState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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")] #[deprecated = "Use `set_cull_mode()` instead."] pub fn cull_mode(&mut self, val: GpuCullMode) -> &mut Self { self.set_cull_mode(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFrontFace")] #[deprecated = "Use `set_front_face()` instead."] pub fn front_face(&mut self, val: GpuFrontFace) -> &mut Self { self.set_front_face(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuIndexFormat")] #[deprecated = "Use `set_strip_index_format()` instead."] pub fn strip_index_format(&mut self, val: GpuIndexFormat) -> &mut Self { self.set_strip_index_format(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveTopology")] #[deprecated = "Use `set_topology()` instead."] pub fn topology(&mut self, val: GpuPrimitiveTopology) -> &mut Self { self.set_topology(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unclipped_depth()` instead."] pub fn unclipped_depth(&mut self, val: bool) -> &mut Self { self.set_unclipped_depth(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuPrimitiveState { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuPrimitiveTopology.rs000064400000000000000000000013621046102023000212750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuProgrammableStage.rs000064400000000000000000000132071046102023000211650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUProgrammableStage)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuProgrammableStage` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuProgrammableStage; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "constants")] pub fn get_constants(this: &GpuProgrammableStage) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "constants")] pub fn set_constants(this: &GpuProgrammableStage, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] pub fn get_entry_point(this: &GpuProgrammableStage) -> Option<::alloc::string::String>; #[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: `GpuProgrammableStage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entryPoint")] pub fn set_entry_point(this: &GpuProgrammableStage, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Get the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "module")] pub fn get_module(this: &GpuProgrammableStage) -> GpuShaderModule; #[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: `GpuProgrammableStage`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "module")] pub fn set_module(this: &GpuProgrammableStage, val: &GpuShaderModule); } #[cfg(web_sys_unstable_apis)] impl GpuProgrammableStage { #[cfg(feature = "GpuShaderModule")] #[doc = "Construct a new `GpuProgrammableStage`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStage`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(module: &GpuShaderModule) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_module(module); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_constants()` instead."] pub fn constants(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_constants(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entry_point()` instead."] pub fn entry_point(&mut self, val: &str) -> &mut Self { self.set_entry_point(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[deprecated = "Use `set_module()` instead."] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { self.set_module(val); self } } web-sys-0.3.81/src/features/gen_GpuQuerySet.rs000064400000000000000000000105421046102023000173510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySet , typescript_type = "GPUQuerySet")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySet` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySet; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueryType")] # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , 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/GPUQuerySet/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuQueryType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &GpuQuerySet) -> GpuQueryType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , js_name = count)] #[doc = "Getter for the `count` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/count)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn count(this: &GpuQuerySet) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUQuerySet" , 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/GPUQuerySet/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQuerySet) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , 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/GPUQuerySet/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQuerySet, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUQuerySet" , js_name = destroy)] #[doc = "The `destroy()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQuerySet/destroy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuQuerySet); } web-sys-0.3.81/src/features/gen_GpuQuerySetDescriptor.rs000064400000000000000000000130041046102023000214040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQuerySetDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQuerySetDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQuerySetDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuQuerySetDescriptor) -> Option<::alloc::string::String>; #[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: `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuQuerySetDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "count")] pub fn get_count(this: &GpuQuerySetDescriptor) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `count` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "count")] pub fn set_count(this: &GpuQuerySetDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueryType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &GpuQuerySetDescriptor) -> GpuQueryType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueryType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &GpuQuerySetDescriptor, val: GpuQueryType); } #[cfg(web_sys_unstable_apis)] impl GpuQuerySetDescriptor { #[cfg(feature = "GpuQueryType")] #[doc = "Construct a new `GpuQuerySetDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySetDescriptor`, `GpuQueryType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(count: u32, type_: GpuQueryType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_count(count); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_count()` instead."] pub fn count(&mut self, val: u32) -> &mut Self { self.set_count(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQueryType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: GpuQueryType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_GpuQueryType.rs000064400000000000000000000011621046102023000175350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuQueryType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueryType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuQueryType { Occlusion = "occlusion", Timestamp = "timestamp", } web-sys-0.3.81/src/features/gen_GpuQueue.rs000064400000000000000000001453431046102023000166640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuQueue) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuQueue, value: &str); #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuCopyExternalImageDestInfo", feature = "GpuCopyExternalImageSourceInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_external_image_to_texture_with_u32_sequence( this: &GpuQueue, source: &GpuCopyExternalImageSourceInfo, destination: &GpuCopyExternalImageDestInfo, copy_size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuCopyExternalImageDestInfo", feature = "GpuCopyExternalImageSourceInfo", feature = "GpuExtent3dDict", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)] #[doc = "The `copyExternalImageToTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuExtent3dDict`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict( this: &GpuQueue, source: &GpuCopyExternalImageSourceInfo, destination: &GpuCopyExternalImageDestInfo, copy_size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = onSubmittedWorkDone)] #[doc = "The `onSubmittedWorkDone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/onSubmittedWorkDone)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_u32_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: u32, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_f64_and_u32( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: f64, size: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_u32_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: u32, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Object, data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Object, data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &[u8], data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &[u8], data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_u32_and_u8_array_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: u32, data: &::js_sys::Uint8Array, data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeBuffer)] #[doc = "The `writeBuffer()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_buffer_with_f64_and_u8_array_and_f64_and_f64( this: &GpuQueue, buffer: &GpuBuffer, buffer_offset: f64, data: &::js_sys::Uint8Array, data_offset: f64, size: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_buffer_source_and_u32_sequence( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &::js_sys::Object, data_layout: &GpuTexelCopyBufferLayout, size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_slice_and_u32_sequence( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &[u8], data_layout: &GpuTexelCopyBufferLayout, size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_array_and_u32_sequence( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &::js_sys::Uint8Array, data_layout: &GpuTexelCopyBufferLayout, size: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &::js_sys::Object, data_layout: &GpuTexelCopyBufferLayout, size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_slice_and_gpu_extent_3d_dict( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &[u8], data_layout: &GpuTexelCopyBufferLayout, size: &GpuExtent3dDict, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "GpuExtent3dDict", feature = "GpuTexelCopyBufferLayout", feature = "GpuTexelCopyTextureInfo", ))] # [wasm_bindgen (catch , method , structural , js_class = "GPUQueue" , js_name = writeTexture)] #[doc = "The `writeTexture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict( this: &GpuQueue, destination: &GpuTexelCopyTextureInfo, data: &::js_sys::Uint8Array, data_layout: &GpuTexelCopyBufferLayout, size: &GpuExtent3dDict, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_GpuQueueDescriptor.rs000064400000000000000000000053751046102023000207230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueueDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuQueueDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuQueueDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuQueueDescriptor) -> Option<::alloc::string::String>; #[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: `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuQueueDescriptor, val: &str); } #[cfg(web_sys_unstable_apis)] impl GpuQueueDescriptor { #[doc = "Construct a new `GpuQueueDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQueueDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuQueueDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuRenderBundle.rs000064400000000000000000000044541046102023000201460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundle) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderBundle, value: &str); } web-sys-0.3.81/src/features/gen_GpuRenderBundleDescriptor.rs000064400000000000000000000055211046102023000222010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuRenderBundleDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuRenderBundleDescriptor, val: &str); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuRenderBundleDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuRenderBundleEncoder.rs000064400000000000000000001120211046102023000214340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderBundleEncoder) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderBundleEncoder, value: &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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finish_with_descriptor( this: &GpuRenderBundleEncoder, descriptor: &GpuRenderBundleDescriptor, ) -> GpuRenderBundle; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group( this: &GpuRenderBundleEncoder, index: u32, bind_group: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuRenderBundleEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length( this: &GpuRenderBundleEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderBundleEncoder, vertex_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count( this: &GpuRenderBundleEncoder, vertex_count: u32, instance_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count_and_first_vertex( this: &GpuRenderBundleEncoder, vertex_count: u32, instance_count: u32, first_vertex: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count_and_first_vertex_and_first_instance( 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderBundleEncoder, index_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count( this: &GpuRenderBundleEncoder, index_count: u32, instance_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index( this: &GpuRenderBundleEncoder, index_count: u32, instance_count: u32, first_index: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex( this: &GpuRenderBundleEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: i32, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance( 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32_and_u32( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64_and_u32( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32_and_f64( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64_and_f64( this: &GpuRenderBundleEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, size: 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: u32, size: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_u32( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, size: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: u32, size: f64, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_f64( this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, size: f64, ); } web-sys-0.3.81/src/features/gen_GpuRenderBundleEncoderDescriptor.rs000064400000000000000000000243051046102023000235020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderBundleEncoderDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuRenderBundleEncoderDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuRenderBundleEncoderDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorFormats")] pub fn get_color_formats(this: &GpuRenderBundleEncoderDescriptor) -> ::js_sys::Array; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorFormats")] pub fn set_color_formats( this: &GpuRenderBundleEncoderDescriptor, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthStencilFormat")] pub fn get_depth_stencil_format( this: &GpuRenderBundleEncoderDescriptor, ) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthStencilFormat")] pub fn set_depth_stencil_format(this: &GpuRenderBundleEncoderDescriptor, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleCount")] pub fn get_sample_count(this: &GpuRenderBundleEncoderDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleCount")] pub fn set_sample_count(this: &GpuRenderBundleEncoderDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthReadOnly` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthReadOnly")] pub fn get_depth_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthReadOnly` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthReadOnly")] pub fn set_depth_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencilReadOnly` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilReadOnly")] pub fn get_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilReadOnly` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilReadOnly")] pub fn set_stencil_read_only(this: &GpuRenderBundleEncoderDescriptor, val: bool); } #[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://wasm-bindgen.github.io/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.set_color_formats(color_formats); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_color_formats()` instead."] pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_color_formats(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_depth_stencil_format()` instead."] pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_depth_stencil_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_count()` instead."] pub fn sample_count(&mut self, val: u32) -> &mut Self { self.set_sample_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_read_only()` instead."] pub fn depth_read_only(&mut self, val: bool) -> &mut Self { self.set_depth_read_only(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil_read_only()` instead."] pub fn stencil_read_only(&mut self, val: bool) -> &mut Self { self.set_stencil_read_only(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPassColorAttachment.rs000064400000000000000000000247351046102023000226570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassColorAttachment)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassColorAttachment` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassColorAttachment; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `clearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clearValue")] pub fn get_clear_value(this: &GpuRenderPassColorAttachment) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clearValue")] pub fn set_clear_value(this: &GpuRenderPassColorAttachment, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthSlice` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthSlice")] pub fn get_depth_slice(this: &GpuRenderPassColorAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthSlice` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthSlice")] pub fn set_depth_slice(this: &GpuRenderPassColorAttachment, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Get the `loadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "loadOp")] pub fn get_load_op(this: &GpuRenderPassColorAttachment) -> GpuLoadOp; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Change the `loadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "loadOp")] pub fn set_load_op(this: &GpuRenderPassColorAttachment, val: GpuLoadOp); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Get the `resolveTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "resolveTarget")] pub fn get_resolve_target(this: &GpuRenderPassColorAttachment) -> Option; #[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: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "resolveTarget")] pub fn set_resolve_target(this: &GpuRenderPassColorAttachment, val: &GpuTextureView); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Get the `storeOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "storeOp")] pub fn get_store_op(this: &GpuRenderPassColorAttachment) -> GpuStoreOp; #[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: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "storeOp")] pub fn set_store_op(this: &GpuRenderPassColorAttachment, val: GpuStoreOp); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &GpuRenderPassColorAttachment) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &GpuRenderPassColorAttachment, val: &GpuTextureView); } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassColorAttachment { #[cfg(all( feature = "GpuLoadOp", feature = "GpuStoreOp", feature = "GpuTextureView", ))] #[doc = "Construct a new `GpuRenderPassColorAttachment`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassColorAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(load_op: GpuLoadOp, store_op: GpuStoreOp, view: &GpuTextureView) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_load_op(load_op); ret.set_store_op(store_op); ret.set_view(view); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_clear_value()` instead."] pub fn clear_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_clear_value(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_slice()` instead."] pub fn depth_slice(&mut self, val: u32) -> &mut Self { self.set_depth_slice(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[deprecated = "Use `set_load_op()` instead."] pub fn load_op(&mut self, val: GpuLoadOp) -> &mut Self { self.set_load_op(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[deprecated = "Use `set_resolve_target()` instead."] pub fn resolve_target(&mut self, val: &GpuTextureView) -> &mut Self { self.set_resolve_target(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[deprecated = "Use `set_store_op()` instead."] pub fn store_op(&mut self, val: GpuStoreOp) -> &mut Self { self.set_store_op(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: &GpuTextureView) -> &mut Self { self.set_view(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPassDepthStencilAttachment.rs000064400000000000000000000360401046102023000241570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassDepthStencilAttachment)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassDepthStencilAttachment` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassDepthStencilAttachment; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthClearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthClearValue")] pub fn get_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthClearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthClearValue")] pub fn set_depth_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: f32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Get the `depthLoadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthLoadOp")] pub fn get_depth_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Change the `depthLoadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthLoadOp")] pub fn set_depth_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthReadOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthReadOnly")] pub fn get_depth_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthReadOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthReadOnly")] pub fn set_depth_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Get the `depthStoreOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthStoreOp")] pub fn get_depth_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[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: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthStoreOp")] pub fn set_depth_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencilClearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilClearValue")] pub fn get_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilClearValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilClearValue")] pub fn set_stencil_clear_value(this: &GpuRenderPassDepthStencilAttachment, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Get the `stencilLoadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilLoadOp")] pub fn get_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[doc = "Change the `stencilLoadOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`, `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilLoadOp")] pub fn set_stencil_load_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuLoadOp); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencilReadOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilReadOnly")] pub fn get_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencilReadOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilReadOnly")] pub fn set_stencil_read_only(this: &GpuRenderPassDepthStencilAttachment, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[doc = "Get the `stencilStoreOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencilStoreOp")] pub fn get_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment) -> Option; #[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: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencilStoreOp")] pub fn set_stencil_store_op(this: &GpuRenderPassDepthStencilAttachment, val: GpuStoreOp); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &GpuRenderPassDepthStencilAttachment) -> GpuTextureView; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[doc = "Change the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &GpuRenderPassDepthStencilAttachment, val: &GpuTextureView); } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassDepthStencilAttachment { #[cfg(feature = "GpuTextureView")] #[doc = "Construct a new `GpuRenderPassDepthStencilAttachment`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(view: &GpuTextureView) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_view(view); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_clear_value()` instead."] pub fn depth_clear_value(&mut self, val: f32) -> &mut Self { self.set_depth_clear_value(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[deprecated = "Use `set_depth_load_op()` instead."] pub fn depth_load_op(&mut self, val: GpuLoadOp) -> &mut Self { self.set_depth_load_op(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_read_only()` instead."] pub fn depth_read_only(&mut self, val: bool) -> &mut Self { self.set_depth_read_only(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[deprecated = "Use `set_depth_store_op()` instead."] pub fn depth_store_op(&mut self, val: GpuStoreOp) -> &mut Self { self.set_depth_store_op(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil_clear_value()` instead."] pub fn stencil_clear_value(&mut self, val: u32) -> &mut Self { self.set_stencil_clear_value(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuLoadOp")] #[deprecated = "Use `set_stencil_load_op()` instead."] pub fn stencil_load_op(&mut self, val: GpuLoadOp) -> &mut Self { self.set_stencil_load_op(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil_read_only()` instead."] pub fn stencil_read_only(&mut self, val: bool) -> &mut Self { self.set_stencil_read_only(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStoreOp")] #[deprecated = "Use `set_stencil_store_op()` instead."] pub fn stencil_store_op(&mut self, val: GpuStoreOp) -> &mut Self { self.set_stencil_store_op(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: &GpuTextureView) -> &mut Self { self.set_view(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPassDescriptor.rs000064400000000000000000000252711046102023000217020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuRenderPassDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuRenderPassDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorAttachments")] pub fn get_color_attachments(this: &GpuRenderPassDescriptor) -> ::js_sys::Array; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorAttachments")] pub fn set_color_attachments(this: &GpuRenderPassDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[doc = "Get the `depthStencilAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthStencilAttachment")] pub fn get_depth_stencil_attachment( this: &GpuRenderPassDescriptor, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[doc = "Change the `depthStencilAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachment`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthStencilAttachment")] pub fn set_depth_stencil_attachment( this: &GpuRenderPassDescriptor, val: &GpuRenderPassDepthStencilAttachment, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `maxDrawCount` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "maxDrawCount")] pub fn get_max_draw_count(this: &GpuRenderPassDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `maxDrawCount` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "maxDrawCount")] pub fn set_max_draw_count(this: &GpuRenderPassDescriptor, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Get the `occlusionQuerySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "occlusionQuerySet")] pub fn get_occlusion_query_set(this: &GpuRenderPassDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Change the `occlusionQuerySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "occlusionQuerySet")] pub fn set_occlusion_query_set(this: &GpuRenderPassDescriptor, val: &GpuQuerySet); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassTimestampWrites")] #[doc = "Get the `timestampWrites` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestampWrites")] pub fn get_timestamp_writes( this: &GpuRenderPassDescriptor, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassTimestampWrites")] #[doc = "Change the `timestampWrites` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestampWrites")] pub fn set_timestamp_writes(this: &GpuRenderPassDescriptor, val: &GpuRenderPassTimestampWrites); } #[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://wasm-bindgen.github.io/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.set_color_attachments(color_attachments); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_color_attachments()` instead."] pub fn color_attachments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_color_attachments(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[deprecated = "Use `set_depth_stencil_attachment()` instead."] pub fn depth_stencil_attachment( &mut self, val: &GpuRenderPassDepthStencilAttachment, ) -> &mut Self { self.set_depth_stencil_attachment(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_max_draw_count()` instead."] pub fn max_draw_count(&mut self, val: f64) -> &mut Self { self.set_max_draw_count(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[deprecated = "Use `set_occlusion_query_set()` instead."] pub fn occlusion_query_set(&mut self, val: &GpuQuerySet) -> &mut Self { self.set_occlusion_query_set(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuRenderPassTimestampWrites")] #[deprecated = "Use `set_timestamp_writes()` instead."] pub fn timestamp_writes(&mut self, val: &GpuRenderPassTimestampWrites) -> &mut Self { self.set_timestamp_writes(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPassEncoder.rs000064400000000000000000001240471046102023000211440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPassEncoder, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)] #[doc = "The `beginOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = end)] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/end)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(this: &GpuRenderPassEncoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)] #[doc = "The `endOcclusionQuery()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end_occlusion_query(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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_blend_constant_with_f64_sequence( this: &GpuRenderPassEncoder, color: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuColorDict")] # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)] #[doc = "The `setBlendConstant()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_blend_constant_with_gpu_color_dict( this: &GpuRenderPassEncoder, color: &GpuColorDict, ) -> Result<(), JsValue>; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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)] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group( this: &GpuRenderPassEncoder, index: u32, bind_group: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_sequence( this: &GpuRenderPassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length( this: &GpuRenderPassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: u32, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length( this: &GpuRenderPassEncoder, index: u32, bind_group: Option<&GpuBindGroup>, dynamic_offsets_data: &[u32], dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroup")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/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: Option<&GpuBindGroup>, dynamic_offsets_data: &::js_sys::Uint32Array, dynamic_offsets_data_start: f64, dynamic_offsets_data_length: u32, ) -> Result<(), JsValue>; #[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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw(this: &GpuRenderPassEncoder, vertex_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count( this: &GpuRenderPassEncoder, vertex_count: u32, instance_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count_and_first_vertex( this: &GpuRenderPassEncoder, vertex_count: u32, instance_count: u32, first_vertex: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_with_instance_count_and_first_vertex_and_first_instance( 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count( this: &GpuRenderPassEncoder, index_count: u32, instance_count: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index( this: &GpuRenderPassEncoder, index_count: u32, instance_count: u32, first_index: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex( this: &GpuRenderPassEncoder, index_count: u32, instance_count: u32, first_index: u32, base_vertex: i32, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance( 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/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(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32_and_u32( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64_and_u32( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, size: u32, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_u32_and_f64( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: u32, size: f64, ); #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))] # [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`, `GpuIndexFormat`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_index_buffer_with_f64_and_f64( this: &GpuRenderPassEncoder, buffer: &GpuBuffer, index_format: GpuIndexFormat, offset: f64, size: 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: u32, size: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_u32( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, size: 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_u32_and_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: u32, size: f64, ); #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_vertex_buffer_with_f64_and_f64( this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>, offset: f64, size: f64, ); } web-sys-0.3.81/src/features/gen_GpuRenderPassLayout.rs000064400000000000000000000160401046102023000210330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuRenderPassLayout) -> Option<::alloc::string::String>; #[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: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuRenderPassLayout, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `colorFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorFormats")] pub fn get_color_formats(this: &GpuRenderPassLayout) -> ::js_sys::Array; #[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: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorFormats")] pub fn set_color_formats(this: &GpuRenderPassLayout, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get the `depthStencilFormat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthStencilFormat")] pub fn get_depth_stencil_format(this: &GpuRenderPassLayout) -> Option; #[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: `GpuRenderPassLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthStencilFormat")] pub fn set_depth_stencil_format(this: &GpuRenderPassLayout, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sampleCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleCount")] pub fn get_sample_count(this: &GpuRenderPassLayout) -> Option; #[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: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleCount")] pub fn set_sample_count(this: &GpuRenderPassLayout, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassLayout { #[doc = "Construct a new `GpuRenderPassLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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.set_color_formats(color_formats); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_color_formats()` instead."] pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_color_formats(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_depth_stencil_format()` instead."] pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_depth_stencil_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_count()` instead."] pub fn sample_count(&mut self, val: u32) -> &mut Self { self.set_sample_count(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPassTimestampWrites.rs000064400000000000000000000137301046102023000227220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassTimestampWrites)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuRenderPassTimestampWrites` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPassTimestampWrites; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `beginningOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "beginningOfPassWriteIndex")] pub fn get_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `beginningOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "beginningOfPassWriteIndex")] pub fn set_beginning_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `endOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "endOfPassWriteIndex")] pub fn get_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `endOfPassWriteIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "endOfPassWriteIndex")] pub fn set_end_of_pass_write_index(this: &GpuRenderPassTimestampWrites, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Get the `querySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "querySet")] pub fn get_query_set(this: &GpuRenderPassTimestampWrites) -> GpuQuerySet; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[doc = "Change the `querySet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "querySet")] pub fn set_query_set(this: &GpuRenderPassTimestampWrites, val: &GpuQuerySet); } #[cfg(web_sys_unstable_apis)] impl GpuRenderPassTimestampWrites { #[cfg(feature = "GpuQuerySet")] #[doc = "Construct a new `GpuRenderPassTimestampWrites`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(query_set: &GpuQuerySet) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_query_set(query_set); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_beginning_of_pass_write_index()` instead."] pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self { self.set_beginning_of_pass_write_index(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_end_of_pass_write_index()` instead."] pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self { self.set_end_of_pass_write_index(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuQuerySet")] #[deprecated = "Use `set_query_set()` instead."] pub fn query_set(&mut self, val: &GpuQuerySet) -> &mut Self { self.set_query_set(val); self } } web-sys-0.3.81/src/features/gen_GpuRenderPipeline.rs000064400000000000000000000062311046102023000204750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuRenderPipeline) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuRenderPipeline, value: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBindGroupLayout")] # [wasm_bindgen (method , structural , js_class = "GPURenderPipeline" , js_name = getBindGroupLayout)] #[doc = "The `getBindGroupLayout()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/getBindGroupLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_bind_group_layout(this: &GpuRenderPipeline, index: u32) -> GpuBindGroupLayout; } web-sys-0.3.81/src/features/gen_GpuRenderPipelineDescriptor.rs000064400000000000000000000300141046102023000225300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRenderPipelineDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuRenderPipelineDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuRenderPipelineDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &GpuRenderPipelineDescriptor) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &GpuRenderPipelineDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDepthStencilState")] #[doc = "Get the `depthStencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthStencil")] pub fn get_depth_stencil(this: &GpuRenderPipelineDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDepthStencilState")] #[doc = "Change the `depthStencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthStencil")] pub fn set_depth_stencil(this: &GpuRenderPipelineDescriptor, val: &GpuDepthStencilState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFragmentState")] #[doc = "Get the `fragment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "fragment")] pub fn get_fragment(this: &GpuRenderPipelineDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFragmentState")] #[doc = "Change the `fragment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuFragmentState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "fragment")] pub fn set_fragment(this: &GpuRenderPipelineDescriptor, val: &GpuFragmentState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMultisampleState")] #[doc = "Get the `multisample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "multisample")] pub fn get_multisample(this: &GpuRenderPipelineDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMultisampleState")] #[doc = "Change the `multisample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMultisampleState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "multisample")] pub fn set_multisample(this: &GpuRenderPipelineDescriptor, val: &GpuMultisampleState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveState")] #[doc = "Get the `primitive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "primitive")] pub fn get_primitive(this: &GpuRenderPipelineDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveState")] #[doc = "Change the `primitive` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "primitive")] pub fn set_primitive(this: &GpuRenderPipelineDescriptor, val: &GpuPrimitiveState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexState")] #[doc = "Get the `vertex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "vertex")] pub fn get_vertex(this: &GpuRenderPipelineDescriptor) -> GpuVertexState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexState")] #[doc = "Change the `vertex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "vertex")] pub fn set_vertex(this: &GpuRenderPipelineDescriptor, val: &GpuVertexState); } #[cfg(web_sys_unstable_apis)] impl GpuRenderPipelineDescriptor { #[cfg(feature = "GpuVertexState")] #[doc = "Construct a new `GpuRenderPipelineDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(layout: &::wasm_bindgen::JsValue, vertex: &GpuVertexState) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_layout(layout); ret.set_vertex(vertex); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuDepthStencilState")] #[deprecated = "Use `set_depth_stencil()` instead."] pub fn depth_stencil(&mut self, val: &GpuDepthStencilState) -> &mut Self { self.set_depth_stencil(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFragmentState")] #[deprecated = "Use `set_fragment()` instead."] pub fn fragment(&mut self, val: &GpuFragmentState) -> &mut Self { self.set_fragment(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMultisampleState")] #[deprecated = "Use `set_multisample()` instead."] pub fn multisample(&mut self, val: &GpuMultisampleState) -> &mut Self { self.set_multisample(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPrimitiveState")] #[deprecated = "Use `set_primitive()` instead."] pub fn primitive(&mut self, val: &GpuPrimitiveState) -> &mut Self { self.set_primitive(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexState")] #[deprecated = "Use `set_vertex()` instead."] pub fn vertex(&mut self, val: &GpuVertexState) -> &mut Self { self.set_vertex(val); self } } web-sys-0.3.81/src/features/gen_GpuRequestAdapterOptions.rs000064400000000000000000000164411046102023000221010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuRequestAdapterOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `featureLevel` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "featureLevel")] pub fn get_feature_level(this: &GpuRequestAdapterOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `featureLevel` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "featureLevel")] pub fn set_feature_level(this: &GpuRequestAdapterOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `forceFallbackAdapter` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "forceFallbackAdapter")] pub fn get_force_fallback_adapter(this: &GpuRequestAdapterOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `forceFallbackAdapter` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "forceFallbackAdapter")] pub fn set_force_fallback_adapter(this: &GpuRequestAdapterOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPowerPreference")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "powerPreference")] pub fn get_power_preference(this: &GpuRequestAdapterOptions) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "powerPreference")] pub fn set_power_preference(this: &GpuRequestAdapterOptions, val: GpuPowerPreference); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `xrCompatible` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "xrCompatible")] pub fn get_xr_compatible(this: &GpuRequestAdapterOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `xrCompatible` field of this object."] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "xrCompatible")] pub fn set_xr_compatible(this: &GpuRequestAdapterOptions, val: bool); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_feature_level()` instead."] pub fn feature_level(&mut self, val: &str) -> &mut Self { self.set_feature_level(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_force_fallback_adapter()` instead."] pub fn force_fallback_adapter(&mut self, val: bool) -> &mut Self { self.set_force_fallback_adapter(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuPowerPreference")] #[deprecated = "Use `set_power_preference()` instead."] pub fn power_preference(&mut self, val: GpuPowerPreference) -> &mut Self { self.set_power_preference(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_xr_compatible()` instead."] pub fn xr_compatible(&mut self, val: bool) -> &mut Self { self.set_xr_compatible(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuRequestAdapterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuSampler.rs000064400000000000000000000043461046102023000172000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuSampler) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuSampler, value: &str); } web-sys-0.3.81/src/features/gen_GpuSamplerBindingLayout.rs000064400000000000000000000060151046102023000216640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSamplerBindingLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSamplerBindingLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSamplerBindingLayout; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSamplerBindingType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`, `GpuSamplerBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &GpuSamplerBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuSamplerBindingType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`, `GpuSamplerBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &GpuSamplerBindingLayout, val: GpuSamplerBindingType); } #[cfg(web_sys_unstable_apis)] impl GpuSamplerBindingLayout { #[doc = "Construct a new `GpuSamplerBindingLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "GpuSamplerBindingType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: GpuSamplerBindingType) -> &mut Self { self.set_type(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuSamplerBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuSamplerBindingType.rs000064400000000000000000000012631046102023000213300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuSamplerBindingType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSamplerBindingType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuSamplerBindingType { Filtering = "filtering", NonFiltering = "non-filtering", Comparison = "comparison", } web-sys-0.3.81/src/features/gen_GpuSamplerDescriptor.rs000064400000000000000000000427131046102023000212370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSamplerDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuSamplerDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuSamplerDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "addressModeU")] pub fn get_address_mode_u(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "addressModeU")] pub fn set_address_mode_u(this: &GpuSamplerDescriptor, val: GpuAddressMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "addressModeV")] pub fn get_address_mode_v(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "addressModeV")] pub fn set_address_mode_v(this: &GpuSamplerDescriptor, val: GpuAddressMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "addressModeW")] pub fn get_address_mode_w(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "addressModeW")] pub fn set_address_mode_w(this: &GpuSamplerDescriptor, val: GpuAddressMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "compare")] pub fn get_compare(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "compare")] pub fn set_compare(this: &GpuSamplerDescriptor, val: GpuCompareFunction); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "lodMaxClamp")] pub fn get_lod_max_clamp(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "lodMaxClamp")] pub fn set_lod_max_clamp(this: &GpuSamplerDescriptor, val: f32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "lodMinClamp")] pub fn get_lod_min_clamp(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "lodMinClamp")] pub fn set_lod_min_clamp(this: &GpuSamplerDescriptor, val: f32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "magFilter")] pub fn get_mag_filter(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "magFilter")] pub fn set_mag_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `maxAnisotropy` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "maxAnisotropy")] pub fn get_max_anisotropy(this: &GpuSamplerDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `maxAnisotropy` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "maxAnisotropy")] pub fn set_max_anisotropy(this: &GpuSamplerDescriptor, val: u16); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "minFilter")] pub fn get_min_filter(this: &GpuSamplerDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "minFilter")] pub fn set_min_filter(this: &GpuSamplerDescriptor, val: GpuFilterMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMipmapFilterMode")] #[doc = "Get the `mipmapFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mipmapFilter")] pub fn get_mipmap_filter(this: &GpuSamplerDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMipmapFilterMode")] #[doc = "Change the `mipmapFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuMipmapFilterMode`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mipmapFilter")] pub fn set_mipmap_filter(this: &GpuSamplerDescriptor, val: GpuMipmapFilterMode); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[deprecated = "Use `set_address_mode_u()` instead."] pub fn address_mode_u(&mut self, val: GpuAddressMode) -> &mut Self { self.set_address_mode_u(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[deprecated = "Use `set_address_mode_v()` instead."] pub fn address_mode_v(&mut self, val: GpuAddressMode) -> &mut Self { self.set_address_mode_v(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuAddressMode")] #[deprecated = "Use `set_address_mode_w()` instead."] pub fn address_mode_w(&mut self, val: GpuAddressMode) -> &mut Self { self.set_address_mode_w(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[deprecated = "Use `set_compare()` instead."] pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { self.set_compare(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_lod_max_clamp()` instead."] pub fn lod_max_clamp(&mut self, val: f32) -> &mut Self { self.set_lod_max_clamp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_lod_min_clamp()` instead."] pub fn lod_min_clamp(&mut self, val: f32) -> &mut Self { self.set_lod_min_clamp(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[deprecated = "Use `set_mag_filter()` instead."] pub fn mag_filter(&mut self, val: GpuFilterMode) -> &mut Self { self.set_mag_filter(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_max_anisotropy()` instead."] pub fn max_anisotropy(&mut self, val: u16) -> &mut Self { self.set_max_anisotropy(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuFilterMode")] #[deprecated = "Use `set_min_filter()` instead."] pub fn min_filter(&mut self, val: GpuFilterMode) -> &mut Self { self.set_min_filter(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuMipmapFilterMode")] #[deprecated = "Use `set_mipmap_filter()` instead."] pub fn mipmap_filter(&mut self, val: GpuMipmapFilterMode) -> &mut Self { self.set_mipmap_filter(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuSamplerDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuShaderModule.rs000064400000000000000000000060461046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuShaderModule) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuShaderModule, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = getCompilationInfo)] #[doc = "The `getCompilationInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/getCompilationInfo)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_GpuShaderModuleCompilationHint.rs000064400000000000000000000103561046102023000231710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUShaderModuleCompilationHint)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuShaderModuleCompilationHint` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModuleCompilationHint; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] pub fn get_entry_point(this: &GpuShaderModuleCompilationHint) -> ::alloc::string::String; #[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: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entryPoint")] pub fn set_entry_point(this: &GpuShaderModuleCompilationHint, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &GpuShaderModuleCompilationHint) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &GpuShaderModuleCompilationHint, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuShaderModuleCompilationHint { #[doc = "Construct a new `GpuShaderModuleCompilationHint`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleCompilationHint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(entry_point: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_entry_point(entry_point); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entry_point()` instead."] pub fn entry_point(&mut self, val: &str) -> &mut Self { self.set_entry_point(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } } web-sys-0.3.81/src/features/gen_GpuShaderModuleDescriptor.rs000064400000000000000000000127701046102023000222100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuShaderModuleDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuShaderModuleDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuShaderModuleDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "code")] pub fn get_code(this: &GpuShaderModuleDescriptor) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "code")] pub fn set_code(this: &GpuShaderModuleDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `compilationHints` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "compilationHints")] pub fn get_compilation_hints(this: &GpuShaderModuleDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `compilationHints` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "compilationHints")] pub fn set_compilation_hints(this: &GpuShaderModuleDescriptor, val: &::wasm_bindgen::JsValue); } #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(code: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_code(code); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_code()` instead."] pub fn code(&mut self, val: &str) -> &mut Self { self.set_code(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_compilation_hints()` instead."] pub fn compilation_hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_compilation_hints(val); self } } web-sys-0.3.81/src/features/gen_GpuStencilFaceState.rs000064400000000000000000000170511046102023000207530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStencilFaceState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStencilFaceState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuStencilFaceState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompareFunction")] #[doc = "Get the `compare` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "compare")] pub fn get_compare(this: &GpuStencilFaceState) -> Option; #[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`, `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "compare")] pub fn set_compare(this: &GpuStencilFaceState, val: GpuCompareFunction); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Get the `depthFailOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthFailOp")] pub fn get_depth_fail_op(this: &GpuStencilFaceState) -> Option; #[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: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthFailOp")] pub fn set_depth_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Get the `failOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "failOp")] pub fn get_fail_op(this: &GpuStencilFaceState) -> Option; #[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: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "failOp")] pub fn set_fail_op(this: &GpuStencilFaceState, val: GpuStencilOperation); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[doc = "Get the `passOp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "passOp")] pub fn get_pass_op(this: &GpuStencilFaceState) -> Option; #[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: `GpuStencilFaceState`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "passOp")] pub fn set_pass_op(this: &GpuStencilFaceState, val: GpuStencilOperation); } #[cfg(web_sys_unstable_apis)] impl GpuStencilFaceState { #[doc = "Construct a new `GpuStencilFaceState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStencilFaceState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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")] #[deprecated = "Use `set_compare()` instead."] pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { self.set_compare(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[deprecated = "Use `set_depth_fail_op()` instead."] pub fn depth_fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { self.set_depth_fail_op(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[deprecated = "Use `set_fail_op()` instead."] pub fn fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { self.set_fail_op(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStencilOperation")] #[deprecated = "Use `set_pass_op()` instead."] pub fn pass_op(&mut self, val: GpuStencilOperation) -> &mut Self { self.set_pass_op(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuStencilFaceState { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuStencilOperation.rs000064400000000000000000000014771046102023000210610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuStorageTextureAccess.rs000064400000000000000000000012611046102023000216750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuStorageTextureAccess` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureAccess`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuStorageTextureAccess { WriteOnly = "write-only", ReadOnly = "read-only", ReadWrite = "read-write", } web-sys-0.3.81/src/features/gen_GpuStorageTextureBindingLayout.rs000064400000000000000000000144411046102023000232500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUStorageTextureBindingLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuStorageTextureBindingLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuStorageTextureBindingLayout; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureAccess")] #[doc = "Get the `access` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureAccess`, `GpuStorageTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "access")] pub fn get_access(this: &GpuStorageTextureBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureAccess")] #[doc = "Change the `access` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureAccess`, `GpuStorageTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "access")] pub fn set_access(this: &GpuStorageTextureBindingLayout, val: GpuStorageTextureAccess); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuStorageTextureBindingLayout) -> GpuTextureFormat; #[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: `GpuStorageTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuStorageTextureBindingLayout, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Get the `viewDimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "viewDimension")] pub fn get_view_dimension( this: &GpuStorageTextureBindingLayout, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Change the `viewDimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "viewDimension")] pub fn set_view_dimension(this: &GpuStorageTextureBindingLayout, val: GpuTextureViewDimension); } #[cfg(web_sys_unstable_apis)] impl GpuStorageTextureBindingLayout { #[cfg(feature = "GpuTextureFormat")] #[doc = "Construct a new `GpuStorageTextureBindingLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuStorageTextureBindingLayout`, `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://wasm-bindgen.github.io/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.set_format(format); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuStorageTextureAccess")] #[deprecated = "Use `set_access()` instead."] pub fn access(&mut self, val: GpuStorageTextureAccess) -> &mut Self { self.set_access(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[deprecated = "Use `set_view_dimension()` instead."] pub fn view_dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { self.set_view_dimension(val); self } } web-sys-0.3.81/src/features/gen_GpuStoreOp.rs000064400000000000000000000011401046102023000171550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuStoreOp { Store = "store", Discard = "discard", } web-sys-0.3.81/src/features/gen_GpuSupportedFeatures.rs000064400000000000000000000123521046102023000212550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedFeatures , typescript_type = "GPUSupportedFeatures")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedFeatures` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedFeatures; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedFeatures" , 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/GPUSupportedFeatures/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &GpuSupportedFeatures) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &GpuSupportedFeatures) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "GPUSupportedFeatures" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each( this: &GpuSupportedFeatures, callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &GpuSupportedFeatures, value: &str) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &GpuSupportedFeatures) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &GpuSupportedFeatures) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_GpuSupportedLimits.rs000064400000000000000000000636521046102023000207510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUSupportedLimits , typescript_type = "GPUSupportedLimits")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuSupportedLimits` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuSupportedLimits; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension1D)] #[doc = "Getter for the `maxTextureDimension1D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension1D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_1d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension2D)] #[doc = "Getter for the `maxTextureDimension2D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_2d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureDimension3D)] #[doc = "Getter for the `maxTextureDimension3D` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureDimension3D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_dimension_3d(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxTextureArrayLayers)] #[doc = "Getter for the `maxTextureArrayLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxTextureArrayLayers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_texture_array_layers(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroups)] #[doc = "Getter for the `maxBindGroups` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroups)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bind_groups(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroupsPlusVertexBuffers)] #[doc = "Getter for the `maxBindGroupsPlusVertexBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroupsPlusVertexBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bind_groups_plus_vertex_buffers(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindingsPerBindGroup)] #[doc = "Getter for the `maxBindingsPerBindGroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindingsPerBindGroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_bindings_per_bind_group(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicUniformBuffersPerPipelineLayout)] #[doc = "Getter for the `maxDynamicUniformBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicUniformBuffersPerPipelineLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_uniform_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxDynamicStorageBuffersPerPipelineLayout)] #[doc = "Getter for the `maxDynamicStorageBuffersPerPipelineLayout` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxDynamicStorageBuffersPerPipelineLayout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_dynamic_storage_buffers_per_pipeline_layout(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSampledTexturesPerShaderStage)] #[doc = "Getter for the `maxSampledTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSampledTexturesPerShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_sampled_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxSamplersPerShaderStage)] #[doc = "Getter for the `maxSamplersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxSamplersPerShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_samplers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBuffersPerShaderStage)] #[doc = "Getter for the `maxStorageBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBuffersPerShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageTexturesPerShaderStage)] #[doc = "Getter for the `maxStorageTexturesPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageTexturesPerShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_textures_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBuffersPerShaderStage)] #[doc = "Getter for the `maxUniformBuffersPerShaderStage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBuffersPerShaderStage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffers_per_shader_stage(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxUniformBufferBindingSize)] #[doc = "Getter for the `maxUniformBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxUniformBufferBindingSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_uniform_buffer_binding_size(this: &GpuSupportedLimits) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxStorageBufferBindingSize)] #[doc = "Getter for the `maxStorageBufferBindingSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxStorageBufferBindingSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_storage_buffer_binding_size(this: &GpuSupportedLimits) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minUniformBufferOffsetAlignment)] #[doc = "Getter for the `minUniformBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minUniformBufferOffsetAlignment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_uniform_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = minStorageBufferOffsetAlignment)] #[doc = "Getter for the `minStorageBufferOffsetAlignment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/minStorageBufferOffsetAlignment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn min_storage_buffer_offset_alignment(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBuffers)] #[doc = "Getter for the `maxVertexBuffers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBuffers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffers(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBufferSize)] #[doc = "Getter for the `maxBufferSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBufferSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_buffer_size(this: &GpuSupportedLimits) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexAttributes)] #[doc = "Getter for the `maxVertexAttributes` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexAttributes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_attributes(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxVertexBufferArrayStride)] #[doc = "Getter for the `maxVertexBufferArrayStride` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxVertexBufferArrayStride)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_vertex_buffer_array_stride(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxInterStageShaderVariables)] #[doc = "Getter for the `maxInterStageShaderVariables` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxInterStageShaderVariables)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_inter_stage_shader_variables(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachments)] #[doc = "Getter for the `maxColorAttachments` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachments)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_color_attachments(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachmentBytesPerSample)] #[doc = "Getter for the `maxColorAttachmentBytesPerSample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachmentBytesPerSample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_color_attachment_bytes_per_sample(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupStorageSize)] #[doc = "Getter for the `maxComputeWorkgroupStorageSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupStorageSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_storage_size(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeInvocationsPerWorkgroup)] #[doc = "Getter for the `maxComputeInvocationsPerWorkgroup` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeInvocationsPerWorkgroup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_invocations_per_workgroup(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeX)] #[doc = "Getter for the `maxComputeWorkgroupSizeX` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_x(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeY)] #[doc = "Getter for the `maxComputeWorkgroupSizeY` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_y(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupSizeZ)] #[doc = "Getter for the `maxComputeWorkgroupSizeZ` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupSizeZ)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroup_size_z(this: &GpuSupportedLimits) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupsPerDimension)] #[doc = "Getter for the `maxComputeWorkgroupsPerDimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxComputeWorkgroupsPerDimension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_compute_workgroups_per_dimension(this: &GpuSupportedLimits) -> u32; } web-sys-0.3.81/src/features/gen_GpuTexelCopyBufferInfo.rs000064400000000000000000000156141046102023000214570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyBufferInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexelCopyBufferInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesPerRow")] pub fn get_bytes_per_row(this: &GpuTexelCopyBufferInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesPerRow")] pub fn set_bytes_per_row(this: &GpuTexelCopyBufferInfo, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &GpuTexelCopyBufferInfo) -> Option; #[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: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &GpuTexelCopyBufferInfo, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rowsPerImage")] pub fn get_rows_per_image(this: &GpuTexelCopyBufferInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rowsPerImage")] pub fn set_rows_per_image(this: &GpuTexelCopyBufferInfo, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[doc = "Get the `buffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "buffer")] pub fn get_buffer(this: &GpuTexelCopyBufferInfo) -> GpuBuffer; #[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`, `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "buffer")] pub fn set_buffer(this: &GpuTexelCopyBufferInfo, val: &GpuBuffer); } #[cfg(web_sys_unstable_apis)] impl GpuTexelCopyBufferInfo { #[cfg(feature = "GpuBuffer")] #[doc = "Construct a new `GpuTexelCopyBufferInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuTexelCopyBufferInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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.set_buffer(buffer); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes_per_row()` instead."] pub fn bytes_per_row(&mut self, val: u32) -> &mut Self { self.set_bytes_per_row(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f64) -> &mut Self { self.set_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rows_per_image()` instead."] pub fn rows_per_image(&mut self, val: u32) -> &mut Self { self.set_rows_per_image(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuBuffer")] #[deprecated = "Use `set_buffer()` instead."] pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { self.set_buffer(val); self } } web-sys-0.3.81/src/features/gen_GpuTexelCopyBufferLayout.rs000064400000000000000000000130311046102023000220300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyBufferLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyBufferLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexelCopyBufferLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesPerRow")] pub fn get_bytes_per_row(this: &GpuTexelCopyBufferLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesPerRow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesPerRow")] pub fn set_bytes_per_row(this: &GpuTexelCopyBufferLayout, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &GpuTexelCopyBufferLayout) -> Option; #[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: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &GpuTexelCopyBufferLayout, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rowsPerImage")] pub fn get_rows_per_image(this: &GpuTexelCopyBufferLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rowsPerImage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rowsPerImage")] pub fn set_rows_per_image(this: &GpuTexelCopyBufferLayout, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuTexelCopyBufferLayout { #[doc = "Construct a new `GpuTexelCopyBufferLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_bytes_per_row()` instead."] pub fn bytes_per_row(&mut self, val: u32) -> &mut Self { self.set_bytes_per_row(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f64) -> &mut Self { self.set_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rows_per_image()` instead."] pub fn rows_per_image(&mut self, val: u32) -> &mut Self { self.set_rows_per_image(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuTexelCopyBufferLayout { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuTexelCopyTextureInfo.rs000064400000000000000000000161321046102023000217020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTexelCopyTextureInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTexelCopyTextureInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTexelCopyTextureInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Get the `aspect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "aspect")] pub fn get_aspect(this: &GpuTexelCopyTextureInfo) -> Option; #[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: `GpuTexelCopyTextureInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "aspect")] pub fn set_aspect(this: &GpuTexelCopyTextureInfo, val: GpuTextureAspect); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mipLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mipLevel")] pub fn get_mip_level(this: &GpuTexelCopyTextureInfo) -> Option; #[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: `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mipLevel")] pub fn set_mip_level(this: &GpuTexelCopyTextureInfo, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &GpuTexelCopyTextureInfo) -> ::wasm_bindgen::JsValue; #[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: `GpuTexelCopyTextureInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &GpuTexelCopyTextureInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[doc = "Get the `texture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "texture")] pub fn get_texture(this: &GpuTexelCopyTextureInfo) -> GpuTexture; #[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: `GpuTexelCopyTextureInfo`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "texture")] pub fn set_texture(this: &GpuTexelCopyTextureInfo, val: &GpuTexture); } #[cfg(web_sys_unstable_apis)] impl GpuTexelCopyTextureInfo { #[cfg(feature = "GpuTexture")] #[doc = "Construct a new `GpuTexelCopyTextureInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexelCopyTextureInfo`, `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://wasm-bindgen.github.io/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.set_texture(texture); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[deprecated = "Use `set_aspect()` instead."] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { self.set_aspect(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mip_level()` instead."] pub fn mip_level(&mut self, val: u32) -> &mut Self { self.set_mip_level(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_origin(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTexture")] #[deprecated = "Use `set_texture()` instead."] pub fn texture(&mut self, val: &GpuTexture) -> &mut Self { self.set_texture(val); self } } web-sys-0.3.81/src/features/gen_GpuTexture.rs000064400000000000000000000245761046102023000172440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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 = width)] #[doc = "Getter for the `width` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/width)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(this: &GpuTexture) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , 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/GPUTexture/height)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(this: &GpuTexture) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = depthOrArrayLayers)] #[doc = "Getter for the `depthOrArrayLayers` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/depthOrArrayLayers)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_or_array_layers(this: &GpuTexture) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = mipLevelCount)] #[doc = "Getter for the `mipLevelCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/mipLevelCount)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mip_level_count(this: &GpuTexture) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = sampleCount)] #[doc = "Getter for the `sampleCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/sampleCount)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn sample_count(this: &GpuTexture) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureDimension")] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = dimension)] #[doc = "Getter for the `dimension` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/dimension)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn dimension(this: &GpuTexture) -> GpuTextureDimension; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = format)] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/format)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &GpuTexture) -> GpuTextureFormat; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUTexture" , js_name = usage)] #[doc = "Getter for the `usage` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/usage)"] #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usage(this: &GpuTexture) -> u32; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTexture) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuTexture, value: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureView")] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_view(this: &GpuTexture) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "GpuTextureView", feature = "GpuTextureViewDescriptor",))] # [wasm_bindgen (catch , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_view_with_descriptor( this: &GpuTexture, descriptor: &GpuTextureViewDescriptor, ) -> Result; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn destroy(this: &GpuTexture); } web-sys-0.3.81/src/features/gen_GpuTextureAspect.rs000064400000000000000000000012251046102023000203660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureAspect { All = "all", StencilOnly = "stencil-only", DepthOnly = "depth-only", } web-sys-0.3.81/src/features/gen_GpuTextureBindingLayout.rs000064400000000000000000000140401046102023000217160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUTextureBindingLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuTextureBindingLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureBindingLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `multisampled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "multisampled")] pub fn get_multisampled(this: &GpuTextureBindingLayout) -> Option; #[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: `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "multisampled")] pub fn set_multisampled(this: &GpuTextureBindingLayout, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureSampleType")] #[doc = "Get the `sampleType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`, `GpuTextureSampleType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleType")] pub fn get_sample_type(this: &GpuTextureBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureSampleType")] #[doc = "Change the `sampleType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`, `GpuTextureSampleType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleType")] pub fn set_sample_type(this: &GpuTextureBindingLayout, val: GpuTextureSampleType); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Get the `viewDimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "viewDimension")] pub fn get_view_dimension(this: &GpuTextureBindingLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Change the `viewDimension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "viewDimension")] pub fn set_view_dimension(this: &GpuTextureBindingLayout, val: GpuTextureViewDimension); } #[cfg(web_sys_unstable_apis)] impl GpuTextureBindingLayout { #[doc = "Construct a new `GpuTextureBindingLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureBindingLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_multisampled()` instead."] pub fn multisampled(&mut self, val: bool) -> &mut Self { self.set_multisampled(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureSampleType")] #[deprecated = "Use `set_sample_type()` instead."] pub fn sample_type(&mut self, val: GpuTextureSampleType) -> &mut Self { self.set_sample_type(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[deprecated = "Use `set_view_dimension()` instead."] pub fn view_dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { self.set_view_dimension(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuTextureBindingLayout { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuTextureDescriptor.rs000064400000000000000000000310531046102023000212670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuTextureDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuTextureDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureDimension")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dimension")] pub fn get_dimension(this: &GpuTextureDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dimension")] pub fn set_dimension(this: &GpuTextureDescriptor, val: GpuTextureDimension); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuTextureDescriptor) -> GpuTextureFormat; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuTextureDescriptor, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mipLevelCount")] pub fn get_mip_level_count(this: &GpuTextureDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mipLevelCount")] pub fn set_mip_level_count(this: &GpuTextureDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleCount")] pub fn get_sample_count(this: &GpuTextureDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleCount")] pub fn set_sample_count(this: &GpuTextureDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &GpuTextureDescriptor) -> ::wasm_bindgen::JsValue; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &GpuTextureDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &GpuTextureDescriptor) -> u32; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &GpuTextureDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `viewFormats` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "viewFormats")] pub fn get_view_formats(this: &GpuTextureDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `viewFormats` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "viewFormats")] pub fn set_view_formats(this: &GpuTextureDescriptor, val: &::wasm_bindgen::JsValue); } #[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://wasm-bindgen.github.io/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.set_format(format); ret.set_size(size); ret.set_usage(usage); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureDimension")] #[deprecated = "Use `set_dimension()` instead."] pub fn dimension(&mut self, val: GpuTextureDimension) -> &mut Self { self.set_dimension(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mip_level_count()` instead."] pub fn mip_level_count(&mut self, val: u32) -> &mut Self { self.set_mip_level_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sample_count()` instead."] pub fn sample_count(&mut self, val: u32) -> &mut Self { self.set_sample_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_size(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u32) -> &mut Self { self.set_usage(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_view_formats()` instead."] pub fn view_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_view_formats(val); self } } web-sys-0.3.81/src/features/gen_GpuTextureDimension.rs000064400000000000000000000011751046102023000211000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureDimension { N1d = "1d", N2d = "2d", N3d = "3d", } web-sys-0.3.81/src/features/gen_GpuTextureFormat.rs000064400000000000000000000077021046102023000204050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", Rgb9e5ufloat = "rgb9e5ufloat", Rgb10a2uint = "rgb10a2uint", Rgb10a2unorm = "rgb10a2unorm", Rg11b10ufloat = "rg11b10ufloat", Rg32uint = "rg32uint", Rg32sint = "rg32sint", Rg32float = "rg32float", Rgba16uint = "rgba16uint", Rgba16sint = "rgba16sint", Rgba16float = "rgba16float", Rgba32uint = "rgba32uint", Rgba32sint = "rgba32sint", Rgba32float = "rgba32float", Stencil8 = "stencil8", Depth16unorm = "depth16unorm", Depth24plus = "depth24plus", Depth24plusStencil8 = "depth24plus-stencil8", Depth32float = "depth32float", Depth32floatStencil8 = "depth32float-stencil8", Bc1RgbaUnorm = "bc1-rgba-unorm", Bc1RgbaUnormSrgb = "bc1-rgba-unorm-srgb", Bc2RgbaUnorm = "bc2-rgba-unorm", Bc2RgbaUnormSrgb = "bc2-rgba-unorm-srgb", Bc3RgbaUnorm = "bc3-rgba-unorm", Bc3RgbaUnormSrgb = "bc3-rgba-unorm-srgb", Bc4RUnorm = "bc4-r-unorm", Bc4RSnorm = "bc4-r-snorm", Bc5RgUnorm = "bc5-rg-unorm", Bc5RgSnorm = "bc5-rg-snorm", Bc6hRgbUfloat = "bc6h-rgb-ufloat", Bc6hRgbFloat = "bc6h-rgb-float", Bc7RgbaUnorm = "bc7-rgba-unorm", Bc7RgbaUnormSrgb = "bc7-rgba-unorm-srgb", Etc2Rgb8unorm = "etc2-rgb8unorm", Etc2Rgb8unormSrgb = "etc2-rgb8unorm-srgb", Etc2Rgb8a1unorm = "etc2-rgb8a1unorm", Etc2Rgb8a1unormSrgb = "etc2-rgb8a1unorm-srgb", Etc2Rgba8unorm = "etc2-rgba8unorm", Etc2Rgba8unormSrgb = "etc2-rgba8unorm-srgb", EacR11unorm = "eac-r11unorm", EacR11snorm = "eac-r11snorm", EacRg11unorm = "eac-rg11unorm", EacRg11snorm = "eac-rg11snorm", Astc4x4Unorm = "astc-4x4-unorm", Astc4x4UnormSrgb = "astc-4x4-unorm-srgb", Astc5x4Unorm = "astc-5x4-unorm", Astc5x4UnormSrgb = "astc-5x4-unorm-srgb", Astc5x5Unorm = "astc-5x5-unorm", Astc5x5UnormSrgb = "astc-5x5-unorm-srgb", Astc6x5Unorm = "astc-6x5-unorm", Astc6x5UnormSrgb = "astc-6x5-unorm-srgb", Astc6x6Unorm = "astc-6x6-unorm", Astc6x6UnormSrgb = "astc-6x6-unorm-srgb", Astc8x5Unorm = "astc-8x5-unorm", Astc8x5UnormSrgb = "astc-8x5-unorm-srgb", Astc8x6Unorm = "astc-8x6-unorm", Astc8x6UnormSrgb = "astc-8x6-unorm-srgb", Astc8x8Unorm = "astc-8x8-unorm", Astc8x8UnormSrgb = "astc-8x8-unorm-srgb", Astc10x5Unorm = "astc-10x5-unorm", Astc10x5UnormSrgb = "astc-10x5-unorm-srgb", Astc10x6Unorm = "astc-10x6-unorm", Astc10x6UnormSrgb = "astc-10x6-unorm-srgb", Astc10x8Unorm = "astc-10x8-unorm", Astc10x8UnormSrgb = "astc-10x8-unorm-srgb", Astc10x10Unorm = "astc-10x10-unorm", Astc10x10UnormSrgb = "astc-10x10-unorm-srgb", Astc12x10Unorm = "astc-12x10-unorm", Astc12x10UnormSrgb = "astc-12x10-unorm-srgb", Astc12x12Unorm = "astc-12x12-unorm", Astc12x12UnormSrgb = "astc-12x12-unorm-srgb", } web-sys-0.3.81/src/features/gen_GpuTextureSampleType.rs000064400000000000000000000013161046102023000212330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuTextureSampleType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuTextureSampleType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuTextureSampleType { Float = "float", UnfilterableFloat = "unfilterable-float", Depth = "depth", Sint = "sint", Uint = "uint", } web-sys-0.3.81/src/features/gen_GpuTextureView.rs000064400000000000000000000044361046102023000200700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn label(this: &GpuTextureView) -> ::alloc::string::String; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_label(this: &GpuTextureView, value: &str); } web-sys-0.3.81/src/features/gen_GpuTextureViewDescriptor.rs000064400000000000000000000343131046102023000221240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuTextureViewDescriptor; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &GpuTextureViewDescriptor) -> Option<::alloc::string::String>; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &GpuTextureViewDescriptor, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "arrayLayerCount")] pub fn get_array_layer_count(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "arrayLayerCount")] pub fn set_array_layer_count(this: &GpuTextureViewDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "aspect")] pub fn get_aspect(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "aspect")] pub fn set_aspect(this: &GpuTextureViewDescriptor, val: GpuTextureAspect); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "baseArrayLayer")] pub fn get_base_array_layer(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "baseArrayLayer")] pub fn set_base_array_layer(this: &GpuTextureViewDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "baseMipLevel")] pub fn get_base_mip_level(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "baseMipLevel")] pub fn set_base_mip_level(this: &GpuTextureViewDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dimension")] pub fn get_dimension(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dimension")] pub fn set_dimension(this: &GpuTextureViewDescriptor, val: GpuTextureViewDimension); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuTextureViewDescriptor, val: GpuTextureFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mipLevelCount")] pub fn get_mip_level_count(this: &GpuTextureViewDescriptor) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mipLevelCount")] pub fn set_mip_level_count(this: &GpuTextureViewDescriptor, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usage` 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &GpuTextureViewDescriptor) -> Option; #[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: `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &GpuTextureViewDescriptor, val: u32); } #[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://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_array_layer_count()` instead."] pub fn array_layer_count(&mut self, val: u32) -> &mut Self { self.set_array_layer_count(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureAspect")] #[deprecated = "Use `set_aspect()` instead."] pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { self.set_aspect(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_base_array_layer()` instead."] pub fn base_array_layer(&mut self, val: u32) -> &mut Self { self.set_base_array_layer(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_base_mip_level()` instead."] pub fn base_mip_level(&mut self, val: u32) -> &mut Self { self.set_base_mip_level(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureViewDimension")] #[deprecated = "Use `set_dimension()` instead."] pub fn dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { self.set_dimension(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuTextureFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mip_level_count()` instead."] pub fn mip_level_count(&mut self, val: u32) -> &mut Self { self.set_mip_level_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u32) -> &mut Self { self.set_usage(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for GpuTextureViewDescriptor { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_GpuTextureViewDimension.rs000064400000000000000000000013251046102023000217300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/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", } web-sys-0.3.81/src/features/gen_GpuUncapturedErrorEvent.rs000064400000000000000000000052571046102023000217250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuError")] # [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: `GpuError`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn error(this: &GpuUncapturedErrorEvent) -> GpuError; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuUncapturedErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "GPUUncapturedErrorEvent")] #[doc = "The `new GpuUncapturedErrorEvent(..)` constructor, creating a new instance of `GpuUncapturedErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/GPUUncapturedErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEvent`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, gpu_uncaptured_error_event_init_dict: &GpuUncapturedErrorEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_GpuUncapturedErrorEventInit.rs000064400000000000000000000156711046102023000225520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuUncapturedErrorEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &GpuUncapturedErrorEventInit) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &GpuUncapturedErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &GpuUncapturedErrorEventInit) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &GpuUncapturedErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &GpuUncapturedErrorEventInit) -> Option; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &GpuUncapturedErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuError")] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuError`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &GpuUncapturedErrorEventInit) -> GpuError; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuError")] #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuError`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &GpuUncapturedErrorEventInit, val: &GpuError); } #[cfg(web_sys_unstable_apis)] impl GpuUncapturedErrorEventInit { #[cfg(feature = "GpuError")] #[doc = "Construct a new `GpuUncapturedErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuError`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &GpuError) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error(error); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuError")] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &GpuError) -> &mut Self { self.set_error(val); self } } web-sys-0.3.81/src/features/gen_GpuValidationError.rs000064400000000000000000000032351046102023000206750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = GpuError , 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuValidationError; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "GPUValidationError")] #[doc = "The `new GpuValidationError(..)` constructor, creating a new instance of `GpuValidationError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUValidationError/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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(message: &str) -> Result; } web-sys-0.3.81/src/features/gen_GpuVertexAttribute.rs000064400000000000000000000132151046102023000207310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexAttribute)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexAttribute` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttribute`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexAttribute; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttribute`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &GpuVertexAttribute) -> GpuVertexFormat; #[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: `GpuVertexAttribute`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &GpuVertexAttribute, val: GpuVertexFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttribute`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &GpuVertexAttribute) -> f64; #[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: `GpuVertexAttribute`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &GpuVertexAttribute, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `shaderLocation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttribute`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "shaderLocation")] pub fn get_shader_location(this: &GpuVertexAttribute) -> u32; #[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: `GpuVertexAttribute`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "shaderLocation")] pub fn set_shader_location(this: &GpuVertexAttribute, val: u32); } #[cfg(web_sys_unstable_apis)] impl GpuVertexAttribute { #[cfg(feature = "GpuVertexFormat")] #[doc = "Construct a new `GpuVertexAttribute`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttribute`, `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://wasm-bindgen.github.io/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.set_format(format); ret.set_offset(offset); ret.set_shader_location(shader_location); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: GpuVertexFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: f64) -> &mut Self { self.set_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_shader_location()` instead."] pub fn shader_location(&mut self, val: u32) -> &mut Self { self.set_shader_location(val); self } } web-sys-0.3.81/src/features/gen_GpuVertexBufferLayout.rs000064400000000000000000000133301046102023000213730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexBufferLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexBufferLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexBufferLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `arrayStride` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "arrayStride")] pub fn get_array_stride(this: &GpuVertexBufferLayout) -> f64; #[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: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "arrayStride")] pub fn set_array_stride(this: &GpuVertexBufferLayout, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attributes")] pub fn get_attributes(this: &GpuVertexBufferLayout) -> ::js_sys::Array; #[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: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attributes")] pub fn set_attributes(this: &GpuVertexBufferLayout, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexStepMode")] #[doc = "Get the `stepMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`, `GpuVertexStepMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stepMode")] pub fn get_step_mode(this: &GpuVertexBufferLayout) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexStepMode")] #[doc = "Change the `stepMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`, `GpuVertexStepMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stepMode")] pub fn set_step_mode(this: &GpuVertexBufferLayout, val: GpuVertexStepMode); } #[cfg(web_sys_unstable_apis)] impl GpuVertexBufferLayout { #[doc = "Construct a new `GpuVertexBufferLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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.set_array_stride(array_stride); ret.set_attributes(attributes); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_array_stride()` instead."] pub fn array_stride(&mut self, val: f64) -> &mut Self { self.set_array_stride(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attributes()` instead."] pub fn attributes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attributes(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuVertexStepMode")] #[deprecated = "Use `set_step_mode()` instead."] pub fn step_mode(&mut self, val: GpuVertexStepMode) -> &mut Self { self.set_step_mode(val); self } } web-sys-0.3.81/src/features/gen_GpuVertexFormat.rs000064400000000000000000000032061046102023000202150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuVertexFormat { Uint8 = "uint8", Uint8x2 = "uint8x2", Uint8x4 = "uint8x4", Sint8 = "sint8", Sint8x2 = "sint8x2", Sint8x4 = "sint8x4", Unorm8 = "unorm8", Unorm8x2 = "unorm8x2", Unorm8x4 = "unorm8x4", Snorm8 = "snorm8", Snorm8x2 = "snorm8x2", Snorm8x4 = "snorm8x4", Uint16 = "uint16", Uint16x2 = "uint16x2", Uint16x4 = "uint16x4", Sint16 = "sint16", Sint16x2 = "sint16x2", Sint16x4 = "sint16x4", Unorm16 = "unorm16", Unorm16x2 = "unorm16x2", Unorm16x4 = "unorm16x4", Snorm16 = "snorm16", Snorm16x2 = "snorm16x2", Snorm16x4 = "snorm16x4", Float16 = "float16", Float16x2 = "float16x2", Float16x4 = "float16x4", Float32 = "float32", Float32x2 = "float32x2", Float32x3 = "float32x3", Float32x4 = "float32x4", Uint32 = "uint32", Uint32x2 = "uint32x2", Uint32x3 = "uint32x3", Uint32x4 = "uint32x4", Sint32 = "sint32", Sint32x2 = "sint32x2", Sint32x3 = "sint32x3", Sint32x4 = "sint32x4", Unorm1010102 = "unorm10-10-10-2", Unorm8x4Bgra = "unorm8x4-bgra", } web-sys-0.3.81/src/features/gen_GpuVertexState.rs000064400000000000000000000155411046102023000200520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUVertexState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `GpuVertexState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type GpuVertexState; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "constants")] pub fn get_constants(this: &GpuVertexState) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `constants` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "constants")] pub fn set_constants(this: &GpuVertexState, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `entryPoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] pub fn get_entry_point(this: &GpuVertexState) -> Option<::alloc::string::String>; #[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: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "entryPoint")] pub fn set_entry_point(this: &GpuVertexState, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[doc = "Get the `module` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "module")] pub fn get_module(this: &GpuVertexState) -> GpuShaderModule; #[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: `GpuShaderModule`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "module")] pub fn set_module(this: &GpuVertexState, val: &GpuShaderModule); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `buffers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "buffers")] pub fn get_buffers(this: &GpuVertexState) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `buffers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "buffers")] pub fn set_buffers(this: &GpuVertexState, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl GpuVertexState { #[cfg(feature = "GpuShaderModule")] #[doc = "Construct a new `GpuVertexState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`, `GpuVertexState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(module: &GpuShaderModule) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_module(module); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_constants()` instead."] pub fn constants(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_constants(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_entry_point()` instead."] pub fn entry_point(&mut self, val: &str) -> &mut Self { self.set_entry_point(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuShaderModule")] #[deprecated = "Use `set_module()` instead."] pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { self.set_module(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_buffers()` instead."] pub fn buffers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_buffers(val); self } } web-sys-0.3.81/src/features/gen_GpuVertexStepMode.rs000064400000000000000000000011711046102023000205040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `GpuVertexStepMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GpuVertexStepMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpuVertexStepMode { Vertex = "vertex", Instance = "instance", } web-sys-0.3.81/src/features/gen_GroupedHistoryEventInit.rs000064400000000000000000000101341046102023000217260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &GroupedHistoryEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &GroupedHistoryEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &GroupedHistoryEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &GroupedHistoryEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &GroupedHistoryEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &GroupedHistoryEventInit, val: bool); #[cfg(feature = "Element")] #[doc = "Get the `otherBrowser` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `GroupedHistoryEventInit`*"] #[wasm_bindgen(method, getter = "otherBrowser")] pub fn get_other_browser(this: &GroupedHistoryEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "otherBrowser")] pub fn set_other_browser(this: &GroupedHistoryEventInit, val: Option<&Element>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "Element")] #[deprecated = "Use `set_other_browser()` instead."] pub fn other_browser(&mut self, val: Option<&Element>) -> &mut Self { self.set_other_browser(val); self } } impl Default for GroupedHistoryEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HalfOpenInfoDict.rs000064400000000000000000000031701046102023000202270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `speculative` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] #[wasm_bindgen(method, getter = "speculative")] pub fn get_speculative(this: &HalfOpenInfoDict) -> Option; #[doc = "Change the `speculative` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] #[wasm_bindgen(method, setter = "speculative")] pub fn set_speculative(this: &HalfOpenInfoDict, val: bool); } 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 } #[deprecated = "Use `set_speculative()` instead."] pub fn speculative(&mut self, val: bool) -> &mut Self { self.set_speculative(val); self } } impl Default for HalfOpenInfoDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HardwareAcceleration.rs000064400000000000000000000013041046102023000211570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `HardwareAcceleration` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HardwareAcceleration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum HardwareAcceleration { NoPreference = "no-preference", PreferHardware = "prefer-hardware", PreferSoftware = "prefer-software", } web-sys-0.3.81/src/features/gen_HashChangeEvent.rs000064400000000000000000000130441046102023000201070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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, ); } web-sys-0.3.81/src/features/gen_HashChangeEventInit.rs000064400000000000000000000110661046102023000207350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &HashChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &HashChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &HashChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &HashChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &HashChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &HashChangeEventInit, val: bool); #[doc = "Get the `newURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "newURL")] pub fn get_new_url(this: &HashChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, setter = "newURL")] pub fn set_new_url(this: &HashChangeEventInit, val: &str); #[doc = "Get the `oldURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "oldURL")] pub fn get_old_url(this: &HashChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, setter = "oldURL")] pub fn set_old_url(this: &HashChangeEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_new_url()` instead."] pub fn new_url(&mut self, val: &str) -> &mut Self { self.set_new_url(val); self } #[deprecated = "Use `set_old_url()` instead."] pub fn old_url(&mut self, val: &str) -> &mut Self { self.set_old_url(val); self } } impl Default for HashChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Headers.rs000064400000000000000000000140301046102023000164630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, 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_record_from_str_to_str(init: &::js_sys::Object) -> 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 (method , structural , js_class = "Headers" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn entries(this: &Headers) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn for_each(this: &Headers, callback: &::js_sys::Function) -> 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 (method , structural , js_class = "Headers" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn keys(this: &Headers) -> ::js_sys::Iterator; # [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>; # [wasm_bindgen (method , structural , js_class = "Headers" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] pub fn values(this: &Headers) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_HeadersGuardEnum.rs000064400000000000000000000007111046102023000202740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Hid.rs000064400000000000000000000121361046102023000156210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = HID , typescript_type = "HID")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Hid` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Hid; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HID" , 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/HID/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &Hid) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HID" , 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/HID/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &Hid, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HID" , js_name = ondisconnect)] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &Hid) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HID" , js_name = ondisconnect)] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &Hid, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "HID" , js_name = getDevices)] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/getDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_devices(this: &Hid) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDeviceRequestOptions")] # [wasm_bindgen (method , structural , js_class = "HID" , js_name = requestDevice)] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HID/requestDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`, `HidDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Hid, options: &HidDeviceRequestOptions) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_HidCollectionInfo.rs000064400000000000000000000254631046102023000204600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDCollectionInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidCollectionInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidCollectionInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `children` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "children")] pub fn get_children(this: &HidCollectionInfo) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `children` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "children")] pub fn set_children(this: &HidCollectionInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `featureReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "featureReports")] pub fn get_feature_reports(this: &HidCollectionInfo) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `featureReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "featureReports")] pub fn set_feature_reports(this: &HidCollectionInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `inputReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "inputReports")] pub fn get_input_reports(this: &HidCollectionInfo) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `inputReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "inputReports")] pub fn set_input_reports(this: &HidCollectionInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `outputReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "outputReports")] pub fn get_output_reports(this: &HidCollectionInfo) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `outputReports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "outputReports")] pub fn set_output_reports(this: &HidCollectionInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &HidCollectionInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &HidCollectionInfo, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &HidCollectionInfo) -> Option; #[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: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &HidCollectionInfo, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usagePage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usagePage")] pub fn get_usage_page(this: &HidCollectionInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usagePage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usagePage")] pub fn set_usage_page(this: &HidCollectionInfo, val: u16); } #[cfg(web_sys_unstable_apis)] impl HidCollectionInfo { #[doc = "Construct a new `HidCollectionInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidCollectionInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_children()` instead."] pub fn children(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_children(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_feature_reports()` instead."] pub fn feature_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_feature_reports(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_input_reports()` instead."] pub fn input_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_input_reports(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_output_reports()` instead."] pub fn output_reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_output_reports(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: u8) -> &mut Self { self.set_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u16) -> &mut Self { self.set_usage(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage_page()` instead."] pub fn usage_page(&mut self, val: u16) -> &mut Self { self.set_usage_page(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for HidCollectionInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HidConnectionEvent.rs000064400000000000000000000050751046102023000206470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = HIDConnectionEvent , typescript_type = "HIDConnectionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidConnectionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidConnectionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] # [wasm_bindgen (structural , method , getter , js_class = "HIDConnectionEvent" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDConnectionEvent/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEvent`, `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &HidConnectionEvent) -> HidDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidConnectionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "HIDConnectionEvent")] #[doc = "The `new HidConnectionEvent(..)` constructor, creating a new instance of `HidConnectionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDConnectionEvent/HIDConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEvent`, `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &HidConnectionEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_HidConnectionEventInit.rs000064400000000000000000000155351046102023000214750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDConnectionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidConnectionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidConnectionEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &HidConnectionEventInit) -> Option; #[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: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &HidConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &HidConnectionEventInit) -> Option; #[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: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &HidConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &HidConnectionEventInit) -> Option; #[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: `HidConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &HidConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[doc = "Get the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`, `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "device")] pub fn get_device(this: &HidConnectionEventInit) -> HidDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[doc = "Change the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`, `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "device")] pub fn set_device(this: &HidConnectionEventInit, val: &HidDevice); } #[cfg(web_sys_unstable_apis)] impl HidConnectionEventInit { #[cfg(feature = "HidDevice")] #[doc = "Construct a new `HidConnectionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidConnectionEventInit`, `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(device: &HidDevice) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_device(device); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[deprecated = "Use `set_device()` instead."] pub fn device(&mut self, val: &HidDevice) -> &mut Self { self.set_device(val); self } } web-sys-0.3.81/src/features/gen_HidDevice.rs000064400000000000000000000314641046102023000167460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = HIDDevice , typescript_type = "HIDDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDevice` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = oninputreport)] #[doc = "Getter for the `oninputreport` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/oninputreport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oninputreport(this: &HidDevice) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HIDDevice" , js_name = oninputreport)] #[doc = "Setter for the `oninputreport` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/oninputreport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oninputreport(this: &HidDevice, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = opened)] #[doc = "Getter for the `opened` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/opened)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn opened(this: &HidDevice) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = vendorId)] #[doc = "Getter for the `vendorId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/vendorId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(this: &HidDevice) -> u16; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = productId)] #[doc = "Getter for the `productId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/productId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(this: &HidDevice) -> u16; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = productName)] #[doc = "Getter for the `productName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/productName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_name(this: &HidDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = collections)] #[doc = "Getter for the `collections` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/collections)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn collections(this: &HidDevice) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &HidDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn open(this: &HidDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "HIDDevice" , js_name = receiveFeatureReport)] #[doc = "The `receiveFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/receiveFeatureReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn receive_feature_report(this: &HidDevice, report_id: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendFeatureReport)] #[doc = "The `sendFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendFeatureReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_feature_report_with_buffer_source( this: &HidDevice, report_id: u8, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendFeatureReport)] #[doc = "The `sendFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendFeatureReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_feature_report_with_u8_slice( this: &HidDevice, report_id: u8, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendFeatureReport)] #[doc = "The `sendFeatureReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendFeatureReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_feature_report_with_u8_array( this: &HidDevice, report_id: u8, data: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendReport)] #[doc = "The `sendReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_report_with_buffer_source( this: &HidDevice, report_id: u8, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendReport)] #[doc = "The `sendReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_report_with_u8_slice( this: &HidDevice, report_id: u8, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "HIDDevice" , js_name = sendReport)] #[doc = "The `sendReport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDDevice/sendReport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_report_with_u8_array( this: &HidDevice, report_id: u8, data: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.81/src/features/gen_HidDeviceFilter.rs000064400000000000000000000151151046102023000201070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDDeviceFilter)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDeviceFilter` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDeviceFilter; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "productId")] pub fn get_product_id(this: &HidDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "productId")] pub fn set_product_id(this: &HidDeviceFilter, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &HidDeviceFilter) -> Option; #[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: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &HidDeviceFilter, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usagePage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usagePage")] pub fn get_usage_page(this: &HidDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usagePage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usagePage")] pub fn set_usage_page(this: &HidDeviceFilter, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "vendorId")] pub fn get_vendor_id(this: &HidDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "vendorId")] pub fn set_vendor_id(this: &HidDeviceFilter, val: u32); } #[cfg(web_sys_unstable_apis)] impl HidDeviceFilter { #[doc = "Construct a new `HidDeviceFilter`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_product_id()` instead."] pub fn product_id(&mut self, val: u16) -> &mut Self { self.set_product_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: u16) -> &mut Self { self.set_usage(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage_page()` instead."] pub fn usage_page(&mut self, val: u16) -> &mut Self { self.set_usage_page(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_vendor_id()` instead."] pub fn vendor_id(&mut self, val: u32) -> &mut Self { self.set_vendor_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for HidDeviceFilter { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HidDeviceRequestOptions.rs000064400000000000000000000054461046102023000216740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDDeviceRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidDeviceRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidDeviceRequestOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &HidDeviceRequestOptions) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &HidDeviceRequestOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl HidDeviceRequestOptions { #[doc = "Construct a new `HidDeviceRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(filters: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_filters(filters); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } } web-sys-0.3.81/src/features/gen_HidInputReportEvent.rs000064400000000000000000000100641046102023000210350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = HIDInputReportEvent , typescript_type = "HIDInputReportEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidInputReportEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidInputReportEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`, `HidInputReportEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &HidInputReportEvent) -> HidDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , js_name = reportId)] #[doc = "Getter for the `reportId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent/reportId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn report_id(this: &HidInputReportEvent) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDInputReportEvent" , 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/HIDInputReportEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &HidInputReportEvent) -> ::js_sys::DataView; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidInputReportEventInit")] #[wasm_bindgen(catch, constructor, js_class = "HIDInputReportEvent")] #[doc = "The `new HidInputReportEvent(..)` constructor, creating a new instance of `HidInputReportEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HIDInputReportEvent/HIDInputReportEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEvent`, `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &HidInputReportEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_HidInputReportEventInit.rs000064400000000000000000000231431046102023000216630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDInputReportEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidInputReportEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidInputReportEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &HidInputReportEventInit) -> Option; #[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: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &HidInputReportEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &HidInputReportEventInit) -> Option; #[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: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &HidInputReportEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &HidInputReportEventInit) -> Option; #[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: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &HidInputReportEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &HidInputReportEventInit) -> ::js_sys::DataView; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &HidInputReportEventInit, val: &::js_sys::DataView); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[doc = "Get the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`, `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "device")] pub fn get_device(this: &HidInputReportEventInit) -> HidDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[doc = "Change the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`, `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "device")] pub fn set_device(this: &HidInputReportEventInit, val: &HidDevice); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `reportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reportId")] pub fn get_report_id(this: &HidInputReportEventInit) -> u8; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reportId")] pub fn set_report_id(this: &HidInputReportEventInit, val: u8); } #[cfg(web_sys_unstable_apis)] impl HidInputReportEventInit { #[cfg(feature = "HidDevice")] #[doc = "Construct a new `HidInputReportEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidDevice`, `HidInputReportEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(data: &::js_sys::DataView, device: &HidDevice, report_id: u8) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_data(data); ret.set_device(device); ret.set_report_id(report_id); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::js_sys::DataView) -> &mut Self { self.set_data(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidDevice")] #[deprecated = "Use `set_device()` instead."] pub fn device(&mut self, val: &HidDevice) -> &mut Self { self.set_device(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_report_id()` instead."] pub fn report_id(&mut self, val: u8) -> &mut Self { self.set_report_id(val); self } } web-sys-0.3.81/src/features/gen_HidReportInfo.rs000064400000000000000000000077761046102023000176470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDReportInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidReportInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidReportInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `items` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "items")] pub fn get_items(this: &HidReportInfo) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `items` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "items")] pub fn set_items(this: &HidReportInfo, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `reportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reportId")] pub fn get_report_id(this: &HidReportInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reportId")] pub fn set_report_id(this: &HidReportInfo, val: u8); } #[cfg(web_sys_unstable_apis)] impl HidReportInfo { #[doc = "Construct a new `HidReportInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_items()` instead."] pub fn items(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_items(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_report_id()` instead."] pub fn report_id(&mut self, val: u8) -> &mut Self { self.set_report_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for HidReportInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HidReportItem.rs000064400000000000000000001161441046102023000176400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HIDReportItem)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `HidReportItem` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type HidReportItem; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hasNull` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hasNull")] pub fn get_has_null(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hasNull` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hasNull")] pub fn set_has_null(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hasPreferredState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hasPreferredState")] pub fn get_has_preferred_state(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hasPreferredState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hasPreferredState")] pub fn set_has_preferred_state(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isAbsolute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isAbsolute")] pub fn get_is_absolute(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isAbsolute` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isAbsolute")] pub fn set_is_absolute(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isArray` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isArray")] pub fn get_is_array(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isArray` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isArray")] pub fn set_is_array(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isBufferedBytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isBufferedBytes")] pub fn get_is_buffered_bytes(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isBufferedBytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isBufferedBytes")] pub fn set_is_buffered_bytes(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isConstant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isConstant")] pub fn get_is_constant(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isConstant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isConstant")] pub fn set_is_constant(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isLinear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isLinear")] pub fn get_is_linear(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isLinear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isLinear")] pub fn set_is_linear(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isRange")] pub fn get_is_range(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isRange")] pub fn set_is_range(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `isVolatile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "isVolatile")] pub fn get_is_volatile(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `isVolatile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "isVolatile")] pub fn set_is_volatile(this: &HidReportItem, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `logicalMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "logicalMaximum")] pub fn get_logical_maximum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `logicalMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "logicalMaximum")] pub fn set_logical_maximum(this: &HidReportItem, val: i32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `logicalMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "logicalMinimum")] pub fn get_logical_minimum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `logicalMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "logicalMinimum")] pub fn set_logical_minimum(this: &HidReportItem, val: i32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `physicalMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "physicalMaximum")] pub fn get_physical_maximum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `physicalMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "physicalMaximum")] pub fn set_physical_maximum(this: &HidReportItem, val: i32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `physicalMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "physicalMinimum")] pub fn get_physical_minimum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `physicalMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "physicalMinimum")] pub fn set_physical_minimum(this: &HidReportItem, val: i32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `reportCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reportCount")] pub fn get_report_count(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reportCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reportCount")] pub fn set_report_count(this: &HidReportItem, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `reportSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reportSize")] pub fn get_report_size(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reportSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reportSize")] pub fn set_report_size(this: &HidReportItem, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `strings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "strings")] pub fn get_strings(this: &HidReportItem) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `strings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "strings")] pub fn set_strings(this: &HidReportItem, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitExponent")] pub fn get_unit_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitExponent")] pub fn set_unit_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorCurrentExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorCurrentExponent")] pub fn get_unit_factor_current_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorCurrentExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorCurrentExponent")] pub fn set_unit_factor_current_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorLengthExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorLengthExponent")] pub fn get_unit_factor_length_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorLengthExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorLengthExponent")] pub fn set_unit_factor_length_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorLuminousIntensityExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorLuminousIntensityExponent")] pub fn get_unit_factor_luminous_intensity_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorLuminousIntensityExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorLuminousIntensityExponent")] pub fn set_unit_factor_luminous_intensity_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorMassExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorMassExponent")] pub fn get_unit_factor_mass_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorMassExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorMassExponent")] pub fn set_unit_factor_mass_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorTemperatureExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorTemperatureExponent")] pub fn get_unit_factor_temperature_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorTemperatureExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorTemperatureExponent")] pub fn set_unit_factor_temperature_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `unitFactorTimeExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitFactorTimeExponent")] pub fn get_unit_factor_time_exponent(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `unitFactorTimeExponent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitFactorTimeExponent")] pub fn set_unit_factor_time_exponent(this: &HidReportItem, val: i8); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidUnitSystem")] #[doc = "Get the `unitSystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`, `HidUnitSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "unitSystem")] pub fn get_unit_system(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidUnitSystem")] #[doc = "Change the `unitSystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`, `HidUnitSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "unitSystem")] pub fn set_unit_system(this: &HidReportItem, val: HidUnitSystem); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usageMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usageMaximum")] pub fn get_usage_maximum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usageMaximum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usageMaximum")] pub fn set_usage_maximum(this: &HidReportItem, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usageMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usageMinimum")] pub fn get_usage_minimum(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usageMinimum` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usageMinimum")] pub fn set_usage_minimum(this: &HidReportItem, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usages` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usages")] pub fn get_usages(this: &HidReportItem) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usages` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usages")] pub fn set_usages(this: &HidReportItem, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `wrap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "wrap")] pub fn get_wrap(this: &HidReportItem) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `wrap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "wrap")] pub fn set_wrap(this: &HidReportItem, val: bool); } #[cfg(web_sys_unstable_apis)] impl HidReportItem { #[doc = "Construct a new `HidReportItem`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidReportItem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_has_null()` instead."] pub fn has_null(&mut self, val: bool) -> &mut Self { self.set_has_null(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_has_preferred_state()` instead."] pub fn has_preferred_state(&mut self, val: bool) -> &mut Self { self.set_has_preferred_state(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_absolute()` instead."] pub fn is_absolute(&mut self, val: bool) -> &mut Self { self.set_is_absolute(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_array()` instead."] pub fn is_array(&mut self, val: bool) -> &mut Self { self.set_is_array(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_buffered_bytes()` instead."] pub fn is_buffered_bytes(&mut self, val: bool) -> &mut Self { self.set_is_buffered_bytes(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_constant()` instead."] pub fn is_constant(&mut self, val: bool) -> &mut Self { self.set_is_constant(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_linear()` instead."] pub fn is_linear(&mut self, val: bool) -> &mut Self { self.set_is_linear(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_range()` instead."] pub fn is_range(&mut self, val: bool) -> &mut Self { self.set_is_range(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_is_volatile()` instead."] pub fn is_volatile(&mut self, val: bool) -> &mut Self { self.set_is_volatile(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_logical_maximum()` instead."] pub fn logical_maximum(&mut self, val: i32) -> &mut Self { self.set_logical_maximum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_logical_minimum()` instead."] pub fn logical_minimum(&mut self, val: i32) -> &mut Self { self.set_logical_minimum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_physical_maximum()` instead."] pub fn physical_maximum(&mut self, val: i32) -> &mut Self { self.set_physical_maximum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_physical_minimum()` instead."] pub fn physical_minimum(&mut self, val: i32) -> &mut Self { self.set_physical_minimum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_report_count()` instead."] pub fn report_count(&mut self, val: u16) -> &mut Self { self.set_report_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_report_size()` instead."] pub fn report_size(&mut self, val: u16) -> &mut Self { self.set_report_size(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_strings()` instead."] pub fn strings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_strings(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_exponent()` instead."] pub fn unit_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_current_exponent()` instead."] pub fn unit_factor_current_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_current_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_length_exponent()` instead."] pub fn unit_factor_length_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_length_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_luminous_intensity_exponent()` instead."] pub fn unit_factor_luminous_intensity_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_luminous_intensity_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_mass_exponent()` instead."] pub fn unit_factor_mass_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_mass_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_temperature_exponent()` instead."] pub fn unit_factor_temperature_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_temperature_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_unit_factor_time_exponent()` instead."] pub fn unit_factor_time_exponent(&mut self, val: i8) -> &mut Self { self.set_unit_factor_time_exponent(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HidUnitSystem")] #[deprecated = "Use `set_unit_system()` instead."] pub fn unit_system(&mut self, val: HidUnitSystem) -> &mut Self { self.set_unit_system(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage_maximum()` instead."] pub fn usage_maximum(&mut self, val: u32) -> &mut Self { self.set_usage_maximum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usage_minimum()` instead."] pub fn usage_minimum(&mut self, val: u32) -> &mut Self { self.set_usage_minimum(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usages()` instead."] pub fn usages(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_usages(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_wrap()` instead."] pub fn wrap(&mut self, val: bool) -> &mut Self { self.set_wrap(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for HidReportItem { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HidUnitSystem.rs000064400000000000000000000014331046102023000176640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `HidUnitSystem` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HidUnitSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum HidUnitSystem { None = "none", SiLinear = "si-linear", SiRotation = "si-rotation", EnglishLinear = "english-linear", EnglishRotation = "english-rotation", VendorDefined = "vendor-defined", Reserved = "reserved", } web-sys-0.3.81/src/features/gen_HiddenPluginEventInit.rs000064400000000000000000000062021046102023000213120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &HiddenPluginEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &HiddenPluginEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &HiddenPluginEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &HiddenPluginEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &HiddenPluginEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &HiddenPluginEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } } impl Default for HiddenPluginEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_History.rs000064400000000000000000000142761046102023000165650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_HitRegionOptions.rs000064400000000000000000000063371046102023000203670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "Element")] #[doc = "Get the `control` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `HitRegionOptions`*"] #[wasm_bindgen(method, getter = "control")] pub fn get_control(this: &HitRegionOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "control")] pub fn set_control(this: &HitRegionOptions, val: Option<&Element>); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &HitRegionOptions) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &HitRegionOptions, val: &str); #[cfg(feature = "Path2d")] #[doc = "Get the `path` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`, `Path2d`*"] #[wasm_bindgen(method, getter = "path")] pub fn get_path(this: &HitRegionOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "path")] pub fn set_path(this: &HitRegionOptions, val: Option<&Path2d>); } 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")] #[deprecated = "Use `set_control()` instead."] pub fn control(&mut self, val: Option<&Element>) -> &mut Self { self.set_control(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(feature = "Path2d")] #[deprecated = "Use `set_path()` instead."] pub fn path(&mut self, val: Option<&Path2d>) -> &mut Self { self.set_path(val); self } } impl Default for HitRegionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HkdfParams.rs000064400000000000000000000073511046102023000171400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &HkdfParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &HkdfParams, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &HkdfParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &HkdfParams, val: &::wasm_bindgen::JsValue); #[doc = "Get the `info` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, getter = "info")] pub fn get_info(this: &HkdfParams) -> ::js_sys::Object; #[doc = "Change the `info` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, setter = "info")] pub fn set_info(this: &HkdfParams, val: &::js_sys::Object); #[doc = "Get the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, getter = "salt")] pub fn get_salt(this: &HkdfParams) -> ::js_sys::Object; #[doc = "Change the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, setter = "salt")] pub fn set_salt(this: &HkdfParams, val: &::js_sys::Object); } 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.set_name(name); ret.set_hash(hash); ret.set_info(info); ret.set_salt(salt); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } #[deprecated = "Use `set_info()` instead."] pub fn info(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_info(val); self } #[deprecated = "Use `set_salt()` instead."] pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_salt(val); self } } web-sys-0.3.81/src/features/gen_HmacDerivedKeyParams.rs000064400000000000000000000061111046102023000211010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &HmacDerivedKeyParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &HmacDerivedKeyParams, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &HmacDerivedKeyParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &HmacDerivedKeyParams, val: &::wasm_bindgen::JsValue); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &HmacDerivedKeyParams) -> Option; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &HmacDerivedKeyParams, val: u32); } 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.set_name(name); ret.set_hash(hash); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_HmacImportParams.rs000064400000000000000000000044661046102023000203330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &HmacImportParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &HmacImportParams, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &HmacImportParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &HmacImportParams, val: &::wasm_bindgen::JsValue); } 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.set_name(name); ret.set_hash(hash); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } } web-sys-0.3.81/src/features/gen_HmacKeyAlgorithm.rs000064400000000000000000000062721046102023000203110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &HmacKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &HmacKeyAlgorithm, val: &str); #[cfg(feature = "KeyAlgorithm")] #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`, `KeyAlgorithm`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &HmacKeyAlgorithm) -> KeyAlgorithm; #[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`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &HmacKeyAlgorithm, val: &KeyAlgorithm); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &HmacKeyAlgorithm) -> u32; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &HmacKeyAlgorithm, val: u32); } 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.set_name(name); ret.set_hash(hash); ret.set_length(length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "KeyAlgorithm")] #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &KeyAlgorithm) -> &mut Self { self.set_hash(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_HmacKeyGenParams.rs000064400000000000000000000057751046102023000202470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &HmacKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &HmacKeyGenParams, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &HmacKeyGenParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &HmacKeyGenParams, val: &::wasm_bindgen::JsValue); #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &HmacKeyGenParams) -> Option; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &HmacKeyGenParams, val: u32); } 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.set_name(name); ret.set_hash(hash); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } } web-sys-0.3.81/src/features/gen_HtmlAllCollection.rs000064400000000000000000000063741046102023000204750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlAnchorElement.rs000064400000000000000000000560651046102023000204770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlAreaElement.rs000064400000000000000000000457371046102023000201410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlAudioElement.rs000064400000000000000000000032121046102023000203100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlBaseElement.rs000064400000000000000000000047411046102023000201310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlBodyElement.rs000064400000000000000000000557471046102023000201700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = ongamepadconnected)] #[doc = "Getter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepadconnected(this: &HtmlBodyElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = ongamepadconnected)] #[doc = "Setter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepadconnected(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLBodyElement" , js_name = ongamepaddisconnected)] #[doc = "Getter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepaddisconnected(this: &HtmlBodyElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = ongamepaddisconnected)] #[doc = "Setter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepaddisconnected(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); } web-sys-0.3.81/src/features/gen_HtmlBrElement.rs000064400000000000000000000030471046102023000176200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlButtonElement.rs000064400000000000000000000405231046102023000205300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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 (structural , method , getter , js_class = "HTMLButtonElement" , js_name = popoverTargetElement)] #[doc = "Getter for the `popoverTargetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn popover_target_element(this: &HtmlButtonElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = popoverTargetElement)] #[doc = "Setter for the `popoverTargetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_popover_target_element(this: &HtmlButtonElement, value: Option<&Element>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = popoverTargetAction)] #[doc = "Getter for the `popoverTargetAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn popover_target_action(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = popoverTargetAction)] #[doc = "Setter for the `popoverTargetAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] pub fn set_popover_target_action(this: &HtmlButtonElement, value: &str); # [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); } web-sys-0.3.81/src/features/gen_HtmlCanvasElement.rs000064400000000000000000000210021046102023000204570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); #[cfg(feature = "MediaStream")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = captureStream)] #[doc = "The `captureStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `MediaStream`*"] pub fn capture_stream(this: &HtmlCanvasElement) -> Result; #[cfg(feature = "MediaStream")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = captureStream)] #[doc = "The `captureStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `MediaStream`*"] pub fn capture_stream_with_frame_request_rate( this: &HtmlCanvasElement, frame_request_rate: f64, ) -> Result; # [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<::alloc::string::String, 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_with_type( this: &HtmlCanvasElement, type_: &str, ) -> Result<::alloc::string::String, 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_with_type_and_encoder_options( this: &HtmlCanvasElement, type_: &str, encoder_options: &::wasm_bindgen::JsValue, ) -> Result<::alloc::string::String, JsValue>; #[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; } web-sys-0.3.81/src/features/gen_HtmlCollection.rs000064400000000000000000000054601046102023000200370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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; } web-sys-0.3.81/src/features/gen_HtmlDListElement.rs000064400000000000000000000031161046102023000202710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_HtmlDataElement.rs000064400000000000000000000031031046102023000201170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlDataListElement.rs000064400000000000000000000023311046102023000207550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlDetailsElement.rs000064400000000000000000000031221046102023000206340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_HtmlDialogElement.rs000064400000000000000000000103721046102023000204530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_HtmlDirectoryElement.rs000064400000000000000000000032061046102023000212160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_HtmlDivElement.rs000064400000000000000000000030651046102023000177770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlDocument.rs000064400000000000000000000640051046102023000175220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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. As in the literal Javascript `this[key]`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlElement.rs000064400000000000000000003332331046102023000173370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = scrollHeight)] #[doc = "Getter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn scroll_height(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = scrollHeight)] #[doc = "Setter for the `scrollHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/scrollHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_scroll_height(this: &HtmlElement, value: i32); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , 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/HTMLElement/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn scroll_top(this: &HtmlElement) -> i32; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , 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/HTMLElement/scrollTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_scroll_top(this: &HtmlElement, value: i32); # [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) -> ::alloc::string::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) -> ::alloc::string::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); # [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) -> ::alloc::string::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 = inert)] #[doc = "Getter for the `inert` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn inert(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = inert)] #[doc = "Setter for the `inert` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_inert(this: &HtmlElement, value: bool); # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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 = popover)] #[doc = "Getter for the `popover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/popover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn popover(this: &HtmlElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLElement" , js_name = popover)] #[doc = "Setter for the `popover` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/popover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_popover(this: &HtmlElement, value: Option<&str>) -> Result<(), JsValue>; # [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); # [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>); #[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 = 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 = onbeforetoggle)] #[doc = "Getter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onbeforetoggle(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onbeforetoggle)] #[doc = "Setter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onbeforetoggle(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 = onbeforeinput)] #[doc = "Getter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn onbeforeinput(this: &HtmlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = onbeforeinput)] #[doc = "Setter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_onbeforeinput(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>); #[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 = nonce)] #[doc = "Getter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn nonce(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_nonce(this: &HtmlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , 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/HTMLElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn autofocus(this: &HtmlElement) -> bool; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLElement" , 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/HTMLElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn set_autofocus(this: &HtmlElement, value: bool) -> Result<(), JsValue>; # [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 = 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>; #[cfg(feature = "FocusOptions")] # [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: `FocusOptions`, `HtmlElement`*"] pub fn focus_with_options(this: &HtmlElement, options: &FocusOptions) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = hidePopover)] #[doc = "The `hidePopover()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidePopover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn hide_popover(this: &HtmlElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = showPopover)] #[doc = "The `showPopover()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/showPopover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn show_popover(this: &HtmlElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = togglePopover)] #[doc = "The `togglePopover()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/togglePopover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn toggle_popover(this: &HtmlElement) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "HTMLElement" , js_name = togglePopover)] #[doc = "The `togglePopover()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/togglePopover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] pub fn toggle_popover_with_force(this: &HtmlElement, force: bool) -> Result; } web-sys-0.3.81/src/features/gen_HtmlEmbedElement.rs000064400000000000000000000151741046102023000202750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlFieldSetElement.rs000064400000000000000000000160521046102023000207540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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); } web-sys-0.3.81/src/features/gen_HtmlFontElement.rs000064400000000000000000000065571046102023000201740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlFormControlsCollection.rs000064400000000000000000000031661046102023000224100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlFormElement.rs000064400000000000000000000326721046102023000201660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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 (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)] #[doc = "The `requestSubmit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn request_submit(this: &HtmlFormElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLFormElement" , js_name = requestSubmit)] #[doc = "The `requestSubmit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] pub fn request_submit_with_submitter( this: &HtmlFormElement, submitter: Option<&HtmlElement>, ) -> Result<(), JsValue>; # [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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlFrameElement.rs000064400000000000000000000223421046102023000203060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlFrameSetElement.rs000064400000000000000000000476401046102023000207720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = ongamepadconnected)] #[doc = "Getter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepadconnected(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = ongamepadconnected)] #[doc = "Setter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepadconnected(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = ongamepaddisconnected)] #[doc = "Getter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepaddisconnected(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = ongamepaddisconnected)] #[doc = "Setter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepaddisconnected( this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>, ); } web-sys-0.3.81/src/features/gen_HtmlHeadElement.rs000064400000000000000000000012451046102023000201140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlHeadingElement.rs000064400000000000000000000031551046102023000206140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlHrElement.rs000064400000000000000000000121261046102023000176240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlHtmlElement.rs000064400000000000000000000031231046102023000201540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlIFrameElement.rs000064400000000000000000000401151046102023000204150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlImageElement.rs000064400000000000000000000500301046102023000202710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlInputElement.rs000064400000000000000000001420631046102023000203560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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) -> ::alloc::string::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) -> ::alloc::string::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 (structural , method , getter , js_class = "HTMLInputElement" , js_name = popoverTargetElement)] #[doc = "Getter for the `popoverTargetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn popover_target_element(this: &HtmlInputElement) -> Option; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = popoverTargetElement)] #[doc = "Setter for the `popoverTargetElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_popover_target_element(this: &HtmlInputElement, value: Option<&Element>); # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = popoverTargetAction)] #[doc = "Getter for the `popoverTargetAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn popover_target_action(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = popoverTargetAction)] #[doc = "Setter for the `popoverTargetAction` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn set_popover_target_action(this: &HtmlInputElement, value: &str); # [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>; #[cfg(feature = "SelectionMode")] # [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`, `SelectionMode`*"] pub fn set_range_text_with_start_and_end_and_selection_mode( this: &HtmlInputElement, replacement: &str, start: u32, end: u32, selection_mode: SelectionMode, ) -> 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>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLInputElement" , js_name = showPicker)] #[doc = "The `showPicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] pub fn show_picker(this: &HtmlInputElement) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_HtmlLabelElement.rs000064400000000000000000000051161046102023000202730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlLegendElement.rs000064400000000000000000000041621046102023000204520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlLiElement.rs000064400000000000000000000046311046102023000176210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlLinkElement.rs000064400000000000000000000341131046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlMapElement.rs000064400000000000000000000040551046102023000177720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlMediaElement.rs000064400000000000000000000743121046102023000202770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlMenuElement.rs000064400000000000000000000065651046102023000201710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlMenuItemElement.rs000064400000000000000000000202301046102023000207710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] pub fn type_(this: &HtmlMenuItemElement) -> ::alloc::string::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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] pub fn label(this: &HtmlMenuItemElement) -> ::alloc::string::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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] pub fn icon(this: &HtmlMenuItemElement) -> ::alloc::string::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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] pub fn radiogroup(this: &HtmlMenuItemElement) -> ::alloc::string::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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] 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`*"] #[deprecated(note = "Absent in all major browsers")] pub fn set_default_checked(this: &HtmlMenuItemElement, value: bool); } web-sys-0.3.81/src/features/gen_HtmlMetaElement.rs000064400000000000000000000105171046102023000201430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlMeterElement.rs000064400000000000000000000147431046102023000203360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlModElement.rs000064400000000000000000000047351046102023000200010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlOListElement.rs000064400000000000000000000104511046102023000203040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlObjectElement.rs000064400000000000000000000526461046102023000204740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlOptGroupElement.rs000064400000000000000000000050761046102023000210400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlOptionElement.rs000064400000000000000000000236161046102023000205310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlOptionsCollection.rs000064400000000000000000000167521046102023000214210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key] = value`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlOutputElement.rs000064400000000000000000000206071046102023000205560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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); } web-sys-0.3.81/src/features/gen_HtmlParagraphElement.rs000064400000000000000000000032111046102023000211530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlParamElement.rs000064400000000000000000000105261046102023000203150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlPictureElement.rs000064400000000000000000000012671046102023000206720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlPreElement.rs000064400000000000000000000030401046102023000177740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_HtmlProgressElement.rs000064400000000000000000000067411046102023000210650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlQuoteElement.rs000064400000000000000000000031111046102023000203420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlScriptElement.rs000064400000000000000000000256531046102023000205300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlSelectElement.rs000064400000000000000000000540241046102023000204750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key] = value`."] #[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>; } web-sys-0.3.81/src/features/gen_HtmlSlotElement.rs000064400000000000000000000051361046102023000201770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlSourceElement.rs000064400000000000000000000124101046102023000205070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlSpanElement.rs000064400000000000000000000012451046102023000201540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlStyleElement.rs000064400000000000000000000076371046102023000203660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlTableCaptionElement.rs000064400000000000000000000032631046102023000216220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlTableCellElement.rs000064400000000000000000000345731046102023000211140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = abbr)] #[doc = "Getter for the `abbr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/abbr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn abbr(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = abbr)] #[doc = "Setter for the `abbr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/abbr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_abbr(this: &HtmlTableCellElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "HTMLTableCellElement" , 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/HTMLTableCellElement/scope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn scope(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = scope)] #[doc = "Setter for the `scope` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/scope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] pub fn set_scope(this: &HtmlTableCellElement, value: &str); # [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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlTableColElement.rs000064400000000000000000000144101046102023000207360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlTableElement.rs000064400000000000000000000435261046102023000203120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlTableRowElement.rs000064400000000000000000000205071046102023000207740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlTableSectionElement.rs000064400000000000000000000151501046102023000216270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlTemplateElement.rs000064400000000000000000000023371046102023000210310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlTextAreaElement.rs000064400000000000000000000632061046102023000207750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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`*"] #[deprecated( note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead." )] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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 = 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_and_mode( this: &HtmlTextAreaElement, replacement: &str, start: u32, end: u32, mode: &str, ) -> 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>; } web-sys-0.3.81/src/features/gen_HtmlTimeElement.rs000064400000000000000000000031351046102023000201510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlTitleElement.rs000064400000000000000000000032011046102023000203260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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>; } web-sys-0.3.81/src/features/gen_HtmlTrackElement.rs000064400000000000000000000160221046102023000203160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_HtmlUListElement.rs000064400000000000000000000047551046102023000203240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_HtmlUnknownElement.rs000064400000000000000000000012671046102023000207160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_HtmlVideoElement.rs000064400000000000000000000247731046102023000203340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = onenterpictureinpicture)] #[doc = "Getter for the `onenterpictureinpicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/onenterpictureinpicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onenterpictureinpicture(this: &HtmlVideoElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = onenterpictureinpicture)] #[doc = "Setter for the `onenterpictureinpicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/onenterpictureinpicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onenterpictureinpicture(this: &HtmlVideoElement, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = onleavepictureinpicture)] #[doc = "Getter for the `onleavepictureinpicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/onleavepictureinpicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onleavepictureinpicture(this: &HtmlVideoElement) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = onleavepictureinpicture)] #[doc = "Setter for the `onleavepictureinpicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/onleavepictureinpicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onleavepictureinpicture(this: &HtmlVideoElement, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = disablePictureInPicture)] #[doc = "Getter for the `disablePictureInPicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/disablePictureInPicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn disable_picture_in_picture(this: &HtmlVideoElement) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = disablePictureInPicture)] #[doc = "Setter for the `disablePictureInPicture` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/disablePictureInPicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_disable_picture_in_picture(this: &HtmlVideoElement, value: bool); #[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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "HTMLVideoElement" , js_name = requestPictureInPicture)] #[doc = "The `requestPictureInPicture()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/requestPictureInPicture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_picture_in_picture(this: &HtmlVideoElement) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_HttpConnDict.rs000064400000000000000000000031731046102023000174570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `connections` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] #[wasm_bindgen(method, getter = "connections")] pub fn get_connections(this: &HttpConnDict) -> Option<::js_sys::Array>; #[doc = "Change the `connections` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] #[wasm_bindgen(method, setter = "connections")] pub fn set_connections(this: &HttpConnDict, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_connections()` instead."] pub fn connections(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_connections(val); self } } impl Default for HttpConnDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HttpConnInfo.rs000064400000000000000000000056741046102023000174770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `protocolVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, getter = "protocolVersion")] pub fn get_protocol_version(this: &HttpConnInfo) -> Option<::alloc::string::String>; #[doc = "Change the `protocolVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, setter = "protocolVersion")] pub fn set_protocol_version(this: &HttpConnInfo, val: &str); #[doc = "Get the `rtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, getter = "rtt")] pub fn get_rtt(this: &HttpConnInfo) -> Option; #[doc = "Change the `rtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, setter = "rtt")] pub fn set_rtt(this: &HttpConnInfo, val: u32); #[doc = "Get the `ttl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, getter = "ttl")] pub fn get_ttl(this: &HttpConnInfo) -> Option; #[doc = "Change the `ttl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, setter = "ttl")] pub fn set_ttl(this: &HttpConnInfo, val: u32); } 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 } #[deprecated = "Use `set_protocol_version()` instead."] pub fn protocol_version(&mut self, val: &str) -> &mut Self { self.set_protocol_version(val); self } #[deprecated = "Use `set_rtt()` instead."] pub fn rtt(&mut self, val: u32) -> &mut Self { self.set_rtt(val); self } #[deprecated = "Use `set_ttl()` instead."] pub fn ttl(&mut self, val: u32) -> &mut Self { self.set_ttl(val); self } } impl Default for HttpConnInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_HttpConnectionElement.rs000064400000000000000000000140411046102023000213630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "active")] pub fn get_active(this: &HttpConnectionElement) -> Option<::js_sys::Array>; #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "active")] pub fn set_active(this: &HttpConnectionElement, val: &::wasm_bindgen::JsValue); #[doc = "Get the `halfOpens` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "halfOpens")] pub fn get_half_opens(this: &HttpConnectionElement) -> Option<::js_sys::Array>; #[doc = "Change the `halfOpens` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "halfOpens")] pub fn set_half_opens(this: &HttpConnectionElement, val: &::wasm_bindgen::JsValue); #[doc = "Get the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "host")] pub fn get_host(this: &HttpConnectionElement) -> Option<::alloc::string::String>; #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "host")] pub fn set_host(this: &HttpConnectionElement, val: &str); #[doc = "Get the `idle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "idle")] pub fn get_idle(this: &HttpConnectionElement) -> Option<::js_sys::Array>; #[doc = "Change the `idle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "idle")] pub fn set_idle(this: &HttpConnectionElement, val: &::wasm_bindgen::JsValue); #[doc = "Get the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "port")] pub fn get_port(this: &HttpConnectionElement) -> Option; #[doc = "Change the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "port")] pub fn set_port(this: &HttpConnectionElement, val: u32); #[doc = "Get the `spdy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "spdy")] pub fn get_spdy(this: &HttpConnectionElement) -> Option; #[doc = "Change the `spdy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "spdy")] pub fn set_spdy(this: &HttpConnectionElement, val: bool); #[doc = "Get the `ssl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "ssl")] pub fn get_ssl(this: &HttpConnectionElement) -> Option; #[doc = "Change the `ssl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, setter = "ssl")] pub fn set_ssl(this: &HttpConnectionElement, val: bool); } 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 } #[deprecated = "Use `set_active()` instead."] pub fn active(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_active(val); self } #[deprecated = "Use `set_half_opens()` instead."] pub fn half_opens(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_half_opens(val); self } #[deprecated = "Use `set_host()` instead."] pub fn host(&mut self, val: &str) -> &mut Self { self.set_host(val); self } #[deprecated = "Use `set_idle()` instead."] pub fn idle(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_idle(val); self } #[deprecated = "Use `set_port()` instead."] pub fn port(&mut self, val: u32) -> &mut Self { self.set_port(val); self } #[deprecated = "Use `set_spdy()` instead."] pub fn spdy(&mut self, val: bool) -> &mut Self { self.set_spdy(val); self } #[deprecated = "Use `set_ssl()` instead."] pub fn ssl(&mut self, val: bool) -> &mut Self { self.set_ssl(val); self } } impl Default for HttpConnectionElement { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbCursor.rs000064400000000000000000000134101046102023000170050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; #[cfg(feature = "IdbRequest")] # [wasm_bindgen (structural , method , getter , js_class = "IDBCursor" , 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/IDBCursor/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] #[deprecated] pub fn request(this: &IdbCursor) -> IdbRequest; # [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; } web-sys-0.3.81/src/features/gen_IdbCursorDirection.rs000064400000000000000000000006501046102023000206500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_IdbCursorWithValue.rs000064400000000000000000000021611046102023000206370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_IdbDatabase.rs000064400000000000000000000341321046102023000172400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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, options: &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; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "IdbTransaction", feature = "IdbTransactionMode", feature = "IdbTransactionOptions", ))] # [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`, `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transaction_with_str_and_mode_and_options( this: &IdbDatabase, store_names: &str, mode: IdbTransactionMode, options: &IdbTransactionOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "IdbTransaction", feature = "IdbTransactionMode", feature = "IdbTransactionOptions", ))] # [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`, `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transaction_with_str_sequence_and_mode_and_options( this: &IdbDatabase, store_names: &::wasm_bindgen::JsValue, mode: IdbTransactionMode, options: &IdbTransactionOptions, ) -> Result; } web-sys-0.3.81/src/features/gen_IdbFactory.rs000064400000000000000000000107511046102023000171440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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(this: &IdbFactory, name: &str) -> 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(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`*"] #[deprecated] pub fn open_with_idb_open_db_options( this: &IdbFactory, name: &str, options: &IdbOpenDbOptions, ) -> Result; } web-sys-0.3.81/src/features/gen_IdbFileHandle.rs000064400000000000000000000526251046102023000175360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn set_location(this: &IdbFileHandle, value: 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`*"] #[deprecated] pub fn set_location_opt_u32(this: &IdbFileHandle, value: 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`*"] #[deprecated] pub fn set_location_opt_f64(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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn append_with_u8_array( this: &IdbFileHandle, value: &mut [u8], ) -> 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`*"] #[deprecated] pub fn append_with_js_u8_array( this: &IdbFileHandle, value: &::js_sys::Uint8Array, ) -> 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn write_with_u8_array( this: &IdbFileHandle, value: &[u8], ) -> 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`*"] #[deprecated] pub fn write_with_js_u8_array( this: &IdbFileHandle, value: &::js_sys::Uint8Array, ) -> 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`*"] #[deprecated] pub fn write_with_blob( this: &IdbFileHandle, value: &Blob, ) -> Result, JsValue>; } web-sys-0.3.81/src/features/gen_IdbFileMetadataParameters.rs000064400000000000000000000050721046102023000221010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] pub type IdbFileMetadataParameters; #[doc = "Get the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] #[deprecated] #[wasm_bindgen(method, getter = "lastModified")] pub fn get_last_modified(this: &IdbFileMetadataParameters) -> Option; #[doc = "Change the `lastModified` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] #[deprecated] #[wasm_bindgen(method, setter = "lastModified")] pub fn set_last_modified(this: &IdbFileMetadataParameters, val: bool); #[doc = "Get the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] #[deprecated] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &IdbFileMetadataParameters) -> Option; #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] #[deprecated] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &IdbFileMetadataParameters, val: bool); } impl IdbFileMetadataParameters { #[doc = "Construct a new `IdbFileMetadataParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] #[deprecated] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_last_modified()` instead."] pub fn last_modified(&mut self, val: bool) -> &mut Self { self.set_last_modified(val); self } #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: bool) -> &mut Self { self.set_size(val); self } } impl Default for IdbFileMetadataParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbFileRequest.rs000064400000000000000000000053371046102023000177710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn set_onprogress(this: &IdbFileRequest, value: Option<&::js_sys::Function>); } web-sys-0.3.81/src/features/gen_IdbIndex.rs000064400000000000000000000311511046102023000166010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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`*"] #[deprecated] pub fn locale(this: &IdbIndex) -> Option<::alloc::string::String>; # [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`*"] #[deprecated] 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, query: &::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, query: &::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, query: &::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, query: &::wasm_bindgen::JsValue, count: 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, query: &::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, query: &::wasm_bindgen::JsValue, count: 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, query: &::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, query: &::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, query: &::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, query: &::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, query: &::wasm_bindgen::JsValue, direction: IdbCursorDirection, ) -> Result; } web-sys-0.3.81/src/features/gen_IdbIndexParameters.rs000064400000000000000000000061671046102023000206360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[deprecated] #[wasm_bindgen(method, getter = "locale")] pub fn get_locale(this: &IdbIndexParameters) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[deprecated] #[wasm_bindgen(method, setter = "locale")] pub fn set_locale(this: &IdbIndexParameters, val: Option<&str>); #[doc = "Get the `multiEntry` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[wasm_bindgen(method, getter = "multiEntry")] pub fn get_multi_entry(this: &IdbIndexParameters) -> Option; #[doc = "Change the `multiEntry` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[wasm_bindgen(method, setter = "multiEntry")] pub fn set_multi_entry(this: &IdbIndexParameters, val: bool); #[doc = "Get the `unique` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[wasm_bindgen(method, getter = "unique")] pub fn get_unique(this: &IdbIndexParameters) -> Option; #[doc = "Change the `unique` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[wasm_bindgen(method, setter = "unique")] pub fn set_unique(this: &IdbIndexParameters, val: bool); } 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 } #[deprecated = "Use `set_locale()` instead."] pub fn locale(&mut self, val: Option<&str>) -> &mut Self { self.set_locale(val); self } #[deprecated = "Use `set_multi_entry()` instead."] pub fn multi_entry(&mut self, val: bool) -> &mut Self { self.set_multi_entry(val); self } #[deprecated = "Use `set_unique()` instead."] pub fn unique(&mut self, val: bool) -> &mut Self { self.set_unique(val); self } } impl Default for IdbIndexParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbKeyRange.rs000064400000000000000000000156321046102023000172450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_static)"] #[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_static)"] #[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_static)"] #[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_static)"] #[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_static)"] #[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_static)"] #[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_static)"] #[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_static)"] #[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; } web-sys-0.3.81/src/features/gen_IdbLocaleAwareKeyRange.rs000064400000000000000000000050241046102023000213370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] #[deprecated] 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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] #[deprecated] 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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] #[deprecated] pub fn bound_with_lower_open_and_upper_open( lower: &::wasm_bindgen::JsValue, upper: &::wasm_bindgen::JsValue, lower_open: bool, upper_open: bool, ) -> Result; } web-sys-0.3.81/src/features/gen_IdbMutableFile.rs000064400000000000000000000120321046102023000177200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn name(this: &IdbMutableFile) -> ::alloc::string::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`*"] #[deprecated] pub fn type_(this: &IdbMutableFile) -> ::alloc::string::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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] 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`*"] #[deprecated] pub fn open(this: &IdbMutableFile) -> Result; } web-sys-0.3.81/src/features/gen_IdbObjectStore.rs000064400000000000000000000461501046102023000177620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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, query: &::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, options: &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, options: &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, query: &::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, 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, query: &::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, query: &::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, query: &::wasm_bindgen::JsValue, count: 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, query: &::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, query: &::wasm_bindgen::JsValue, count: 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, query: &::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, query: &::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, query: &::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, query: &::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, query: &::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; } web-sys-0.3.81/src/features/gen_IdbObjectStoreParameters.rs000064400000000000000000000051141046102023000220010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `autoIncrement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] #[wasm_bindgen(method, getter = "autoIncrement")] pub fn get_auto_increment(this: &IdbObjectStoreParameters) -> Option; #[doc = "Change the `autoIncrement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] #[wasm_bindgen(method, setter = "autoIncrement")] pub fn set_auto_increment(this: &IdbObjectStoreParameters, val: bool); #[doc = "Get the `keyPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] #[wasm_bindgen(method, getter = "keyPath")] pub fn get_key_path(this: &IdbObjectStoreParameters) -> ::wasm_bindgen::JsValue; #[doc = "Change the `keyPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] #[wasm_bindgen(method, setter = "keyPath")] pub fn set_key_path(this: &IdbObjectStoreParameters, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_auto_increment()` instead."] pub fn auto_increment(&mut self, val: bool) -> &mut Self { self.set_auto_increment(val); self } #[deprecated = "Use `set_key_path()` instead."] pub fn key_path(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_key_path(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } } impl Default for IdbObjectStoreParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbOpenDbOptions.rs000064400000000000000000000050571046102023000202630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] pub type IdbOpenDbOptions; #[cfg(feature = "StorageType")] #[doc = "Get the `storage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`, `StorageType`*"] #[deprecated] #[wasm_bindgen(method, getter = "storage")] pub fn get_storage(this: &IdbOpenDbOptions) -> Option; #[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`*"] #[deprecated] #[wasm_bindgen(method, setter = "storage")] pub fn set_storage(this: &IdbOpenDbOptions, val: StorageType); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] #[deprecated] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &IdbOpenDbOptions) -> Option; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] #[deprecated] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &IdbOpenDbOptions, val: f64); } impl IdbOpenDbOptions { #[doc = "Construct a new `IdbOpenDbOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] #[deprecated] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "StorageType")] #[deprecated = "Use `set_storage()` instead."] pub fn storage(&mut self, val: StorageType) -> &mut Self { self.set_storage(val); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: f64) -> &mut Self { self.set_version(val); self } } impl Default for IdbOpenDbOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbOpenDbRequest.rs000064400000000000000000000051651046102023000202600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_IdbRequest.rs000064400000000000000000000115561046102023000171710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_IdbRequestReadyState.rs000064400000000000000000000005661046102023000211560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_IdbTransaction.rs000064400000000000000000000156171046102023000200300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = "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; #[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>); # [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>; # [wasm_bindgen (catch , method , structural , js_class = "IDBTransaction" , js_name = commit)] #[doc = "The `commit()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/commit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] #[deprecated] pub fn commit(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; } web-sys-0.3.81/src/features/gen_IdbTransactionDurability.rs000064400000000000000000000012451046102023000220510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `IdbTransactionDurability` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionDurability`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum IdbTransactionDurability { Default = "default", Strict = "strict", Relaxed = "relaxed", } web-sys-0.3.81/src/features/gen_IdbTransactionMode.rs000064400000000000000000000007411046102023000206250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", Versionchange = "versionchange", Readwriteflush = "readwriteflush", Cleanup = "cleanup", } web-sys-0.3.81/src/features/gen_IdbTransactionOptions.rs000064400000000000000000000061021046102023000213710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IDBTransactionOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IdbTransactionOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type IdbTransactionOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IdbTransactionDurability")] #[doc = "Get the `durability` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionDurability`, `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "durability")] pub fn get_durability(this: &IdbTransactionOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IdbTransactionDurability")] #[doc = "Change the `durability` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionDurability`, `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "durability")] pub fn set_durability(this: &IdbTransactionOptions, val: IdbTransactionDurability); } #[cfg(web_sys_unstable_apis)] impl IdbTransactionOptions { #[doc = "Construct a new `IdbTransactionOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbTransactionOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "IdbTransactionDurability")] #[deprecated = "Use `set_durability()` instead."] pub fn durability(&mut self, val: IdbTransactionDurability) -> &mut Self { self.set_durability(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for IdbTransactionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdbVersionChangeEvent.rs000064400000000000000000000054621046102023000212750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_IdbVersionChangeEventInit.rs000064400000000000000000000114121046102023000221110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &IdbVersionChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &IdbVersionChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &IdbVersionChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &IdbVersionChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &IdbVersionChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &IdbVersionChangeEventInit, val: bool); #[doc = "Get the `newVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, getter = "newVersion")] pub fn get_new_version(this: &IdbVersionChangeEventInit) -> Option; #[doc = "Change the `newVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, setter = "newVersion")] pub fn set_new_version(this: &IdbVersionChangeEventInit, val: Option); #[doc = "Get the `oldVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, getter = "oldVersion")] pub fn get_old_version(this: &IdbVersionChangeEventInit) -> Option; #[doc = "Change the `oldVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] #[wasm_bindgen(method, setter = "oldVersion")] pub fn set_old_version(this: &IdbVersionChangeEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_new_version()` instead."] pub fn new_version(&mut self, val: Option) -> &mut Self { self.set_new_version(val); self } #[deprecated = "Use `set_old_version()` instead."] pub fn old_version(&mut self, val: f64) -> &mut Self { self.set_old_version(val); self } } impl Default for IdbVersionChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IdleDeadline.rs000064400000000000000000000026751046102023000174270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_IdleRequestOptions.rs000064400000000000000000000031511046102023000207140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &IdleRequestOptions) -> Option; #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &IdleRequestOptions, val: u32); } 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 } #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } } impl Default for IdleRequestOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IirFilterNode.rs000064400000000000000000000143731046102023000176210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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], ); # [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_with_f32_array_and_f32_slice_and_f32_slice( this: &IirFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &mut [f32], phase_response: &mut [f32], ); # [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_with_f32_slice_and_f32_array_and_f32_slice( this: &IirFilterNode, frequency_hz: &mut [f32], mag_response: &::js_sys::Float32Array, phase_response: &mut [f32], ); # [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_with_f32_array_and_f32_array_and_f32_slice( this: &IirFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &::js_sys::Float32Array, phase_response: &mut [f32], ); # [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_with_f32_slice_and_f32_slice_and_f32_array( this: &IirFilterNode, frequency_hz: &mut [f32], mag_response: &mut [f32], phase_response: &::js_sys::Float32Array, ); # [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_with_f32_array_and_f32_slice_and_f32_array( this: &IirFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &mut [f32], phase_response: &::js_sys::Float32Array, ); # [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_with_f32_slice_and_f32_array_and_f32_array( this: &IirFilterNode, frequency_hz: &mut [f32], mag_response: &::js_sys::Float32Array, phase_response: &::js_sys::Float32Array, ); # [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_with_f32_array_and_f32_array_and_f32_array( this: &IirFilterNode, frequency_hz: &::js_sys::Float32Array, mag_response: &::js_sys::Float32Array, phase_response: &::js_sys::Float32Array, ); } web-sys-0.3.81/src/features/gen_IirFilterOptions.rs000064400000000000000000000124421046102023000203620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &IirFilterOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &IirFilterOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `IirFilterOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &IirFilterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &IirFilterOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `IirFilterOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &IirFilterOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &IirFilterOptions, val: ChannelInterpretation); #[doc = "Get the `feedback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, getter = "feedback")] pub fn get_feedback(this: &IirFilterOptions) -> ::js_sys::Array; #[doc = "Change the `feedback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, setter = "feedback")] pub fn set_feedback(this: &IirFilterOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `feedforward` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, getter = "feedforward")] pub fn get_feedforward(this: &IirFilterOptions) -> ::js_sys::Array; #[doc = "Change the `feedforward` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] #[wasm_bindgen(method, setter = "feedforward")] pub fn set_feedforward(this: &IirFilterOptions, val: &::wasm_bindgen::JsValue); } 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.set_feedback(feedback); ret.set_feedforward(feedforward); ret } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_feedback()` instead."] pub fn feedback(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_feedback(val); self } #[deprecated = "Use `set_feedforward()` instead."] pub fn feedforward(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_feedforward(val); self } } web-sys-0.3.81/src/features/gen_ImageBitmap.rs000064400000000000000000000034451046102023000172770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_ImageBitmapOptions.rs000064400000000000000000000146221046102023000206520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageBitmapOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageBitmapOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] pub type ImageBitmapOptions; #[cfg(feature = "ColorSpaceConversion")] #[doc = "Get the `colorSpaceConversion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ColorSpaceConversion`, `ImageBitmapOptions`*"] #[wasm_bindgen(method, getter = "colorSpaceConversion")] pub fn get_color_space_conversion(this: &ImageBitmapOptions) -> Option; #[cfg(feature = "ColorSpaceConversion")] #[doc = "Change the `colorSpaceConversion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ColorSpaceConversion`, `ImageBitmapOptions`*"] #[wasm_bindgen(method, setter = "colorSpaceConversion")] pub fn set_color_space_conversion(this: &ImageBitmapOptions, val: ColorSpaceConversion); #[cfg(feature = "ImageOrientation")] #[doc = "Get the `imageOrientation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageOrientation`*"] #[wasm_bindgen(method, getter = "imageOrientation")] pub fn get_image_orientation(this: &ImageBitmapOptions) -> Option; #[cfg(feature = "ImageOrientation")] #[doc = "Change the `imageOrientation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ImageOrientation`*"] #[wasm_bindgen(method, setter = "imageOrientation")] pub fn set_image_orientation(this: &ImageBitmapOptions, val: ImageOrientation); #[cfg(feature = "PremultiplyAlpha")] #[doc = "Get the `premultiplyAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `PremultiplyAlpha`*"] #[wasm_bindgen(method, getter = "premultiplyAlpha")] pub fn get_premultiply_alpha(this: &ImageBitmapOptions) -> Option; #[cfg(feature = "PremultiplyAlpha")] #[doc = "Change the `premultiplyAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `PremultiplyAlpha`*"] #[wasm_bindgen(method, setter = "premultiplyAlpha")] pub fn set_premultiply_alpha(this: &ImageBitmapOptions, val: PremultiplyAlpha); #[doc = "Get the `resizeHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] #[wasm_bindgen(method, getter = "resizeHeight")] pub fn get_resize_height(this: &ImageBitmapOptions) -> Option; #[doc = "Change the `resizeHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] #[wasm_bindgen(method, setter = "resizeHeight")] pub fn set_resize_height(this: &ImageBitmapOptions, val: u32); #[cfg(feature = "ResizeQuality")] #[doc = "Get the `resizeQuality` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ResizeQuality`*"] #[wasm_bindgen(method, getter = "resizeQuality")] pub fn get_resize_quality(this: &ImageBitmapOptions) -> Option; #[cfg(feature = "ResizeQuality")] #[doc = "Change the `resizeQuality` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`, `ResizeQuality`*"] #[wasm_bindgen(method, setter = "resizeQuality")] pub fn set_resize_quality(this: &ImageBitmapOptions, val: ResizeQuality); #[doc = "Get the `resizeWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] #[wasm_bindgen(method, getter = "resizeWidth")] pub fn get_resize_width(this: &ImageBitmapOptions) -> Option; #[doc = "Change the `resizeWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] #[wasm_bindgen(method, setter = "resizeWidth")] pub fn set_resize_width(this: &ImageBitmapOptions, val: u32); } impl ImageBitmapOptions { #[doc = "Construct a new `ImageBitmapOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmapOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ColorSpaceConversion")] #[deprecated = "Use `set_color_space_conversion()` instead."] pub fn color_space_conversion(&mut self, val: ColorSpaceConversion) -> &mut Self { self.set_color_space_conversion(val); self } #[cfg(feature = "ImageOrientation")] #[deprecated = "Use `set_image_orientation()` instead."] pub fn image_orientation(&mut self, val: ImageOrientation) -> &mut Self { self.set_image_orientation(val); self } #[cfg(feature = "PremultiplyAlpha")] #[deprecated = "Use `set_premultiply_alpha()` instead."] pub fn premultiply_alpha(&mut self, val: PremultiplyAlpha) -> &mut Self { self.set_premultiply_alpha(val); self } #[deprecated = "Use `set_resize_height()` instead."] pub fn resize_height(&mut self, val: u32) -> &mut Self { self.set_resize_height(val); self } #[cfg(feature = "ResizeQuality")] #[deprecated = "Use `set_resize_quality()` instead."] pub fn resize_quality(&mut self, val: ResizeQuality) -> &mut Self { self.set_resize_quality(val); self } #[deprecated = "Use `set_resize_width()` instead."] pub fn resize_width(&mut self, val: u32) -> &mut Self { self.set_resize_width(val); self } } impl Default for ImageBitmapOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ImageBitmapRenderingContext.rs000064400000000000000000000035011046102023000224730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_ImageCapture.rs000064400000000000000000000124121046102023000174600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageCapture; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] # [wasm_bindgen (structural , method , getter , js_class = "ImageCapture" , 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/ImageCapture/track)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCapture`, `MediaStreamTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn track(this: &ImageCapture) -> MediaStreamTrack; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] #[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`, `MediaStreamTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(video_track: &MediaStreamTrack) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = getPhotoCapabilities)] #[doc = "The `getPhotoCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_photo_capabilities(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = getPhotoSettings)] #[doc = "The `getPhotoSettings()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/getPhotoSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_photo_settings(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageCapture" , js_name = grabFrame)] #[doc = "The `grabFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/grabFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn grab_frame(this: &ImageCapture) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (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`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn take_photo(this: &ImageCapture) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_ImageCaptureError.rs000064400000000000000000000047021046102023000204750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_ImageCaptureErrorEvent.rs000064400000000000000000000047461046102023000215070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ImageCaptureErrorEventInit.rs000064400000000000000000000104751046102023000223270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ImageCaptureErrorEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ImageCaptureErrorEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ImageCaptureErrorEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ImageCaptureErrorEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ImageCaptureErrorEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ImageCaptureErrorEventInit, val: bool); #[cfg(feature = "ImageCaptureError")] #[doc = "Get the `imageCaptureError` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEventInit`*"] #[wasm_bindgen(method, getter = "imageCaptureError")] pub fn get_image_capture_error(this: &ImageCaptureErrorEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "imageCaptureError")] pub fn set_image_capture_error( this: &ImageCaptureErrorEventInit, val: Option<&ImageCaptureError>, ); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "ImageCaptureError")] #[deprecated = "Use `set_image_capture_error()` instead."] pub fn image_capture_error(&mut self, val: Option<&ImageCaptureError>) -> &mut Self { self.set_image_capture_error(val); self } } impl Default for ImageCaptureErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ImageData.rs000064400000000000000000000105731046102023000167340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec>; #[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<&[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_js_u8_clamped_array( data: &::js_sys::Uint8ClampedArray, 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<&[u8]>, 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_js_u8_clamped_array_and_sh( data: &::js_sys::Uint8ClampedArray, sw: u32, sh: u32, ) -> Result; } web-sys-0.3.81/src/features/gen_ImageDecodeOptions.rs000064400000000000000000000102571046102023000206210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageDecodeOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `completeFramesOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "completeFramesOnly")] pub fn get_complete_frames_only(this: &ImageDecodeOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `completeFramesOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "completeFramesOnly")] pub fn set_complete_frames_only(this: &ImageDecodeOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `frameIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frameIndex")] pub fn get_frame_index(this: &ImageDecodeOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `frameIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frameIndex")] pub fn set_frame_index(this: &ImageDecodeOptions, val: u32); } #[cfg(web_sys_unstable_apis)] impl ImageDecodeOptions { #[doc = "Construct a new `ImageDecodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_complete_frames_only()` instead."] pub fn complete_frames_only(&mut self, val: bool) -> &mut Self { self.set_complete_frames_only(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_frame_index()` instead."] pub fn frame_index(&mut self, val: u32) -> &mut Self { self.set_frame_index(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for ImageDecodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ImageDecodeResult.rs000064400000000000000000000102601046102023000204360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecodeResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecodeResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageDecodeResult; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `complete` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "complete")] pub fn get_complete(this: &ImageDecodeResult) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `complete` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "complete")] pub fn set_complete(this: &ImageDecodeResult, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] #[doc = "Get the `image` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "image")] pub fn get_image(this: &ImageDecodeResult) -> VideoFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] #[doc = "Change the `image` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "image")] pub fn set_image(this: &ImageDecodeResult, val: &VideoFrame); } #[cfg(web_sys_unstable_apis)] impl ImageDecodeResult { #[cfg(feature = "VideoFrame")] #[doc = "Construct a new `ImageDecodeResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeResult`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(complete: bool, image: &VideoFrame) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_complete(complete); ret.set_image(image); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_complete()` instead."] pub fn complete(&mut self, val: bool) -> &mut Self { self.set_complete(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] #[deprecated = "Use `set_image()` instead."] pub fn image(&mut self, val: &VideoFrame) -> &mut Self { self.set_image(val); self } } web-sys-0.3.81/src/features/gen_ImageDecoder.rs000064400000000000000000000201331046102023000174210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecoder , typescript_type = "ImageDecoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageDecoder; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , 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/ImageDecoder/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &ImageDecoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , 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/ImageDecoder/complete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn complete(this: &ImageDecoder) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = completed)] #[doc = "Getter for the `completed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/completed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn completed(this: &ImageDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = tracks)] #[doc = "Getter for the `tracks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/tracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`, `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tracks(this: &ImageDecoder) -> ImageTrackList; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageDecoderInit")] #[wasm_bindgen(catch, constructor, js_class = "ImageDecoder")] #[doc = "The `new ImageDecoder(..)` constructor, creating a new instance of `ImageDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/ImageDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`, `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &ImageDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &ImageDecoder); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode(this: &ImageDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageDecodeOptions")] # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecodeOptions`, `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode_with_options( this: &ImageDecoder, options: &ImageDecodeOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = ImageDecoder , js_class = "ImageDecoder" , js_name = isTypeSupported)] #[doc = "The `isTypeSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/isTypeSupported_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_type_supported(type_: &str) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "ImageDecoder" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageDecoder/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &ImageDecoder); } web-sys-0.3.81/src/features/gen_ImageDecoderInit.rs000064400000000000000000000263251046102023000202560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageDecoderInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageDecoderInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageDecoderInit; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ColorSpaceConversion")] #[doc = "Get the `colorSpaceConversion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ColorSpaceConversion`, `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorSpaceConversion")] pub fn get_color_space_conversion(this: &ImageDecoderInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ColorSpaceConversion")] #[doc = "Change the `colorSpaceConversion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ColorSpaceConversion`, `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorSpaceConversion")] pub fn set_color_space_conversion(this: &ImageDecoderInit, val: ColorSpaceConversion); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &ImageDecoderInit) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &ImageDecoderInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `desiredHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "desiredHeight")] pub fn get_desired_height(this: &ImageDecoderInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `desiredHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "desiredHeight")] pub fn set_desired_height(this: &ImageDecoderInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `desiredWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "desiredWidth")] pub fn get_desired_width(this: &ImageDecoderInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `desiredWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "desiredWidth")] pub fn set_desired_width(this: &ImageDecoderInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `preferAnimation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "preferAnimation")] pub fn get_prefer_animation(this: &ImageDecoderInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `preferAnimation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "preferAnimation")] pub fn set_prefer_animation(this: &ImageDecoderInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PremultiplyAlpha")] #[doc = "Get the `premultiplyAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`, `PremultiplyAlpha`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "premultiplyAlpha")] pub fn get_premultiply_alpha(this: &ImageDecoderInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PremultiplyAlpha")] #[doc = "Change the `premultiplyAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`, `PremultiplyAlpha`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "premultiplyAlpha")] pub fn set_premultiply_alpha(this: &ImageDecoderInit, val: PremultiplyAlpha); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &ImageDecoderInit) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &ImageDecoderInit, val: &str); } #[cfg(web_sys_unstable_apis)] impl ImageDecoderInit { #[doc = "Construct a new `ImageDecoderInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(data: &::wasm_bindgen::JsValue, type_: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_data(data); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ColorSpaceConversion")] #[deprecated = "Use `set_color_space_conversion()` instead."] pub fn color_space_conversion(&mut self, val: ColorSpaceConversion) -> &mut Self { self.set_color_space_conversion(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_desired_height()` instead."] pub fn desired_height(&mut self, val: u32) -> &mut Self { self.set_desired_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_desired_width()` instead."] pub fn desired_width(&mut self, val: u32) -> &mut Self { self.set_desired_width(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_prefer_animation()` instead."] pub fn prefer_animation(&mut self, val: bool) -> &mut Self { self.set_prefer_animation(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PremultiplyAlpha")] #[deprecated = "Use `set_premultiply_alpha()` instead."] pub fn premultiply_alpha(&mut self, val: PremultiplyAlpha) -> &mut Self { self.set_premultiply_alpha(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_ImageEncodeOptions.rs000064400000000000000000000044751046102023000206400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageEncodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageEncodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] pub type ImageEncodeOptions; #[doc = "Get the `quality` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] #[wasm_bindgen(method, getter = "quality")] pub fn get_quality(this: &ImageEncodeOptions) -> Option; #[doc = "Change the `quality` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] #[wasm_bindgen(method, setter = "quality")] pub fn set_quality(this: &ImageEncodeOptions, val: f64); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &ImageEncodeOptions) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &ImageEncodeOptions, val: &str); } impl ImageEncodeOptions { #[doc = "Construct a new `ImageEncodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_quality()` instead."] pub fn quality(&mut self, val: f64) -> &mut Self { self.set_quality(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } impl Default for ImageEncodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ImageOrientation.rs000064400000000000000000000005611046102023000203520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ImageOrientation` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageOrientation`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ImageOrientation { FromImage = "from-image", FlipY = "flipY", } web-sys-0.3.81/src/features/gen_ImageTrack.rs000064400000000000000000000135501046102023000171250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = ImageTrack , typescript_type = "ImageTrack")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageTrack` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageTrack; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = animated)] #[doc = "Getter for the `animated` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/animated)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn animated(this: &ImageTrack) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = frameCount)] #[doc = "Getter for the `frameCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/frameCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame_count(this: &ImageTrack) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = repetitionCount)] #[doc = "Getter for the `repetitionCount` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/repetitionCount)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn repetition_count(this: &ImageTrack) -> f32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , 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/ImageTrack/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onchange(this: &ImageTrack) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "ImageTrack" , 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/ImageTrack/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onchange(this: &ImageTrack, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , 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/ImageTrack/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn selected(this: &ImageTrack) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "ImageTrack" , 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/ImageTrack/selected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_selected(this: &ImageTrack, value: bool); } web-sys-0.3.81/src/features/gen_ImageTrackList.rs000064400000000000000000000107721046102023000177640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ImageTrackList , typescript_type = "ImageTrackList")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ImageTrackList` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ImageTrackList; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , 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/ImageTrackList/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ready(this: &ImageTrackList) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , 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/ImageTrackList/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &ImageTrackList) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , 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/ImageTrackList/selectedIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn selected_index(this: &ImageTrackList) -> i32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageTrack")] # [wasm_bindgen (structural , method , getter , js_class = "ImageTrackList" , js_name = selectedTrack)] #[doc = "Getter for the `selectedTrack` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`, `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn selected_track(this: &ImageTrackList) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageTrack")] #[wasm_bindgen(method, structural, js_class = "ImageTrackList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageTrack`, `ImageTrackList`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &ImageTrackList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_InputDeviceInfo.rs000064400000000000000000000032711046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaDeviceInfo , extends = :: js_sys :: Object , js_name = InputDeviceInfo , typescript_type = "InputDeviceInfo")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `InputDeviceInfo` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputDeviceInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type InputDeviceInfo; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaTrackCapabilities")] # [wasm_bindgen (method , structural , js_class = "InputDeviceInfo" , js_name = getCapabilities)] #[doc = "The `getCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceInfo/getCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputDeviceInfo`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_capabilities(this: &InputDeviceInfo) -> MediaTrackCapabilities; } web-sys-0.3.81/src/features/gen_InputEvent.rs000064400000000000000000000076231046102023000172230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 (structural , method , getter , js_class = "InputEvent" , js_name = inputType)] #[doc = "Getter for the `inputType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn input_type(this: &InputEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , 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/InputEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn data(this: &InputEvent) -> Option<::alloc::string::String>; #[cfg(feature = "DataTransfer")] # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , 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/InputEvent/dataTransfer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `InputEvent`*"] pub fn data_transfer(this: &InputEvent) -> Option; #[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; # [wasm_bindgen (method , structural , js_class = "InputEvent" , js_name = getTargetRanges)] #[doc = "The `getTargetRanges()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/getTargetRanges)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] pub fn get_target_ranges(this: &InputEvent) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_InputEventInit.rs000064400000000000000000000206201046102023000200370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &InputEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &InputEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &InputEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &InputEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &InputEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &InputEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &InputEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &InputEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &InputEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &InputEventInit, val: Option<&Window>); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &InputEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &InputEventInit, val: Option<&str>); #[cfg(feature = "DataTransfer")] #[doc = "Get the `dataTransfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `InputEventInit`*"] #[wasm_bindgen(method, getter = "dataTransfer")] pub fn get_data_transfer(this: &InputEventInit) -> Option; #[cfg(feature = "DataTransfer")] #[doc = "Change the `dataTransfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `InputEventInit`*"] #[wasm_bindgen(method, setter = "dataTransfer")] pub fn set_data_transfer(this: &InputEventInit, val: Option<&DataTransfer>); #[doc = "Get the `inputType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "inputType")] pub fn get_input_type(this: &InputEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `inputType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "inputType")] pub fn set_input_type(this: &InputEventInit, val: &str); #[doc = "Get the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "isComposing")] pub fn get_is_composing(this: &InputEventInit) -> Option; #[doc = "Change the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "isComposing")] pub fn set_is_composing(this: &InputEventInit, val: bool); #[doc = "Get the `targetRanges` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "targetRanges")] pub fn get_target_ranges(this: &InputEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `targetRanges` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, setter = "targetRanges")] pub fn set_target_ranges(this: &InputEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: Option<&str>) -> &mut Self { self.set_data(val); self } #[cfg(feature = "DataTransfer")] #[deprecated = "Use `set_data_transfer()` instead."] pub fn data_transfer(&mut self, val: Option<&DataTransfer>) -> &mut Self { self.set_data_transfer(val); self } #[deprecated = "Use `set_input_type()` instead."] pub fn input_type(&mut self, val: &str) -> &mut Self { self.set_input_type(val); self } #[deprecated = "Use `set_is_composing()` instead."] pub fn is_composing(&mut self, val: bool) -> &mut Self { self.set_is_composing(val); self } #[deprecated = "Use `set_target_ranges()` instead."] pub fn target_ranges(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_target_ranges(val); self } } impl Default for InputEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IntersectionObserver.rs000064400000000000000000000123331046102023000212720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_IntersectionObserverEntry.rs000064400000000000000000000106771046102023000223250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_IntersectionObserverEntryInit.rs000064400000000000000000000135671046102023000231520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "DomRectInit")] #[doc = "Get the `boundingClientRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, getter = "boundingClientRect")] pub fn get_bounding_client_rect(this: &IntersectionObserverEntryInit) -> DomRectInit; #[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`*"] #[wasm_bindgen(method, setter = "boundingClientRect")] pub fn set_bounding_client_rect(this: &IntersectionObserverEntryInit, val: &DomRectInit); #[cfg(feature = "DomRectInit")] #[doc = "Get the `intersectionRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, getter = "intersectionRect")] pub fn get_intersection_rect(this: &IntersectionObserverEntryInit) -> DomRectInit; #[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`*"] #[wasm_bindgen(method, setter = "intersectionRect")] pub fn set_intersection_rect(this: &IntersectionObserverEntryInit, val: &DomRectInit); #[cfg(feature = "DomRectInit")] #[doc = "Get the `rootBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, getter = "rootBounds")] pub fn get_root_bounds(this: &IntersectionObserverEntryInit) -> DomRectInit; #[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`*"] #[wasm_bindgen(method, setter = "rootBounds")] pub fn set_root_bounds(this: &IntersectionObserverEntryInit, val: &DomRectInit); #[cfg(feature = "Element")] #[doc = "Get the `target` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, getter = "target")] pub fn get_target(this: &IntersectionObserverEntryInit) -> Element; #[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`*"] #[wasm_bindgen(method, setter = "target")] pub fn set_target(this: &IntersectionObserverEntryInit, val: &Element); #[doc = "Get the `time` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, getter = "time")] pub fn get_time(this: &IntersectionObserverEntryInit) -> f64; #[doc = "Change the `time` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] #[wasm_bindgen(method, setter = "time")] pub fn set_time(this: &IntersectionObserverEntryInit, val: f64); } 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.set_bounding_client_rect(bounding_client_rect); ret.set_intersection_rect(intersection_rect); ret.set_root_bounds(root_bounds); ret.set_target(target); ret.set_time(time); ret } #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_bounding_client_rect()` instead."] pub fn bounding_client_rect(&mut self, val: &DomRectInit) -> &mut Self { self.set_bounding_client_rect(val); self } #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_intersection_rect()` instead."] pub fn intersection_rect(&mut self, val: &DomRectInit) -> &mut Self { self.set_intersection_rect(val); self } #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_root_bounds()` instead."] pub fn root_bounds(&mut self, val: &DomRectInit) -> &mut Self { self.set_root_bounds(val); self } #[cfg(feature = "Element")] #[deprecated = "Use `set_target()` instead."] pub fn target(&mut self, val: &Element) -> &mut Self { self.set_target(val); self } #[deprecated = "Use `set_time()` instead."] pub fn time(&mut self, val: f64) -> &mut Self { self.set_time(val); self } } web-sys-0.3.81/src/features/gen_IntersectionObserverInit.rs000064400000000000000000000066101046102023000221170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "Element")] #[doc = "Get the `root` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverInit`*"] #[wasm_bindgen(method, getter = "root")] pub fn get_root(this: &IntersectionObserverInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "root")] pub fn set_root(this: &IntersectionObserverInit, val: Option<&Element>); #[doc = "Get the `rootMargin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] #[wasm_bindgen(method, getter = "rootMargin")] pub fn get_root_margin(this: &IntersectionObserverInit) -> Option<::alloc::string::String>; #[doc = "Change the `rootMargin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] #[wasm_bindgen(method, setter = "rootMargin")] pub fn set_root_margin(this: &IntersectionObserverInit, val: &str); #[doc = "Get the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] #[wasm_bindgen(method, getter = "threshold")] pub fn get_threshold(this: &IntersectionObserverInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] #[wasm_bindgen(method, setter = "threshold")] pub fn set_threshold(this: &IntersectionObserverInit, val: &::wasm_bindgen::JsValue); } 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")] #[deprecated = "Use `set_root()` instead."] pub fn root(&mut self, val: Option<&Element>) -> &mut Self { self.set_root(val); self } #[deprecated = "Use `set_root_margin()` instead."] pub fn root_margin(&mut self, val: &str) -> &mut Self { self.set_root_margin(val); self } #[deprecated = "Use `set_threshold()` instead."] pub fn threshold(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_threshold(val); self } } impl Default for IntersectionObserverInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IntlUtils.rs000064400000000000000000000046171046102023000170510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_IsInputPendingOptions.rs000064400000000000000000000055771046102023000214040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IsInputPendingOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `IsInputPendingOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type IsInputPendingOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `includeContinuous` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "includeContinuous")] pub fn get_include_continuous(this: &IsInputPendingOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `includeContinuous` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "includeContinuous")] pub fn set_include_continuous(this: &IsInputPendingOptions, val: bool); } #[cfg(web_sys_unstable_apis)] impl IsInputPendingOptions { #[doc = "Construct a new `IsInputPendingOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_include_continuous()` instead."] pub fn include_continuous(&mut self, val: bool) -> &mut Self { self.set_include_continuous(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for IsInputPendingOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IterableKeyAndValueResult.rs000064400000000000000000000046751046102023000221450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] #[wasm_bindgen(method, getter = "done")] pub fn get_done(this: &IterableKeyAndValueResult) -> Option; #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] #[wasm_bindgen(method, setter = "done")] pub fn set_done(this: &IterableKeyAndValueResult, val: bool); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &IterableKeyAndValueResult) -> Option<::js_sys::Array>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &IterableKeyAndValueResult, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_done()` instead."] pub fn done(&mut self, val: bool) -> &mut Self { self.set_done(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_value(val); self } } impl Default for IterableKeyAndValueResult { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IterableKeyOrValueResult.rs000064400000000000000000000046551046102023000220210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] #[wasm_bindgen(method, getter = "done")] pub fn get_done(this: &IterableKeyOrValueResult) -> Option; #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] #[wasm_bindgen(method, setter = "done")] pub fn set_done(this: &IterableKeyOrValueResult, val: bool); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &IterableKeyOrValueResult) -> ::wasm_bindgen::JsValue; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &IterableKeyOrValueResult, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_done()` instead."] pub fn done(&mut self, val: bool) -> &mut Self { self.set_done(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_value(val); self } } impl Default for IterableKeyOrValueResult { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_IterationCompositeOperation.rs000064400000000000000000000006271046102023000226210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_JsonWebKey.rs000064400000000000000000000312621046102023000171360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "alg")] pub fn get_alg(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "alg")] pub fn set_alg(this: &JsonWebKey, val: &str); #[doc = "Get the `crv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "crv")] pub fn get_crv(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `crv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "crv")] pub fn set_crv(this: &JsonWebKey, val: &str); #[doc = "Get the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "d")] pub fn get_d(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "d")] pub fn set_d(this: &JsonWebKey, val: &str); #[doc = "Get the `dp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "dp")] pub fn get_dp(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `dp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "dp")] pub fn set_dp(this: &JsonWebKey, val: &str); #[doc = "Get the `dq` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "dq")] pub fn get_dq(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `dq` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "dq")] pub fn set_dq(this: &JsonWebKey, val: &str); #[doc = "Get the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "e")] pub fn get_e(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "e")] pub fn set_e(this: &JsonWebKey, val: &str); #[doc = "Get the `ext` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "ext")] pub fn get_ext(this: &JsonWebKey) -> Option; #[doc = "Change the `ext` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "ext")] pub fn set_ext(this: &JsonWebKey, val: bool); #[doc = "Get the `k` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "k")] pub fn get_k(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `k` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "k")] pub fn set_k(this: &JsonWebKey, val: &str); #[doc = "Get the `key_ops` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "key_ops")] pub fn get_key_ops(this: &JsonWebKey) -> Option<::js_sys::Array>; #[doc = "Change the `key_ops` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "key_ops")] pub fn set_key_ops(this: &JsonWebKey, val: &::wasm_bindgen::JsValue); #[doc = "Get the `kty` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "kty")] pub fn get_kty(this: &JsonWebKey) -> ::alloc::string::String; #[doc = "Change the `kty` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "kty")] pub fn set_kty(this: &JsonWebKey, val: &str); #[doc = "Get the `n` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "n")] pub fn get_n(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `n` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "n")] pub fn set_n(this: &JsonWebKey, val: &str); #[doc = "Get the `oth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "oth")] pub fn get_oth(this: &JsonWebKey) -> Option<::js_sys::Array>; #[doc = "Change the `oth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "oth")] pub fn set_oth(this: &JsonWebKey, val: &::wasm_bindgen::JsValue); #[doc = "Get the `p` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "p")] pub fn get_p(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `p` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "p")] pub fn set_p(this: &JsonWebKey, val: &str); #[doc = "Get the `q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "q")] pub fn get_q(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "q")] pub fn set_q(this: &JsonWebKey, val: &str); #[doc = "Get the `qi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "qi")] pub fn get_qi(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `qi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "qi")] pub fn set_qi(this: &JsonWebKey, val: &str); #[doc = "Get the `use` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "use")] pub fn get_use(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `use` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "use")] pub fn set_use(this: &JsonWebKey, val: &str); #[doc = "Get the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &JsonWebKey, val: &str); #[doc = "Get the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &JsonWebKey, val: &str); } 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.set_kty(kty); ret } #[deprecated = "Use `set_alg()` instead."] pub fn alg(&mut self, val: &str) -> &mut Self { self.set_alg(val); self } #[deprecated = "Use `set_crv()` instead."] pub fn crv(&mut self, val: &str) -> &mut Self { self.set_crv(val); self } #[deprecated = "Use `set_d()` instead."] pub fn d(&mut self, val: &str) -> &mut Self { self.set_d(val); self } #[deprecated = "Use `set_dp()` instead."] pub fn dp(&mut self, val: &str) -> &mut Self { self.set_dp(val); self } #[deprecated = "Use `set_dq()` instead."] pub fn dq(&mut self, val: &str) -> &mut Self { self.set_dq(val); self } #[deprecated = "Use `set_e()` instead."] pub fn e(&mut self, val: &str) -> &mut Self { self.set_e(val); self } #[deprecated = "Use `set_ext()` instead."] pub fn ext(&mut self, val: bool) -> &mut Self { self.set_ext(val); self } #[deprecated = "Use `set_k()` instead."] pub fn k(&mut self, val: &str) -> &mut Self { self.set_k(val); self } #[deprecated = "Use `set_key_ops()` instead."] pub fn key_ops(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_key_ops(val); self } #[deprecated = "Use `set_kty()` instead."] pub fn kty(&mut self, val: &str) -> &mut Self { self.set_kty(val); self } #[deprecated = "Use `set_n()` instead."] pub fn n(&mut self, val: &str) -> &mut Self { self.set_n(val); self } #[deprecated = "Use `set_oth()` instead."] pub fn oth(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_oth(val); self } #[deprecated = "Use `set_p()` instead."] pub fn p(&mut self, val: &str) -> &mut Self { self.set_p(val); self } #[deprecated = "Use `set_q()` instead."] pub fn q(&mut self, val: &str) -> &mut Self { self.set_q(val); self } #[deprecated = "Use `set_qi()` instead."] pub fn qi(&mut self, val: &str) -> &mut Self { self.set_qi(val); self } #[deprecated = "Use `set_use()` instead."] pub fn use_(&mut self, val: &str) -> &mut Self { self.set_use(val); self } #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: &str) -> &mut Self { self.set_x(val); self } #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: &str) -> &mut Self { self.set_y(val); self } } web-sys-0.3.81/src/features/gen_KeyAlgorithm.rs000064400000000000000000000027431046102023000175170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &KeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &KeyAlgorithm, val: &str); } 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.set_name(name); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } web-sys-0.3.81/src/features/gen_KeyEvent.rs000064400000000000000000001314031046102023000166460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_KeyFrameRequestEvent.rs000064400000000000000000000063441046102023000211770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = KeyFrameRequestEvent , typescript_type = "KeyFrameRequestEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyFrameRequestEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyFrameRequestEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyFrameRequestEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type KeyFrameRequestEvent; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "KeyFrameRequestEvent" , js_name = rid)] #[doc = "Getter for the `rid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyFrameRequestEvent/rid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyFrameRequestEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn rid(this: &KeyFrameRequestEvent) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "KeyFrameRequestEvent")] #[doc = "The `new KeyFrameRequestEvent(..)` constructor, creating a new instance of `KeyFrameRequestEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyFrameRequestEvent/KeyFrameRequestEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyFrameRequestEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(type_: &str) -> Result; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "KeyFrameRequestEvent")] #[doc = "The `new KeyFrameRequestEvent(..)` constructor, creating a new instance of `KeyFrameRequestEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyFrameRequestEvent/KeyFrameRequestEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyFrameRequestEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_rid(type_: &str, rid: &str) -> Result; } web-sys-0.3.81/src/features/gen_KeyIdsInitData.rs000064400000000000000000000030551046102023000177230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `kids` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] #[wasm_bindgen(method, getter = "kids")] pub fn get_kids(this: &KeyIdsInitData) -> ::js_sys::Array; #[doc = "Change the `kids` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] #[wasm_bindgen(method, setter = "kids")] pub fn set_kids(this: &KeyIdsInitData, val: &::wasm_bindgen::JsValue); } 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.set_kids(kids); ret } #[deprecated = "Use `set_kids()` instead."] pub fn kids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_kids(val); self } } web-sys-0.3.81/src/features/gen_KeyboardEvent.rs000064400000000000000000000362601046102023000176630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_KeyboardEventInit.rs000064400000000000000000000502551046102023000205070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &KeyboardEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &KeyboardEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &KeyboardEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &KeyboardEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &KeyboardEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &KeyboardEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &KeyboardEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &KeyboardEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &KeyboardEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &KeyboardEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &KeyboardEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &KeyboardEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &KeyboardEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &KeyboardEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &KeyboardEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &KeyboardEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &KeyboardEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &KeyboardEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &KeyboardEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &KeyboardEventInit, val: bool); #[doc = "Get the `charCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "charCode")] pub fn get_char_code(this: &KeyboardEventInit) -> Option; #[doc = "Change the `charCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "charCode")] pub fn set_char_code(this: &KeyboardEventInit, val: u32); #[doc = "Get the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "code")] pub fn get_code(this: &KeyboardEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "code")] pub fn set_code(this: &KeyboardEventInit, val: &str); #[doc = "Get the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "isComposing")] pub fn get_is_composing(this: &KeyboardEventInit) -> Option; #[doc = "Change the `isComposing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "isComposing")] pub fn set_is_composing(this: &KeyboardEventInit, val: bool); #[doc = "Get the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "key")] pub fn get_key(this: &KeyboardEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "key")] pub fn set_key(this: &KeyboardEventInit, val: &str); #[doc = "Get the `keyCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "keyCode")] pub fn get_key_code(this: &KeyboardEventInit) -> Option; #[doc = "Change the `keyCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "keyCode")] pub fn set_key_code(this: &KeyboardEventInit, val: u32); #[doc = "Get the `location` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "location")] pub fn get_location(this: &KeyboardEventInit) -> Option; #[doc = "Change the `location` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "location")] pub fn set_location(this: &KeyboardEventInit, val: u32); #[doc = "Get the `repeat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "repeat")] pub fn get_repeat(this: &KeyboardEventInit) -> Option; #[doc = "Change the `repeat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "repeat")] pub fn set_repeat(this: &KeyboardEventInit, val: bool); #[doc = "Get the `which` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "which")] pub fn get_which(this: &KeyboardEventInit) -> Option; #[doc = "Change the `which` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, setter = "which")] pub fn set_which(this: &KeyboardEventInit, val: u32); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_char_code()` instead."] pub fn char_code(&mut self, val: u32) -> &mut Self { self.set_char_code(val); self } #[deprecated = "Use `set_code()` instead."] pub fn code(&mut self, val: &str) -> &mut Self { self.set_code(val); self } #[deprecated = "Use `set_is_composing()` instead."] pub fn is_composing(&mut self, val: bool) -> &mut Self { self.set_is_composing(val); self } #[deprecated = "Use `set_key()` instead."] pub fn key(&mut self, val: &str) -> &mut Self { self.set_key(val); self } #[deprecated = "Use `set_key_code()` instead."] pub fn key_code(&mut self, val: u32) -> &mut Self { self.set_key_code(val); self } #[deprecated = "Use `set_location()` instead."] pub fn location(&mut self, val: u32) -> &mut Self { self.set_location(val); self } #[deprecated = "Use `set_repeat()` instead."] pub fn repeat(&mut self, val: bool) -> &mut Self { self.set_repeat(val); self } #[deprecated = "Use `set_which()` instead."] pub fn which(&mut self, val: u32) -> &mut Self { self.set_which(val); self } } impl Default for KeyboardEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_KeyframeAnimationOptions.rs000064400000000000000000000451271046102023000221020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = KeyframeAnimationOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `KeyframeAnimationOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type KeyframeAnimationOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &KeyframeAnimationOptions, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PlaybackDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`, `PlaybackDirection`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PlaybackDirection")] #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`, `PlaybackDirection`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &KeyframeAnimationOptions, val: PlaybackDirection); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &KeyframeAnimationOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &KeyframeAnimationOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &KeyframeAnimationOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &KeyframeAnimationOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "endDelay")] pub fn get_end_delay(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "endDelay")] pub fn set_end_delay(this: &KeyframeAnimationOptions, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FillMode")] #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FillMode")] #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &KeyframeAnimationOptions, val: FillMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "iterationStart")] pub fn get_iteration_start(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "iterationStart")] pub fn set_iteration_start(this: &KeyframeAnimationOptions, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &KeyframeAnimationOptions, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CompositeOperation")] #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CompositeOperation")] #[doc = "Change the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &KeyframeAnimationOptions, val: CompositeOperation); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IterationCompositeOperation")] #[doc = "Get the `iterationComposite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "iterationComposite")] pub fn get_iteration_composite( this: &KeyframeAnimationOptions, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IterationCompositeOperation")] #[doc = "Change the `iterationComposite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "iterationComposite")] pub fn set_iteration_composite( this: &KeyframeAnimationOptions, val: IterationCompositeOperation, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &KeyframeAnimationOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &KeyframeAnimationOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AnimationTimeline")] #[doc = "Get the `timeline` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timeline")] pub fn get_timeline(this: &KeyframeAnimationOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AnimationTimeline")] #[doc = "Change the `timeline` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`, `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timeline")] pub fn set_timeline(this: &KeyframeAnimationOptions, val: Option<&AnimationTimeline>); } #[cfg(web_sys_unstable_apis)] impl KeyframeAnimationOptions { #[doc = "Construct a new `KeyframeAnimationOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeAnimationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PlaybackDirection")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { self.set_direction(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_end_delay()` instead."] pub fn end_delay(&mut self, val: f64) -> &mut Self { self.set_end_delay(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FillMode")] #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: FillMode) -> &mut Self { self.set_fill(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_iteration_start()` instead."] pub fn iteration_start(&mut self, val: f64) -> &mut Self { self.set_iteration_start(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: f64) -> &mut Self { self.set_iterations(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CompositeOperation")] #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { self.set_composite(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IterationCompositeOperation")] #[deprecated = "Use `set_iteration_composite()` instead."] pub fn iteration_composite(&mut self, val: IterationCompositeOperation) -> &mut Self { self.set_iteration_composite(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AnimationTimeline")] #[deprecated = "Use `set_timeline()` instead."] pub fn timeline(&mut self, val: Option<&AnimationTimeline>) -> &mut Self { self.set_timeline(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for KeyframeAnimationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_KeyframeEffect.rs000064400000000000000000000247351046102023000200050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] pub fn set_target(this: &KeyframeEffect, value: Option<&::js_sys::Object>); #[cfg(feature = "Element")] # [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: `Element`, `KeyframeEffect`*"] pub fn set_target_opt_element(this: &KeyframeEffect, value: Option<&Element>); #[cfg(feature = "CssPseudoElement")] # [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: `CssPseudoElement`, `KeyframeEffect`*"] pub fn set_target_opt_css_pseudo_element( this: &KeyframeEffect, value: Option<&CssPseudoElement>, ); #[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>; } web-sys-0.3.81/src/features/gen_KeyframeEffectOptions.rs000064400000000000000000000224201046102023000213460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &KeyframeEffectOptions) -> Option; #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &KeyframeEffectOptions, val: f64); #[cfg(feature = "PlaybackDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`, `PlaybackDirection`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &KeyframeEffectOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &KeyframeEffectOptions, val: PlaybackDirection); #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &KeyframeEffectOptions) -> ::wasm_bindgen::JsValue; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &KeyframeEffectOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &KeyframeEffectOptions) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &KeyframeEffectOptions, val: &str); #[doc = "Get the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "endDelay")] pub fn get_end_delay(this: &KeyframeEffectOptions) -> Option; #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "endDelay")] pub fn set_end_delay(this: &KeyframeEffectOptions, val: f64); #[cfg(feature = "FillMode")] #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &KeyframeEffectOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &KeyframeEffectOptions, val: FillMode); #[doc = "Get the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "iterationStart")] pub fn get_iteration_start(this: &KeyframeEffectOptions) -> Option; #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "iterationStart")] pub fn set_iteration_start(this: &KeyframeEffectOptions, val: f64); #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &KeyframeEffectOptions) -> Option; #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &KeyframeEffectOptions, val: f64); #[cfg(feature = "CompositeOperation")] #[doc = "Get the `composite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "composite")] pub fn get_composite(this: &KeyframeEffectOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "composite")] pub fn set_composite(this: &KeyframeEffectOptions, val: CompositeOperation); #[cfg(feature = "IterationCompositeOperation")] #[doc = "Get the `iterationComposite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "iterationComposite")] pub fn get_iteration_composite( this: &KeyframeEffectOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "iterationComposite")] pub fn set_iteration_composite(this: &KeyframeEffectOptions, val: IterationCompositeOperation); } 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 } #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(feature = "PlaybackDirection")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_end_delay()` instead."] pub fn end_delay(&mut self, val: f64) -> &mut Self { self.set_end_delay(val); self } #[cfg(feature = "FillMode")] #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: FillMode) -> &mut Self { self.set_fill(val); self } #[deprecated = "Use `set_iteration_start()` instead."] pub fn iteration_start(&mut self, val: f64) -> &mut Self { self.set_iteration_start(val); self } #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: f64) -> &mut Self { self.set_iterations(val); self } #[cfg(feature = "CompositeOperation")] #[deprecated = "Use `set_composite()` instead."] pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { self.set_composite(val); self } #[cfg(feature = "IterationCompositeOperation")] #[deprecated = "Use `set_iteration_composite()` instead."] pub fn iteration_composite(&mut self, val: IterationCompositeOperation) -> &mut Self { self.set_iteration_composite(val); self } } impl Default for KeyframeEffectOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_L10nElement.rs000064400000000000000000000124261046102023000171430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `l10nArgs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "l10nArgs")] pub fn get_l10n_args(this: &L10nElement) -> Option<::js_sys::Object>; #[doc = "Change the `l10nArgs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "l10nArgs")] pub fn set_l10n_args(this: &L10nElement, val: Option<&::js_sys::Object>); #[doc = "Get the `l10nAttrs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "l10nAttrs")] pub fn get_l10n_attrs(this: &L10nElement) -> Option<::alloc::string::String>; #[doc = "Change the `l10nAttrs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "l10nAttrs")] pub fn set_l10n_attrs(this: &L10nElement, val: Option<&str>); #[doc = "Get the `l10nId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "l10nId")] pub fn get_l10n_id(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `l10nId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "l10nId")] pub fn set_l10n_id(this: &L10nElement, val: &str); #[doc = "Get the `localName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "localName")] pub fn get_local_name(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `localName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "localName")] pub fn set_local_name(this: &L10nElement, val: &str); #[doc = "Get the `namespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "namespaceURI")] pub fn get_namespace_uri(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `namespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "namespaceURI")] pub fn set_namespace_uri(this: &L10nElement, val: &str); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &L10nElement) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &L10nElement, val: Option<&str>); } 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.set_l10n_id(l10n_id); ret.set_local_name(local_name); ret.set_namespace_uri(namespace_uri); ret } #[deprecated = "Use `set_l10n_args()` instead."] pub fn l10n_args(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_l10n_args(val); self } #[deprecated = "Use `set_l10n_attrs()` instead."] pub fn l10n_attrs(&mut self, val: Option<&str>) -> &mut Self { self.set_l10n_attrs(val); self } #[deprecated = "Use `set_l10n_id()` instead."] pub fn l10n_id(&mut self, val: &str) -> &mut Self { self.set_l10n_id(val); self } #[deprecated = "Use `set_local_name()` instead."] pub fn local_name(&mut self, val: &str) -> &mut Self { self.set_local_name(val); self } #[deprecated = "Use `set_namespace_uri()` instead."] pub fn namespace_uri(&mut self, val: &str) -> &mut Self { self.set_namespace_uri(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: Option<&str>) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_L10nValue.rs000064400000000000000000000045101046102023000166210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] #[wasm_bindgen(method, getter = "attributes")] pub fn get_attributes(this: &L10nValue) -> Option<::js_sys::Array>; #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] #[wasm_bindgen(method, setter = "attributes")] pub fn set_attributes(this: &L10nValue, val: &::wasm_bindgen::JsValue); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &L10nValue) -> Option<::alloc::string::String>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &L10nValue, val: Option<&str>); } 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 } #[deprecated = "Use `set_attributes()` instead."] pub fn attributes(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_attributes(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: Option<&str>) -> &mut Self { self.set_value(val); self } } impl Default for L10nValue { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_LargeBlobSupport.rs000064400000000000000000000005661046102023000203470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `LargeBlobSupport` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LargeBlobSupport`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LargeBlobSupport { Required = "required", Preferred = "preferred", } web-sys-0.3.81/src/features/gen_LatencyMode.rs000064400000000000000000000011511046102023000173140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `LatencyMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LatencyMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LatencyMode { Quality = "quality", Realtime = "realtime", } web-sys-0.3.81/src/features/gen_LifecycleCallbacks.rs000064400000000000000000000105661046102023000206210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `adoptedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, getter = "adoptedCallback")] pub fn get_adopted_callback(this: &LifecycleCallbacks) -> Option<::js_sys::Function>; #[doc = "Change the `adoptedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, setter = "adoptedCallback")] pub fn set_adopted_callback(this: &LifecycleCallbacks, val: &::js_sys::Function); #[doc = "Get the `attributeChangedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, getter = "attributeChangedCallback")] pub fn get_attribute_changed_callback(this: &LifecycleCallbacks) -> Option<::js_sys::Function>; #[doc = "Change the `attributeChangedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, setter = "attributeChangedCallback")] pub fn set_attribute_changed_callback(this: &LifecycleCallbacks, val: &::js_sys::Function); #[doc = "Get the `connectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, getter = "connectedCallback")] pub fn get_connected_callback(this: &LifecycleCallbacks) -> Option<::js_sys::Function>; #[doc = "Change the `connectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, setter = "connectedCallback")] pub fn set_connected_callback(this: &LifecycleCallbacks, val: &::js_sys::Function); #[doc = "Get the `disconnectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, getter = "disconnectedCallback")] pub fn get_disconnected_callback(this: &LifecycleCallbacks) -> Option<::js_sys::Function>; #[doc = "Change the `disconnectedCallback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] #[wasm_bindgen(method, setter = "disconnectedCallback")] pub fn set_disconnected_callback(this: &LifecycleCallbacks, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_adopted_callback()` instead."] pub fn adopted_callback(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_adopted_callback(val); self } #[deprecated = "Use `set_attribute_changed_callback()` instead."] pub fn attribute_changed_callback(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_attribute_changed_callback(val); self } #[deprecated = "Use `set_connected_callback()` instead."] pub fn connected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_connected_callback(val); self } #[deprecated = "Use `set_disconnected_callback()` instead."] pub fn disconnected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_disconnected_callback(val); self } } impl Default for LifecycleCallbacks { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_LineAlignSetting.rs000064400000000000000000000005731046102023000203170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ListBoxObject.rs000064400000000000000000000113661046102023000176340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_LocalMediaStream.rs000064400000000000000000000020371046102023000202620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_LocaleInfo.rs000064400000000000000000000043661046102023000171360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &LocaleInfo) -> Option<::alloc::string::String>; #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &LocaleInfo, val: &str); #[doc = "Get the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, getter = "locale")] pub fn get_locale(this: &LocaleInfo) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, setter = "locale")] pub fn set_locale(this: &LocaleInfo, val: &str); } 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 } #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: &str) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_locale()` instead."] pub fn locale(&mut self, val: &str) -> &mut Self { self.set_locale(val); self } } impl Default for LocaleInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Location.rs000064400000000000000000000237231046102023000166710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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>; } web-sys-0.3.81/src/features/gen_Lock.rs000064400000000000000000000042621046102023000160060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Lock , typescript_type = "Lock")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Lock` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Lock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Lock`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Lock; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Lock" , 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/Lock/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Lock`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn name(this: &Lock) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] # [wasm_bindgen (structural , method , getter , js_class = "Lock" , 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/Lock/mode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Lock`, `LockMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mode(this: &Lock) -> LockMode; } web-sys-0.3.81/src/features/gen_LockInfo.rs000064400000000000000000000124131046102023000166170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LockInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type LockInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientId")] pub fn get_client_id(this: &LockInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clientId")] pub fn set_client_id(this: &LockInfo, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`, `LockMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &LockInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`, `LockMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &LockInfo, val: LockMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &LockInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &LockInfo, val: &str); } #[cfg(web_sys_unstable_apis)] impl LockInfo { #[doc = "Construct a new `LockInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_client_id()` instead."] pub fn client_id(&mut self, val: &str) -> &mut Self { self.set_client_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: LockMode) -> &mut Self { self.set_mode(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for LockInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_LockManager.rs000064400000000000000000000062041046102023000172770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManager , typescript_type = "LockManager")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LockManager` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type LockManager; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = query)] #[doc = "The `query()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/query)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn query(this: &LockManager) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)] #[doc = "The `request()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_with_callback( this: &LockManager, name: &str, callback: &::js_sys::Function, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockOptions")] # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)] #[doc = "The `request()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`, `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_with_options_and_callback( this: &LockManager, name: &str, options: &LockOptions, callback: &::js_sys::Function, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_LockManagerSnapshot.rs000064400000000000000000000102001046102023000210060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManagerSnapshot)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LockManagerSnapshot` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type LockManagerSnapshot; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `held` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "held")] pub fn get_held(this: &LockManagerSnapshot) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `held` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "held")] pub fn set_held(this: &LockManagerSnapshot, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `pending` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "pending")] pub fn get_pending(this: &LockManagerSnapshot) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `pending` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "pending")] pub fn set_pending(this: &LockManagerSnapshot, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl LockManagerSnapshot { #[doc = "Construct a new `LockManagerSnapshot`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_held()` instead."] pub fn held(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_held(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_pending()` instead."] pub fn pending(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_pending(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for LockManagerSnapshot { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_LockMode.rs000064400000000000000000000011401046102023000166030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `LockMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LockMode { Shared = "shared", Exclusive = "exclusive", } web-sys-0.3.81/src/features/gen_LockOptions.rs000064400000000000000000000153521046102023000173640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `LockOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type LockOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `ifAvailable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "ifAvailable")] pub fn get_if_available(this: &LockOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `ifAvailable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "ifAvailable")] pub fn set_if_available(this: &LockOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockMode`, `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &LockOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockMode`, `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &LockOptions, val: LockMode); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &LockOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &LockOptions, val: &AbortSignal); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `steal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "steal")] pub fn get_steal(this: &LockOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `steal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "steal")] pub fn set_steal(this: &LockOptions, val: bool); } #[cfg(web_sys_unstable_apis)] impl LockOptions { #[doc = "Construct a new `LockOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_if_available()` instead."] pub fn if_available(&mut self, val: bool) -> &mut Self { self.set_if_available(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: LockMode) -> &mut Self { self.set_mode(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_steal()` instead."] pub fn steal(&mut self, val: bool) -> &mut Self { self.set_steal(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for LockOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MathMlElement.rs000064400000000000000000002667721046102023000176320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = MathMLElement , typescript_type = "MathMLElement")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MathMlElement` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub type MathMlElement; #[cfg(feature = "CssStyleDeclaration")] # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `MathMlElement`*"] pub fn style(this: &MathMlElement) -> CssStyleDeclaration; # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onabort(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onabort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onabort(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onblur(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onblur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onblur(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onfocus(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onfocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onfocus(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onauxclick(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onauxclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onauxclick(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , js_name = onbeforetoggle)] #[doc = "Getter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onbeforetoggle(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , js_name = onbeforetoggle)] #[doc = "Setter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onbeforetoggle(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn oncanplay(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/oncanplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_oncanplay(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn oncanplaythrough(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/oncanplaythrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_oncanplaythrough(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onchange(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onchange(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onclick(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onclick(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onclose(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onclose(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn oncontextmenu(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/oncontextmenu)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_oncontextmenu(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondblclick(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondblclick)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondblclick(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondrag(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondrag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondrag(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragenter(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragenter(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragexit(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragexit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragexit(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragleave(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragleave(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragover(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragover(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondragstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondragstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondragstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondrop(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondrop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondrop(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ondurationchange(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ondurationchange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ondurationchange(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onemptied(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onemptied)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onemptied(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onended(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onended)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onended(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn oninput(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/oninput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_oninput(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , js_name = onbeforeinput)] #[doc = "Getter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onbeforeinput(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , js_name = onbeforeinput)] #[doc = "Setter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onbeforeinput(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn oninvalid(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/oninvalid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_oninvalid(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onkeydown(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onkeydown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onkeydown(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onkeypress(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onkeypress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onkeypress(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onkeyup(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onkeyup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onkeyup(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onload(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onload(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onloadeddata(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onloadeddata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onloadeddata(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onloadedmetadata(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onloadedmetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onloadedmetadata(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onloadend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onloadend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onloadend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onloadstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onloadstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onloadstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmousedown(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmousedown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmousedown(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmouseenter(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmouseenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmouseenter(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmouseleave(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmouseleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmouseleave(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmousemove(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmousemove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmousemove(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmouseout(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmouseout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmouseout(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmouseover(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmouseover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmouseover(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onmouseup(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onmouseup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onmouseup(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwheel(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwheel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwheel(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpause(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpause)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpause(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onplay(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onplay)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onplay(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onplaying(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onplaying)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onplaying(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onprogress(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onprogress)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onprogress(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onratechange(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onratechange(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onreset(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onreset(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onresize(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onresize(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onscroll(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onscroll(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onseeked(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onseeked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onseeked(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onseeking(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onseeking)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onseeking(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onselect(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onselect(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onshow(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onshow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onshow(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onstalled(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onstalled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onstalled(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onsubmit(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onsubmit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onsubmit(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onsuspend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onsuspend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onsuspend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontimeupdate(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontimeupdate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontimeupdate(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onvolumechange(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onvolumechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onvolumechange(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwaiting(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwaiting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwaiting(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onselectstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onselectstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontoggle(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontoggle(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointercancel(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointercancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointercancel(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerdown(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerdown)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerdown(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerup(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerup)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerup(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointermove(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointermove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointermove(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerout(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerout)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerout(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerover(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerover(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerenter(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerenter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerenter(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onpointerleave(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onpointerleave)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onpointerleave(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ongotpointercapture(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ongotpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ongotpointercapture(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onlostpointercapture(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onlostpointercapture)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onlostpointercapture(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onanimationcancel(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onanimationcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onanimationcancel(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onanimationend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onanimationend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onanimationiteration(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onanimationiteration(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onanimationstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onanimationstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontransitioncancel(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontransitioncancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontransitioncancel(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontransitionend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontransitionend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontransitionrun(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionrun)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontransitionrun(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontransitionstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontransitionstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontransitionstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwebkitanimationend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwebkitanimationend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwebkitanimationiteration(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationiteration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwebkitanimationiteration(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwebkitanimationstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwebkitanimationstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwebkitanimationstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onwebkittransitionend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onwebkittransitionend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onwebkittransitionend(this: &MathMlElement, value: Option<&::js_sys::Function>); #[cfg(feature = "DomStringMap")] # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/dataset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `MathMlElement`*"] pub fn dataset(this: &MathMlElement) -> DomStringMap; # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , js_name = nonce)] #[doc = "Getter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn nonce(this: &MathMlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_nonce(this: &MathMlElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn autofocus(this: &MathMlElement) -> bool; # [wasm_bindgen (structural , catch , method , setter , js_class = "MathMLElement" , 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/MathMLElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_autofocus(this: &MathMlElement, value: bool) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn tab_index(this: &MathMlElement) -> i32; # [wasm_bindgen (structural , catch , method , setter , js_class = "MathMLElement" , 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/MathMLElement/tabIndex)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_tab_index(this: &MathMlElement, value: i32) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn onerror(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_onerror(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontouchstart(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontouchstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontouchstart(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontouchend(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontouchend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontouchend(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontouchmove(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontouchmove)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontouchmove(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "MathMLElement" , 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/MathMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn ontouchcancel(this: &MathMlElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , 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/MathMLElement/ontouchcancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn set_ontouchcancel(this: &MathMlElement, value: Option<&::js_sys::Function>); # [wasm_bindgen (catch , method , structural , js_class = "MathMLElement" , js_name = blur)] #[doc = "The `blur()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/blur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn blur(this: &MathMlElement) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "MathMLElement" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] pub fn focus(this: &MathMlElement) -> Result<(), JsValue>; #[cfg(feature = "FocusOptions")] # [wasm_bindgen (catch , method , structural , js_class = "MathMLElement" , js_name = focus)] #[doc = "The `focus()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/focus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FocusOptions`, `MathMlElement`*"] pub fn focus_with_options(this: &MathMlElement, options: &FocusOptions) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_MediaCapabilities.rs000064400000000000000000000034521046102023000204470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaCapabilitiesInfo.rs000064400000000000000000000040701046102023000212600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaConfiguration.rs000064400000000000000000000053251046102023000206660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AudioConfiguration")] #[doc = "Get the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaConfiguration`*"] #[wasm_bindgen(method, getter = "audio")] pub fn get_audio(this: &MediaConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "audio")] pub fn set_audio(this: &MediaConfiguration, val: &AudioConfiguration); #[cfg(feature = "VideoConfiguration")] #[doc = "Get the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`, `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "video")] pub fn get_video(this: &MediaConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "video")] pub fn set_video(this: &MediaConfiguration, val: &VideoConfiguration); } 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")] #[deprecated = "Use `set_audio()` instead."] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { self.set_audio(val); self } #[cfg(feature = "VideoConfiguration")] #[deprecated = "Use `set_video()` instead."] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { self.set_video(val); self } } impl Default for MediaConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaDecodingConfiguration.rs000064400000000000000000000074141046102023000223240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AudioConfiguration")] #[doc = "Get the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaDecodingConfiguration`*"] #[wasm_bindgen(method, getter = "audio")] pub fn get_audio(this: &MediaDecodingConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "audio")] pub fn set_audio(this: &MediaDecodingConfiguration, val: &AudioConfiguration); #[cfg(feature = "VideoConfiguration")] #[doc = "Get the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "video")] pub fn get_video(this: &MediaDecodingConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "video")] pub fn set_video(this: &MediaDecodingConfiguration, val: &VideoConfiguration); #[cfg(feature = "MediaDecodingType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `MediaDecodingType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &MediaDecodingConfiguration) -> MediaDecodingType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &MediaDecodingConfiguration, val: MediaDecodingType); } 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.set_type(type_); ret } #[cfg(feature = "AudioConfiguration")] #[deprecated = "Use `set_audio()` instead."] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { self.set_audio(val); self } #[cfg(feature = "VideoConfiguration")] #[deprecated = "Use `set_video()` instead."] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { self.set_video(val); self } #[cfg(feature = "MediaDecodingType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: MediaDecodingType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_MediaDecodingType.rs000064400000000000000000000005661046102023000204370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaDeviceInfo.rs000064400000000000000000000056271046102023000200770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MediaDeviceKind.rs000064400000000000000000000006321046102023000200600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaDevices.rs000064400000000000000000000114671046102023000174450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] #[doc = "The `getDisplayMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] pub fn get_display_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "DisplayMediaStreamConstraints")] # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)] #[doc = "The `getDisplayMedia()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`, `MediaDevices`*"] pub fn get_display_media_with_constraints( this: &MediaDevices, constraints: &DisplayMediaStreamConstraints, ) -> 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>; } web-sys-0.3.81/src/features/gen_MediaElementAudioSourceNode.rs000064400000000000000000000027261046102023000224230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaElementAudioSourceOptions.rs000064400000000000000000000040211046102023000231570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "HtmlMediaElement")] #[doc = "Get the `mediaElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaElementAudioSourceOptions`*"] #[wasm_bindgen(method, getter = "mediaElement")] pub fn get_media_element(this: &MediaElementAudioSourceOptions) -> HtmlMediaElement; #[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`*"] #[wasm_bindgen(method, setter = "mediaElement")] pub fn set_media_element(this: &MediaElementAudioSourceOptions, val: &HtmlMediaElement); } 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.set_media_element(media_element); ret } #[cfg(feature = "HtmlMediaElement")] #[deprecated = "Use `set_media_element()` instead."] pub fn media_element(&mut self, val: &HtmlMediaElement) -> &mut Self { self.set_media_element(val); self } } web-sys-0.3.81/src/features/gen_MediaEncodingConfiguration.rs000064400000000000000000000074141046102023000223360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AudioConfiguration")] #[doc = "Get the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaEncodingConfiguration`*"] #[wasm_bindgen(method, getter = "audio")] pub fn get_audio(this: &MediaEncodingConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "audio")] pub fn set_audio(this: &MediaEncodingConfiguration, val: &AudioConfiguration); #[cfg(feature = "VideoConfiguration")] #[doc = "Get the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "video")] pub fn get_video(this: &MediaEncodingConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "video")] pub fn set_video(this: &MediaEncodingConfiguration, val: &VideoConfiguration); #[cfg(feature = "MediaEncodingType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `MediaEncodingType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &MediaEncodingConfiguration) -> MediaEncodingType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &MediaEncodingConfiguration, val: MediaEncodingType); } 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.set_type(type_); ret } #[cfg(feature = "AudioConfiguration")] #[deprecated = "Use `set_audio()` instead."] pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { self.set_audio(val); self } #[cfg(feature = "VideoConfiguration")] #[deprecated = "Use `set_video()` instead."] pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { self.set_video(val); self } #[cfg(feature = "MediaEncodingType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: MediaEncodingType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_MediaEncodingType.rs000064400000000000000000000005731046102023000204470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaEncryptedEvent.rs000064400000000000000000000054641046102023000210220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MediaError.rs000064400000000000000000000044641046102023000171530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MediaImage.rs000064400000000000000000000120771046102023000171030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaImage)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaImage` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaImage; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sizes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sizes")] pub fn get_sizes(this: &MediaImage) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sizes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sizes")] pub fn set_sizes(this: &MediaImage, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "src")] pub fn get_src(this: &MediaImage) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "src")] pub fn set_src(this: &MediaImage, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &MediaImage) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &MediaImage, val: &str); } #[cfg(web_sys_unstable_apis)] impl MediaImage { #[doc = "Construct a new `MediaImage`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaImage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(src: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_src(src); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sizes()` instead."] pub fn sizes(&mut self, val: &str) -> &mut Self { self.set_sizes(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_src()` instead."] pub fn src(&mut self, val: &str) -> &mut Self { self.set_src(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_MediaKeyError.rs000064400000000000000000000020431046102023000176130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaKeyMessageEvent.rs000064400000000000000000000045411046102023000211150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaKeyMessageEventInit.rs000064400000000000000000000121011046102023000217300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaKeyMessageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaKeyMessageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaKeyMessageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaKeyMessageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaKeyMessageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaKeyMessageEventInit, val: bool); #[doc = "Get the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, getter = "message")] pub fn get_message(this: &MediaKeyMessageEventInit) -> ::js_sys::ArrayBuffer; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] #[wasm_bindgen(method, setter = "message")] pub fn set_message(this: &MediaKeyMessageEventInit, val: &::js_sys::ArrayBuffer); #[cfg(feature = "MediaKeyMessageType")] #[doc = "Get the `messageType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`, `MediaKeyMessageType`*"] #[wasm_bindgen(method, getter = "messageType")] pub fn get_message_type(this: &MediaKeyMessageEventInit) -> MediaKeyMessageType; #[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`*"] #[wasm_bindgen(method, setter = "messageType")] pub fn set_message_type(this: &MediaKeyMessageEventInit, val: MediaKeyMessageType); } 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.set_message(message); ret.set_message_type(message_type); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_message()` instead."] pub fn message(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self { self.set_message(val); self } #[cfg(feature = "MediaKeyMessageType")] #[deprecated = "Use `set_message_type()` instead."] pub fn message_type(&mut self, val: MediaKeyMessageType) -> &mut Self { self.set_message_type(val); self } } web-sys-0.3.81/src/features/gen_MediaKeyMessageType.rs000064400000000000000000000007731046102023000207600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaKeyNeededEventInit.rs000064400000000000000000000114451046102023000215420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaKeyNeededEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaKeyNeededEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaKeyNeededEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaKeyNeededEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaKeyNeededEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaKeyNeededEventInit, val: bool); #[doc = "Get the `initData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "initData")] pub fn get_init_data(this: &MediaKeyNeededEventInit) -> Option<::js_sys::ArrayBuffer>; #[doc = "Change the `initData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, setter = "initData")] pub fn set_init_data(this: &MediaKeyNeededEventInit, val: Option<&::js_sys::ArrayBuffer>); #[doc = "Get the `initDataType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "initDataType")] pub fn get_init_data_type(this: &MediaKeyNeededEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `initDataType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, setter = "initDataType")] pub fn set_init_data_type(this: &MediaKeyNeededEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_init_data()` instead."] pub fn init_data(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { self.set_init_data(val); self } #[deprecated = "Use `set_init_data_type()` instead."] pub fn init_data_type(&mut self, val: &str) -> &mut Self { self.set_init_data_type(val); self } } impl Default for MediaKeyNeededEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaKeySession.rs000064400000000000000000000226631046102023000201570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = 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_js_u8_array( this: &MediaKeySession, init_data_type: &str, init_data: &::js_sys::Uint8Array, ) -> ::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; # [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_js_u8_array( this: &MediaKeySession, response: &::js_sys::Uint8Array, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_MediaKeySessionType.rs000064400000000000000000000006221046102023000210100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaKeyStatus.rs000064400000000000000000000010471046102023000200100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaKeyStatusMap.rs000064400000000000000000000133121046102023000204440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 (method , structural , js_class = "MediaKeyStatusMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn entries(this: &MediaKeyStatusMap) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn for_each(this: &MediaKeyStatusMap, callback: &::js_sys::Function) -> Result<(), 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_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 (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_js_u8_array( this: &MediaKeyStatusMap, key_id: &::js_sys::Uint8Array, ) -> 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; # [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_js_u8_array(this: &MediaKeyStatusMap, key_id: &::js_sys::Uint8Array) -> bool; # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn keys(this: &MediaKeyStatusMap) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] pub fn values(this: &MediaKeyStatusMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_MediaKeySystemAccess.rs000064400000000000000000000042371046102023000211370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MediaKeySystemConfiguration.rs000064400000000000000000000167111046102023000225450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audioCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "audioCapabilities")] pub fn get_audio_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `audioCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, setter = "audioCapabilities")] pub fn set_audio_capabilities( this: &MediaKeySystemConfiguration, val: &::wasm_bindgen::JsValue, ); #[cfg(feature = "MediaKeysRequirement")] #[doc = "Get the `distinctiveIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] #[wasm_bindgen(method, getter = "distinctiveIdentifier")] pub fn get_distinctive_identifier( this: &MediaKeySystemConfiguration, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "distinctiveIdentifier")] pub fn set_distinctive_identifier( this: &MediaKeySystemConfiguration, val: MediaKeysRequirement, ); #[doc = "Get the `initDataTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "initDataTypes")] pub fn get_init_data_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `initDataTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, setter = "initDataTypes")] pub fn set_init_data_types(this: &MediaKeySystemConfiguration, val: &::wasm_bindgen::JsValue); #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &MediaKeySystemConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &MediaKeySystemConfiguration, val: &str); #[cfg(feature = "MediaKeysRequirement")] #[doc = "Get the `persistentState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] #[wasm_bindgen(method, getter = "persistentState")] pub fn get_persistent_state(this: &MediaKeySystemConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "persistentState")] pub fn set_persistent_state(this: &MediaKeySystemConfiguration, val: MediaKeysRequirement); #[doc = "Get the `sessionTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "sessionTypes")] pub fn get_session_types(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `sessionTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, setter = "sessionTypes")] pub fn set_session_types(this: &MediaKeySystemConfiguration, val: &::wasm_bindgen::JsValue); #[doc = "Get the `videoCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "videoCapabilities")] pub fn get_video_capabilities(this: &MediaKeySystemConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `videoCapabilities` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, setter = "videoCapabilities")] pub fn set_video_capabilities( this: &MediaKeySystemConfiguration, val: &::wasm_bindgen::JsValue, ); } 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 } #[deprecated = "Use `set_audio_capabilities()` instead."] pub fn audio_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_audio_capabilities(val); self } #[cfg(feature = "MediaKeysRequirement")] #[deprecated = "Use `set_distinctive_identifier()` instead."] pub fn distinctive_identifier(&mut self, val: MediaKeysRequirement) -> &mut Self { self.set_distinctive_identifier(val); self } #[deprecated = "Use `set_init_data_types()` instead."] pub fn init_data_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_init_data_types(val); self } #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &str) -> &mut Self { self.set_label(val); self } #[cfg(feature = "MediaKeysRequirement")] #[deprecated = "Use `set_persistent_state()` instead."] pub fn persistent_state(&mut self, val: MediaKeysRequirement) -> &mut Self { self.set_persistent_state(val); self } #[deprecated = "Use `set_session_types()` instead."] pub fn session_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_session_types(val); self } #[deprecated = "Use `set_video_capabilities()` instead."] pub fn video_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_video_capabilities(val); self } } impl Default for MediaKeySystemConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaKeySystemMediaCapability.rs000064400000000000000000000051601046102023000227530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, getter = "contentType")] pub fn get_content_type( this: &MediaKeySystemMediaCapability, ) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, setter = "contentType")] pub fn set_content_type(this: &MediaKeySystemMediaCapability, val: &str); #[doc = "Get the `robustness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, getter = "robustness")] pub fn get_robustness(this: &MediaKeySystemMediaCapability) -> Option<::alloc::string::String>; #[doc = "Change the `robustness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, setter = "robustness")] pub fn set_robustness(this: &MediaKeySystemMediaCapability, val: &str); } 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 } #[deprecated = "Use `set_content_type()` instead."] pub fn content_type(&mut self, val: &str) -> &mut Self { self.set_content_type(val); self } #[deprecated = "Use `set_robustness()` instead."] pub fn robustness(&mut self, val: &str) -> &mut Self { self.set_robustness(val); self } } impl Default for MediaKeySystemMediaCapability { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaKeySystemStatus.rs000064400000000000000000000010411046102023000212070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaKeys.rs000064400000000000000000000114131046102023000167650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; # [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_js_u8_array( this: &MediaKeys, server_certificate: &::js_sys::Uint8Array, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_MediaKeysPolicy.rs000064400000000000000000000032441046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `minHdcpVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] #[wasm_bindgen(method, getter = "minHdcpVersion")] pub fn get_min_hdcp_version(this: &MediaKeysPolicy) -> Option<::alloc::string::String>; #[doc = "Change the `minHdcpVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] #[wasm_bindgen(method, setter = "minHdcpVersion")] pub fn set_min_hdcp_version(this: &MediaKeysPolicy, val: &str); } 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 } #[deprecated = "Use `set_min_hdcp_version()` instead."] pub fn min_hdcp_version(&mut self, val: &str) -> &mut Self { self.set_min_hdcp_version(val); self } } impl Default for MediaKeysPolicy { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaKeysRequirement.rs000064400000000000000000000006401046102023000212060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaList.rs000064400000000000000000000070531046102023000167720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; #[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] pub fn get(this: &MediaList, index: u32) -> Option<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_MediaMetadata.rs000064400000000000000000000202131046102023000175700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaMetadata , typescript_type = "MediaMetadata")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaMetadata` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaMetadata; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "MediaMetadata" , 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/MediaMetadata/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn title(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , 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/MediaMetadata/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_title(this: &MediaMetadata, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "MediaMetadata" , js_name = artist)] #[doc = "Getter for the `artist` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn artist(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = artist)] #[doc = "Setter for the `artist` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_artist(this: &MediaMetadata, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "MediaMetadata" , js_name = album)] #[doc = "Getter for the `album` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn album(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = album)] #[doc = "Setter for the `album` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_album(this: &MediaMetadata, value: &str); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "MediaMetadata" , js_name = artwork)] #[doc = "Getter for the `artwork` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn artwork(this: &MediaMetadata) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = artwork)] #[doc = "Setter for the `artwork` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_artwork(this: &MediaMetadata, value: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "MediaMetadata")] #[doc = "The `new MediaMetadata(..)` constructor, creating a new instance of `MediaMetadata`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaMetadataInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaMetadata")] #[doc = "The `new MediaMetadata(..)` constructor, creating a new instance of `MediaMetadata`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`, `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_init(init: &MediaMetadataInit) -> Result; } web-sys-0.3.81/src/features/gen_MediaMetadataInit.rs000064400000000000000000000152361046102023000204250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaMetadataInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaMetadataInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaMetadataInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `album` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "album")] pub fn get_album(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `album` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "album")] pub fn set_album(this: &MediaMetadataInit, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `artist` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "artist")] pub fn get_artist(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `artist` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "artist")] pub fn set_artist(this: &MediaMetadataInit, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `artwork` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "artwork")] pub fn get_artwork(this: &MediaMetadataInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `artwork` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "artwork")] pub fn set_artwork(this: &MediaMetadataInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "title")] pub fn get_title(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "title")] pub fn set_title(this: &MediaMetadataInit, val: &str); } #[cfg(web_sys_unstable_apis)] impl MediaMetadataInit { #[doc = "Construct a new `MediaMetadataInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadataInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_album()` instead."] pub fn album(&mut self, val: &str) -> &mut Self { self.set_album(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_artist()` instead."] pub fn artist(&mut self, val: &str) -> &mut Self { self.set_artist(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_artwork()` instead."] pub fn artwork(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_artwork(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_title()` instead."] pub fn title(&mut self, val: &str) -> &mut Self { self.set_title(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MediaMetadataInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaPositionState.rs000064400000000000000000000126111046102023000206600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaPositionState)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaPositionState` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaPositionState; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &MediaPositionState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &MediaPositionState, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `playbackRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "playbackRate")] pub fn get_playback_rate(this: &MediaPositionState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `playbackRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "playbackRate")] pub fn set_playback_rate(this: &MediaPositionState, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `position` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "position")] pub fn get_position(this: &MediaPositionState) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `position` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "position")] pub fn set_position(this: &MediaPositionState, val: f64); } #[cfg(web_sys_unstable_apis)] impl MediaPositionState { #[doc = "Construct a new `MediaPositionState`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_playback_rate()` instead."] pub fn playback_rate(&mut self, val: f64) -> &mut Self { self.set_playback_rate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_position()` instead."] pub fn position(&mut self, val: f64) -> &mut Self { self.set_position(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MediaPositionState { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaQueryList.rs000064400000000000000000000112731046102023000200170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_MediaQueryListEvent.rs000064400000000000000000000053371046102023000210250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MediaQueryListEventInit.rs000064400000000000000000000112111046102023000216350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaQueryListEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaQueryListEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaQueryListEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaQueryListEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaQueryListEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaQueryListEventInit, val: bool); #[doc = "Get the `matches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "matches")] pub fn get_matches(this: &MediaQueryListEventInit) -> Option; #[doc = "Change the `matches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, setter = "matches")] pub fn set_matches(this: &MediaQueryListEventInit, val: bool); #[doc = "Get the `media` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "media")] pub fn get_media(this: &MediaQueryListEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `media` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, setter = "media")] pub fn set_media(this: &MediaQueryListEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_matches()` instead."] pub fn matches(&mut self, val: bool) -> &mut Self { self.set_matches(val); self } #[deprecated = "Use `set_media()` instead."] pub fn media(&mut self, val: &str) -> &mut Self { self.set_media(val); self } } impl Default for MediaQueryListEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaRecorder.rs000064400000000000000000000314631046102023000176260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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_static)"] #[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>; } web-sys-0.3.81/src/features/gen_MediaRecorderErrorEvent.rs000064400000000000000000000035501046102023000216360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaRecorderErrorEventInit.rs000064400000000000000000000102111046102023000224520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaRecorderErrorEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaRecorderErrorEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaRecorderErrorEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaRecorderErrorEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaRecorderErrorEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaRecorderErrorEventInit, val: bool); #[cfg(feature = "DomException")] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEventInit`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &MediaRecorderErrorEventInit) -> DomException; #[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`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &MediaRecorderErrorEventInit, val: &DomException); } 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.set_error(error); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "DomException")] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &DomException) -> &mut Self { self.set_error(val); self } } web-sys-0.3.81/src/features/gen_MediaRecorderOptions.rs000064400000000000000000000101511046102023000211710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audioBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, getter = "audioBitsPerSecond")] pub fn get_audio_bits_per_second(this: &MediaRecorderOptions) -> Option; #[doc = "Change the `audioBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, setter = "audioBitsPerSecond")] pub fn set_audio_bits_per_second(this: &MediaRecorderOptions, val: u32); #[doc = "Get the `bitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, getter = "bitsPerSecond")] pub fn get_bits_per_second(this: &MediaRecorderOptions) -> Option; #[doc = "Change the `bitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, setter = "bitsPerSecond")] pub fn set_bits_per_second(this: &MediaRecorderOptions, val: u32); #[doc = "Get the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, getter = "mimeType")] pub fn get_mime_type(this: &MediaRecorderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, setter = "mimeType")] pub fn set_mime_type(this: &MediaRecorderOptions, val: &str); #[doc = "Get the `videoBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, getter = "videoBitsPerSecond")] pub fn get_video_bits_per_second(this: &MediaRecorderOptions) -> Option; #[doc = "Change the `videoBitsPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, setter = "videoBitsPerSecond")] pub fn set_video_bits_per_second(this: &MediaRecorderOptions, val: u32); } 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 } #[deprecated = "Use `set_audio_bits_per_second()` instead."] pub fn audio_bits_per_second(&mut self, val: u32) -> &mut Self { self.set_audio_bits_per_second(val); self } #[deprecated = "Use `set_bits_per_second()` instead."] pub fn bits_per_second(&mut self, val: u32) -> &mut Self { self.set_bits_per_second(val); self } #[deprecated = "Use `set_mime_type()` instead."] pub fn mime_type(&mut self, val: &str) -> &mut Self { self.set_mime_type(val); self } #[deprecated = "Use `set_video_bits_per_second()` instead."] pub fn video_bits_per_second(&mut self, val: u32) -> &mut Self { self.set_video_bits_per_second(val); self } } impl Default for MediaRecorderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaSession.rs000064400000000000000000000176041046102023000175050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaSession , typescript_type = "MediaSession")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaSession` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaMetadata")] # [wasm_bindgen (structural , method , getter , js_class = "MediaSession" , js_name = metadata)] #[doc = "Getter for the `metadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/metadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`, `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn metadata(this: &MediaSession) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaMetadata")] # [wasm_bindgen (structural , method , setter , js_class = "MediaSession" , js_name = metadata)] #[doc = "Setter for the `metadata` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/metadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaMetadata`, `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_metadata(this: &MediaSession, value: Option<&MediaMetadata>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionPlaybackState")] # [wasm_bindgen (structural , method , getter , js_class = "MediaSession" , js_name = playbackState)] #[doc = "Getter for the `playbackState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/playbackState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`, `MediaSessionPlaybackState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn playback_state(this: &MediaSession) -> MediaSessionPlaybackState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionPlaybackState")] # [wasm_bindgen (structural , method , setter , js_class = "MediaSession" , js_name = playbackState)] #[doc = "Setter for the `playbackState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/playbackState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`, `MediaSessionPlaybackState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_playback_state(this: &MediaSession, value: MediaSessionPlaybackState); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionAction")] # [wasm_bindgen (method , structural , js_class = "MediaSession" , js_name = setActionHandler)] #[doc = "The `setActionHandler()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setActionHandler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`, `MediaSessionAction`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_action_handler( this: &MediaSession, action: MediaSessionAction, handler: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "MediaSession" , js_name = setCameraActive)] #[doc = "The `setCameraActive()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setCameraActive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_camera_active(this: &MediaSession, active: bool); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "MediaSession" , js_name = setMicrophoneActive)] #[doc = "The `setMicrophoneActive()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setMicrophoneActive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_microphone_active(this: &MediaSession, active: bool); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "MediaSession" , js_name = setPositionState)] #[doc = "The `setPositionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setPositionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_position_state(this: &MediaSession); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaPositionState")] # [wasm_bindgen (method , structural , js_class = "MediaSession" , js_name = setPositionState)] #[doc = "The `setPositionState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setPositionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaPositionState`, `MediaSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_position_state_with_state(this: &MediaSession, state: &MediaPositionState); } web-sys-0.3.81/src/features/gen_MediaSessionAction.rs000064400000000000000000000016361046102023000206410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `MediaSessionAction` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionAction`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaSessionAction { Play = "play", Pause = "pause", Seekbackward = "seekbackward", Seekforward = "seekforward", Previoustrack = "previoustrack", Nexttrack = "nexttrack", Skipad = "skipad", Stop = "stop", Seekto = "seekto", Togglemicrophone = "togglemicrophone", Togglecamera = "togglecamera", Hangup = "hangup", } web-sys-0.3.81/src/features/gen_MediaSessionActionDetails.rs000064400000000000000000000161041046102023000221430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaSessionActionDetails)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaSessionActionDetails` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaSessionActionDetails; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionAction")] #[doc = "Get the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionAction`, `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "action")] pub fn get_action(this: &MediaSessionActionDetails) -> MediaSessionAction; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionAction")] #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionAction`, `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "action")] pub fn set_action(this: &MediaSessionActionDetails, val: MediaSessionAction); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `fastSeek` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "fastSeek")] pub fn get_fast_seek(this: &MediaSessionActionDetails) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `fastSeek` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "fastSeek")] pub fn set_fast_seek(this: &MediaSessionActionDetails, val: Option); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `seekOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "seekOffset")] pub fn get_seek_offset(this: &MediaSessionActionDetails) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `seekOffset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "seekOffset")] pub fn set_seek_offset(this: &MediaSessionActionDetails, val: Option); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `seekTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "seekTime")] pub fn get_seek_time(this: &MediaSessionActionDetails) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `seekTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "seekTime")] pub fn set_seek_time(this: &MediaSessionActionDetails, val: Option); } #[cfg(web_sys_unstable_apis)] impl MediaSessionActionDetails { #[cfg(feature = "MediaSessionAction")] #[doc = "Construct a new `MediaSessionActionDetails`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionAction`, `MediaSessionActionDetails`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(action: MediaSessionAction) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_action(action); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSessionAction")] #[deprecated = "Use `set_action()` instead."] pub fn action(&mut self, val: MediaSessionAction) -> &mut Self { self.set_action(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_fast_seek()` instead."] pub fn fast_seek(&mut self, val: Option) -> &mut Self { self.set_fast_seek(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_seek_offset()` instead."] pub fn seek_offset(&mut self, val: Option) -> &mut Self { self.set_seek_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_seek_time()` instead."] pub fn seek_time(&mut self, val: Option) -> &mut Self { self.set_seek_time(val); self } } web-sys-0.3.81/src/features/gen_MediaSessionPlaybackState.rs000064400000000000000000000012421046102023000221440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `MediaSessionPlaybackState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSessionPlaybackState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum MediaSessionPlaybackState { None = "none", Paused = "paused", Playing = "playing", } web-sys-0.3.81/src/features/gen_MediaSource.rs000064400000000000000000000236731046102023000173250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = onsourceclose)] #[doc = "Getter for the `onsourceclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn onsourceclose(this: &MediaSource) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "MediaSource" , js_name = onsourceclose)] #[doc = "Setter for the `onsourceclose` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] pub fn set_onsourceclose(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_static)"] #[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>; } web-sys-0.3.81/src/features/gen_MediaSourceEndOfStreamError.rs000064400000000000000000000006171046102023000224200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaSourceEnum.rs000064400000000000000000000010211046102023000201310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaSourceReadyState.rs000064400000000000000000000006141046102023000213010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaStream.rs000064400000000000000000000205521046102023000173110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_MediaStreamAudioDestinationNode.rs000064400000000000000000000053031046102023000233000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaStreamAudioSourceNode.rs000064400000000000000000000027061046102023000222630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaStreamAudioSourceOptions.rs000064400000000000000000000037031046102023000230270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "MediaStream")] #[doc = "Get the `mediaStream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioSourceOptions`*"] #[wasm_bindgen(method, getter = "mediaStream")] pub fn get_media_stream(this: &MediaStreamAudioSourceOptions) -> MediaStream; #[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`*"] #[wasm_bindgen(method, setter = "mediaStream")] pub fn set_media_stream(this: &MediaStreamAudioSourceOptions, val: &MediaStream); } 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.set_media_stream(media_stream); ret } #[cfg(feature = "MediaStream")] #[deprecated = "Use `set_media_stream()` instead."] pub fn media_stream(&mut self, val: &MediaStream) -> &mut Self { self.set_media_stream(val); self } } web-sys-0.3.81/src/features/gen_MediaStreamConstraints.rs000064400000000000000000000113041046102023000215340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "audio")] pub fn get_audio(this: &MediaStreamConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `audio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "audio")] pub fn set_audio(this: &MediaStreamConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `fake` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "fake")] pub fn get_fake(this: &MediaStreamConstraints) -> Option; #[doc = "Change the `fake` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "fake")] pub fn set_fake(this: &MediaStreamConstraints, val: bool); #[doc = "Get the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "peerIdentity")] pub fn get_peer_identity(this: &MediaStreamConstraints) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "peerIdentity")] pub fn set_peer_identity(this: &MediaStreamConstraints, val: Option<&str>); #[doc = "Get the `picture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "picture")] pub fn get_picture(this: &MediaStreamConstraints) -> Option; #[doc = "Change the `picture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "picture")] pub fn set_picture(this: &MediaStreamConstraints, val: bool); #[doc = "Get the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "video")] pub fn get_video(this: &MediaStreamConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `video` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, setter = "video")] pub fn set_video(this: &MediaStreamConstraints, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_audio()` instead."] pub fn audio(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_audio(val); self } #[deprecated = "Use `set_fake()` instead."] pub fn fake(&mut self, val: bool) -> &mut Self { self.set_fake(val); self } #[deprecated = "Use `set_peer_identity()` instead."] pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { self.set_peer_identity(val); self } #[deprecated = "Use `set_picture()` instead."] pub fn picture(&mut self, val: bool) -> &mut Self { self.set_picture(val); self } #[deprecated = "Use `set_video()` instead."] pub fn video(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_video(val); self } } impl Default for MediaStreamConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaStreamError.rs000064400000000000000000000040411046102023000203160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_MediaStreamEvent.rs000064400000000000000000000043501046102023000203110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaStreamEventInit.rs000064400000000000000000000077711046102023000211470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaStreamEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaStreamEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaStreamEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaStreamEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaStreamEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaStreamEventInit, val: bool); #[cfg(feature = "MediaStream")] #[doc = "Get the `stream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamEventInit`*"] #[wasm_bindgen(method, getter = "stream")] pub fn get_stream(this: &MediaStreamEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "stream")] pub fn set_stream(this: &MediaStreamEventInit, val: Option<&MediaStream>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "MediaStream")] #[deprecated = "Use `set_stream()` instead."] pub fn stream(&mut self, val: Option<&MediaStream>) -> &mut Self { self.set_stream(val); self } } impl Default for MediaStreamEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaStreamTrack.rs000064400000000000000000000250541046102023000203000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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(web_sys_unstable_apis)] #[cfg(feature = "MediaTrackCapabilities")] # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getCapabilities)] #[doc = "The `getCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_capabilities(this: &MediaStreamTrack) -> MediaTrackCapabilities; #[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); } web-sys-0.3.81/src/features/gen_MediaStreamTrackEvent.rs000064400000000000000000000035141046102023000212770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MediaStreamTrackEventInit.rs000064400000000000000000000102071046102023000221200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MediaStreamTrackEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MediaStreamTrackEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MediaStreamTrackEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MediaStreamTrackEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MediaStreamTrackEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MediaStreamTrackEventInit, val: bool); #[cfg(feature = "MediaStreamTrack")] #[doc = "Get the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEventInit`*"] #[wasm_bindgen(method, getter = "track")] pub fn get_track(this: &MediaStreamTrackEventInit) -> MediaStreamTrack; #[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`*"] #[wasm_bindgen(method, setter = "track")] pub fn set_track(this: &MediaStreamTrackEventInit, val: &MediaStreamTrack); } 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.set_track(track); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "MediaStreamTrack")] #[deprecated = "Use `set_track()` instead."] pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { self.set_track(val); self } } web-sys-0.3.81/src/features/gen_MediaStreamTrackGenerator.rs000064400000000000000000000070541046102023000221470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrackGenerator , typescript_type = "MediaStreamTrackGenerator")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackGenerator` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackGenerator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGenerator`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaStreamTrackGenerator; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrackGenerator" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackGenerator/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGenerator`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &MediaStreamTrackGenerator) -> WritableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrackGenerator" , js_name = writable)] #[doc = "Setter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackGenerator/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGenerator`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_writable(this: &MediaStreamTrackGenerator, value: &WritableStream); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrackGeneratorInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamTrackGenerator")] #[doc = "The `new MediaStreamTrackGenerator(..)` constructor, creating a new instance of `MediaStreamTrackGenerator`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackGenerator/MediaStreamTrackGenerator)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGenerator`, `MediaStreamTrackGeneratorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &MediaStreamTrackGeneratorInit) -> Result; } web-sys-0.3.81/src/features/gen_MediaStreamTrackGeneratorInit.rs000064400000000000000000000054201046102023000227660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamTrackGeneratorInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackGeneratorInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGeneratorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaStreamTrackGeneratorInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `kind` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGeneratorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "kind")] pub fn get_kind(this: &MediaStreamTrackGeneratorInit) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `kind` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGeneratorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "kind")] pub fn set_kind(this: &MediaStreamTrackGeneratorInit, val: &str); } #[cfg(web_sys_unstable_apis)] impl MediaStreamTrackGeneratorInit { #[doc = "Construct a new `MediaStreamTrackGeneratorInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackGeneratorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(kind: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_kind(kind); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_kind()` instead."] pub fn kind(&mut self, val: &str) -> &mut Self { self.set_kind(val); self } } web-sys-0.3.81/src/features/gen_MediaStreamTrackProcessor.rs000064400000000000000000000067671046102023000222120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamTrackProcessor , typescript_type = "MediaStreamTrackProcessor")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackProcessor` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaStreamTrackProcessor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrackProcessor" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `ReadableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &MediaStreamTrackProcessor) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrackProcessor" , js_name = readable)] #[doc = "Setter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `ReadableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_readable(this: &MediaStreamTrackProcessor, value: &ReadableStream); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrackProcessorInit")] #[wasm_bindgen(catch, constructor, js_class = "MediaStreamTrackProcessor")] #[doc = "The `new MediaStreamTrackProcessor(..)` constructor, creating a new instance of `MediaStreamTrackProcessor`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/MediaStreamTrackProcessor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &MediaStreamTrackProcessorInit) -> Result; } web-sys-0.3.81/src/features/gen_MediaStreamTrackProcessorInit.rs000064400000000000000000000106561046102023000230260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaStreamTrackProcessorInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaStreamTrackProcessorInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaStreamTrackProcessorInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `maxBufferSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "maxBufferSize")] pub fn get_max_buffer_size(this: &MediaStreamTrackProcessorInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `maxBufferSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "maxBufferSize")] pub fn set_max_buffer_size(this: &MediaStreamTrackProcessorInit, val: u16); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] #[doc = "Get the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "track")] pub fn get_track(this: &MediaStreamTrackProcessorInit) -> MediaStreamTrack; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] #[doc = "Change the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "track")] pub fn set_track(this: &MediaStreamTrackProcessorInit, val: &MediaStreamTrack); } #[cfg(web_sys_unstable_apis)] impl MediaStreamTrackProcessorInit { #[cfg(feature = "MediaStreamTrack")] #[doc = "Construct a new `MediaStreamTrackProcessorInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackProcessorInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(track: &MediaStreamTrack) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_track(track); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_max_buffer_size()` instead."] pub fn max_buffer_size(&mut self, val: u16) -> &mut Self { self.set_max_buffer_size(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaStreamTrack")] #[deprecated = "Use `set_track()` instead."] pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { self.set_track(val); self } } web-sys-0.3.81/src/features/gen_MediaStreamTrackState.rs000064400000000000000000000005651046102023000213010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MediaTrackCapabilities.rs000064400000000000000000000607471046102023000214460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackCapabilities)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MediaTrackCapabilities` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MediaTrackCapabilities; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Get the `aspectRatio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "aspectRatio")] pub fn get_aspect_ratio(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Change the `aspectRatio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "aspectRatio")] pub fn set_aspect_ratio(this: &MediaTrackCapabilities, val: &DoubleRange); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "autoGainControl")] pub fn get_auto_gain_control(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "autoGainControl")] pub fn set_auto_gain_control(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `backgroundBlur` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "backgroundBlur")] pub fn get_background_blur(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `backgroundBlur` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "backgroundBlur")] pub fn set_background_blur(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &MediaTrackCapabilities, val: &ULongRange); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &MediaTrackCapabilities, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "echoCancellation")] pub fn get_echo_cancellation(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "echoCancellation")] pub fn set_echo_cancellation(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "facingMode")] pub fn get_facing_mode(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "facingMode")] pub fn set_facing_mode(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Get the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frameRate")] pub fn get_frame_rate(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frameRate")] pub fn set_frame_rate(this: &MediaTrackCapabilities, val: &DoubleRange); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `groupId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "groupId")] pub fn get_group_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `groupId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "groupId")] pub fn set_group_id(this: &MediaTrackCapabilities, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &MediaTrackCapabilities, val: &ULongRange); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Get the `latency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "latency")] pub fn get_latency(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[doc = "Change the `latency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "latency")] pub fn set_latency(this: &MediaTrackCapabilities, val: &DoubleRange); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "noiseSuppression")] pub fn get_noise_suppression(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "noiseSuppression")] pub fn set_noise_suppression(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `resizeMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "resizeMode")] pub fn get_resize_mode(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `resizeMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "resizeMode")] pub fn set_resize_mode(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &MediaTrackCapabilities, val: &ULongRange); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Get the `sampleSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sampleSize")] pub fn get_sample_size(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Change the `sampleSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sampleSize")] pub fn set_sample_size(this: &MediaTrackCapabilities, val: &ULongRange); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &MediaTrackCapabilities) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &MediaTrackCapabilities, val: &ULongRange); } #[cfg(web_sys_unstable_apis)] impl MediaTrackCapabilities { #[doc = "Construct a new `MediaTrackCapabilities`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "DoubleRange")] #[deprecated = "Use `set_aspect_ratio()` instead."] pub fn aspect_ratio(&mut self, val: &DoubleRange) -> &mut Self { self.set_aspect_ratio(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_auto_gain_control()` instead."] pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_auto_gain_control(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_background_blur()` instead."] pub fn background_blur(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_background_blur(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: &ULongRange) -> &mut Self { self.set_channel_count(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &str) -> &mut Self { self.set_device_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_echo_cancellation()` instead."] pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_echo_cancellation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_facing_mode()` instead."] pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_facing_mode(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[deprecated = "Use `set_frame_rate()` instead."] pub fn frame_rate(&mut self, val: &DoubleRange) -> &mut Self { self.set_frame_rate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_group_id()` instead."] pub fn group_id(&mut self, val: &str) -> &mut Self { self.set_group_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: &ULongRange) -> &mut Self { self.set_height(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DoubleRange")] #[deprecated = "Use `set_latency()` instead."] pub fn latency(&mut self, val: &DoubleRange) -> &mut Self { self.set_latency(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_noise_suppression()` instead."] pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_noise_suppression(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_resize_mode()` instead."] pub fn resize_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_resize_mode(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: &ULongRange) -> &mut Self { self.set_sample_rate(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[deprecated = "Use `set_sample_size()` instead."] pub fn sample_size(&mut self, val: &ULongRange) -> &mut Self { self.set_sample_size(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ULongRange")] #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: &ULongRange) -> &mut Self { self.set_width(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MediaTrackCapabilities { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaTrackConstraintSet.rs000064400000000000000000000341721046102023000216460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "autoGainControl")] pub fn get_auto_gain_control(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "autoGainControl")] pub fn set_auto_gain_control(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "browserWindow")] pub fn get_browser_window(this: &MediaTrackConstraintSet) -> Option; #[doc = "Change the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "browserWindow")] pub fn set_browser_window(this: &MediaTrackConstraintSet, val: f64); #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "echoCancellation")] pub fn get_echo_cancellation(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "echoCancellation")] pub fn set_echo_cancellation(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "facingMode")] pub fn get_facing_mode(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "facingMode")] pub fn set_facing_mode(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "frameRate")] pub fn get_frame_rate(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "frameRate")] pub fn set_frame_rate(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "mediaSource")] pub fn get_media_source(this: &MediaTrackConstraintSet) -> Option<::alloc::string::String>; #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "mediaSource")] pub fn set_media_source(this: &MediaTrackConstraintSet, val: &str); #[doc = "Get the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "noiseSuppression")] pub fn get_noise_suppression(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "noiseSuppression")] pub fn set_noise_suppression(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "scrollWithPage")] pub fn get_scroll_with_page(this: &MediaTrackConstraintSet) -> Option; #[doc = "Change the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "scrollWithPage")] pub fn set_scroll_with_page(this: &MediaTrackConstraintSet, val: bool); #[doc = "Get the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "viewportHeight")] pub fn get_viewport_height(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "viewportHeight")] pub fn set_viewport_height(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "viewportOffsetX")] pub fn get_viewport_offset_x(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "viewportOffsetX")] pub fn set_viewport_offset_x(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "viewportOffsetY")] pub fn get_viewport_offset_y(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "viewportOffsetY")] pub fn set_viewport_offset_y(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "viewportWidth")] pub fn get_viewport_width(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "viewportWidth")] pub fn set_viewport_width(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_auto_gain_control()` instead."] pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_auto_gain_control(val); self } #[deprecated = "Use `set_browser_window()` instead."] pub fn browser_window(&mut self, val: f64) -> &mut Self { self.set_browser_window(val); self } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_channel_count(val); self } #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_device_id(val); self } #[deprecated = "Use `set_echo_cancellation()` instead."] pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_echo_cancellation(val); self } #[deprecated = "Use `set_facing_mode()` instead."] pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_facing_mode(val); self } #[deprecated = "Use `set_frame_rate()` instead."] pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_frame_rate(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_media_source()` instead."] pub fn media_source(&mut self, val: &str) -> &mut Self { self.set_media_source(val); self } #[deprecated = "Use `set_noise_suppression()` instead."] pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_noise_suppression(val); self } #[deprecated = "Use `set_scroll_with_page()` instead."] pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { self.set_scroll_with_page(val); self } #[deprecated = "Use `set_viewport_height()` instead."] pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_height(val); self } #[deprecated = "Use `set_viewport_offset_x()` instead."] pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_offset_x(val); self } #[deprecated = "Use `set_viewport_offset_y()` instead."] pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_offset_y(val); self } #[deprecated = "Use `set_viewport_width()` instead."] pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_width(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_width(val); self } } impl Default for MediaTrackConstraintSet { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaTrackConstraints.rs000064400000000000000000000354151046102023000213560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "autoGainControl")] pub fn get_auto_gain_control(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "autoGainControl")] pub fn set_auto_gain_control(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "browserWindow")] pub fn get_browser_window(this: &MediaTrackConstraints) -> Option; #[doc = "Change the `browserWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "browserWindow")] pub fn set_browser_window(this: &MediaTrackConstraints, val: f64); #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "echoCancellation")] pub fn get_echo_cancellation(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "echoCancellation")] pub fn set_echo_cancellation(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "facingMode")] pub fn get_facing_mode(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "facingMode")] pub fn set_facing_mode(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "frameRate")] pub fn get_frame_rate(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "frameRate")] pub fn set_frame_rate(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "mediaSource")] pub fn get_media_source(this: &MediaTrackConstraints) -> Option<::alloc::string::String>; #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "mediaSource")] pub fn set_media_source(this: &MediaTrackConstraints, val: &str); #[doc = "Get the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "noiseSuppression")] pub fn get_noise_suppression(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "noiseSuppression")] pub fn set_noise_suppression(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "scrollWithPage")] pub fn get_scroll_with_page(this: &MediaTrackConstraints) -> Option; #[doc = "Change the `scrollWithPage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "scrollWithPage")] pub fn set_scroll_with_page(this: &MediaTrackConstraints, val: bool); #[doc = "Get the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "viewportHeight")] pub fn get_viewport_height(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "viewportHeight")] pub fn set_viewport_height(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "viewportOffsetX")] pub fn get_viewport_offset_x(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportOffsetX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "viewportOffsetX")] pub fn set_viewport_offset_x(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "viewportOffsetY")] pub fn get_viewport_offset_y(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportOffsetY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "viewportOffsetY")] pub fn set_viewport_offset_y(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "viewportWidth")] pub fn get_viewport_width(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `viewportWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "viewportWidth")] pub fn set_viewport_width(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &MediaTrackConstraints) -> ::wasm_bindgen::JsValue; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); #[doc = "Get the `advanced` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "advanced")] pub fn get_advanced(this: &MediaTrackConstraints) -> Option<::js_sys::Array>; #[doc = "Change the `advanced` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, setter = "advanced")] pub fn set_advanced(this: &MediaTrackConstraints, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_auto_gain_control()` instead."] pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_auto_gain_control(val); self } #[deprecated = "Use `set_browser_window()` instead."] pub fn browser_window(&mut self, val: f64) -> &mut Self { self.set_browser_window(val); self } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_channel_count(val); self } #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_device_id(val); self } #[deprecated = "Use `set_echo_cancellation()` instead."] pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_echo_cancellation(val); self } #[deprecated = "Use `set_facing_mode()` instead."] pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_facing_mode(val); self } #[deprecated = "Use `set_frame_rate()` instead."] pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_frame_rate(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_media_source()` instead."] pub fn media_source(&mut self, val: &str) -> &mut Self { self.set_media_source(val); self } #[deprecated = "Use `set_noise_suppression()` instead."] pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_noise_suppression(val); self } #[deprecated = "Use `set_scroll_with_page()` instead."] pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { self.set_scroll_with_page(val); self } #[deprecated = "Use `set_viewport_height()` instead."] pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_height(val); self } #[deprecated = "Use `set_viewport_offset_x()` instead."] pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_offset_x(val); self } #[deprecated = "Use `set_viewport_offset_y()` instead."] pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_offset_y(val); self } #[deprecated = "Use `set_viewport_width()` instead."] pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_viewport_width(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_width(val); self } #[deprecated = "Use `set_advanced()` instead."] pub fn advanced(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_advanced(val); self } } impl Default for MediaTrackConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaTrackSettings.rs000064400000000000000000000172701046102023000206460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "autoGainControl")] pub fn get_auto_gain_control(this: &MediaTrackSettings) -> Option; #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "autoGainControl")] pub fn set_auto_gain_control(this: &MediaTrackSettings, val: bool); #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &MediaTrackSettings) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &MediaTrackSettings, val: i32); #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &MediaTrackSettings) -> Option<::alloc::string::String>; #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &MediaTrackSettings, val: &str); #[doc = "Get the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "echoCancellation")] pub fn get_echo_cancellation(this: &MediaTrackSettings) -> Option; #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "echoCancellation")] pub fn set_echo_cancellation(this: &MediaTrackSettings, val: bool); #[doc = "Get the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "facingMode")] pub fn get_facing_mode(this: &MediaTrackSettings) -> Option<::alloc::string::String>; #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "facingMode")] pub fn set_facing_mode(this: &MediaTrackSettings, val: &str); #[doc = "Get the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "frameRate")] pub fn get_frame_rate(this: &MediaTrackSettings) -> Option; #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "frameRate")] pub fn set_frame_rate(this: &MediaTrackSettings, val: f64); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &MediaTrackSettings) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &MediaTrackSettings, val: i32); #[doc = "Get the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "noiseSuppression")] pub fn get_noise_suppression(this: &MediaTrackSettings) -> Option; #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "noiseSuppression")] pub fn set_noise_suppression(this: &MediaTrackSettings, val: bool); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &MediaTrackSettings) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &MediaTrackSettings, val: i32); } 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 } #[deprecated = "Use `set_auto_gain_control()` instead."] pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { self.set_auto_gain_control(val); self } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: i32) -> &mut Self { self.set_channel_count(val); self } #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: &str) -> &mut Self { self.set_device_id(val); self } #[deprecated = "Use `set_echo_cancellation()` instead."] pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { self.set_echo_cancellation(val); self } #[deprecated = "Use `set_facing_mode()` instead."] pub fn facing_mode(&mut self, val: &str) -> &mut Self { self.set_facing_mode(val); self } #[deprecated = "Use `set_frame_rate()` instead."] pub fn frame_rate(&mut self, val: f64) -> &mut Self { self.set_frame_rate(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: i32) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_noise_suppression()` instead."] pub fn noise_suppression(&mut self, val: bool) -> &mut Self { self.set_noise_suppression(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: i32) -> &mut Self { self.set_width(val); self } } impl Default for MediaTrackSettings { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MediaTrackSupportedConstraints.rs000064400000000000000000000315251046102023000232620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `aspectRatio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "aspectRatio")] pub fn get_aspect_ratio(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `aspectRatio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "aspectRatio")] pub fn set_aspect_ratio(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "autoGainControl")] pub fn get_auto_gain_control(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `autoGainControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "autoGainControl")] pub fn set_auto_gain_control(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "deviceId")] pub fn get_device_id(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "deviceId")] pub fn set_device_id(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "echoCancellation")] pub fn get_echo_cancellation(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `echoCancellation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "echoCancellation")] pub fn set_echo_cancellation(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "facingMode")] pub fn get_facing_mode(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "facingMode")] pub fn set_facing_mode(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "frameRate")] pub fn get_frame_rate(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `frameRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "frameRate")] pub fn set_frame_rate(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `groupId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "groupId")] pub fn get_group_id(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `groupId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "groupId")] pub fn set_group_id(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `latency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "latency")] pub fn get_latency(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `latency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "latency")] pub fn set_latency(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "noiseSuppression")] pub fn get_noise_suppression(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `noiseSuppression` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "noiseSuppression")] pub fn set_noise_suppression(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `sampleSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "sampleSize")] pub fn get_sample_size(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `sampleSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "sampleSize")] pub fn set_sample_size(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `volume` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "volume")] pub fn get_volume(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `volume` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "volume")] pub fn set_volume(this: &MediaTrackSupportedConstraints, val: bool); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &MediaTrackSupportedConstraints) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &MediaTrackSupportedConstraints, val: bool); } 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 } #[deprecated = "Use `set_aspect_ratio()` instead."] pub fn aspect_ratio(&mut self, val: bool) -> &mut Self { self.set_aspect_ratio(val); self } #[deprecated = "Use `set_auto_gain_control()` instead."] pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { self.set_auto_gain_control(val); self } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: bool) -> &mut Self { self.set_channel_count(val); self } #[deprecated = "Use `set_device_id()` instead."] pub fn device_id(&mut self, val: bool) -> &mut Self { self.set_device_id(val); self } #[deprecated = "Use `set_echo_cancellation()` instead."] pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { self.set_echo_cancellation(val); self } #[deprecated = "Use `set_facing_mode()` instead."] pub fn facing_mode(&mut self, val: bool) -> &mut Self { self.set_facing_mode(val); self } #[deprecated = "Use `set_frame_rate()` instead."] pub fn frame_rate(&mut self, val: bool) -> &mut Self { self.set_frame_rate(val); self } #[deprecated = "Use `set_group_id()` instead."] pub fn group_id(&mut self, val: bool) -> &mut Self { self.set_group_id(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: bool) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_latency()` instead."] pub fn latency(&mut self, val: bool) -> &mut Self { self.set_latency(val); self } #[deprecated = "Use `set_noise_suppression()` instead."] pub fn noise_suppression(&mut self, val: bool) -> &mut Self { self.set_noise_suppression(val); self } #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: bool) -> &mut Self { self.set_sample_rate(val); self } #[deprecated = "Use `set_sample_size()` instead."] pub fn sample_size(&mut self, val: bool) -> &mut Self { self.set_sample_size(val); self } #[deprecated = "Use `set_volume()` instead."] pub fn volume(&mut self, val: bool) -> &mut Self { self.set_volume(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: bool) -> &mut Self { self.set_width(val); self } } impl Default for MediaTrackSupportedConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MemoryAttribution.rs000064400000000000000000000131251046102023000206110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MemoryAttribution)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MemoryAttribution` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MemoryAttribution; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MemoryAttributionContainer")] #[doc = "Get the `container` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`, `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "container")] pub fn get_container(this: &MemoryAttribution) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MemoryAttributionContainer")] #[doc = "Change the `container` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`, `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "container")] pub fn set_container(this: &MemoryAttribution, val: &MemoryAttributionContainer); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scope")] pub fn get_scope(this: &MemoryAttribution) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "scope")] pub fn set_scope(this: &MemoryAttribution, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &MemoryAttribution) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &MemoryAttribution, val: &str); } #[cfg(web_sys_unstable_apis)] impl MemoryAttribution { #[doc = "Construct a new `MemoryAttribution`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttribution`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "MemoryAttributionContainer")] #[deprecated = "Use `set_container()` instead."] pub fn container(&mut self, val: &MemoryAttributionContainer) -> &mut Self { self.set_container(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_scope()` instead."] pub fn scope(&mut self, val: &str) -> &mut Self { self.set_scope(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: &str) -> &mut Self { self.set_url(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MemoryAttribution { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MemoryAttributionContainer.rs000064400000000000000000000101721046102023000224530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MemoryAttributionContainer)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MemoryAttributionContainer` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MemoryAttributionContainer; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &MemoryAttributionContainer) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &MemoryAttributionContainer, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "src")] pub fn get_src(this: &MemoryAttributionContainer) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `src` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "src")] pub fn set_src(this: &MemoryAttributionContainer, val: &str); } #[cfg(web_sys_unstable_apis)] impl MemoryAttributionContainer { #[doc = "Construct a new `MemoryAttributionContainer`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryAttributionContainer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_src()` instead."] pub fn src(&mut self, val: &str) -> &mut Self { self.set_src(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MemoryAttributionContainer { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MemoryBreakdownEntry.rs000064400000000000000000000127311046102023000212450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MemoryBreakdownEntry)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MemoryBreakdownEntry` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MemoryBreakdownEntry; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attribution` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attribution")] pub fn get_attribution(this: &MemoryBreakdownEntry) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attribution` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attribution")] pub fn set_attribution(this: &MemoryBreakdownEntry, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytes")] pub fn get_bytes(this: &MemoryBreakdownEntry) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytes")] pub fn set_bytes(this: &MemoryBreakdownEntry, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "types")] pub fn get_types(this: &MemoryBreakdownEntry) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "types")] pub fn set_types(this: &MemoryBreakdownEntry, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl MemoryBreakdownEntry { #[doc = "Construct a new `MemoryBreakdownEntry`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryBreakdownEntry`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_attribution()` instead."] pub fn attribution(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attribution(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes()` instead."] pub fn bytes(&mut self, val: f64) -> &mut Self { self.set_bytes(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_types()` instead."] pub fn types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_types(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MemoryBreakdownEntry { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MemoryMeasurement.rs000064400000000000000000000101051046102023000205650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MemoryMeasurement)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `MemoryMeasurement` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type MemoryMeasurement; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `breakdown` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "breakdown")] pub fn get_breakdown(this: &MemoryMeasurement) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `breakdown` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "breakdown")] pub fn set_breakdown(this: &MemoryMeasurement, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytes")] pub fn get_bytes(this: &MemoryMeasurement) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytes")] pub fn set_bytes(this: &MemoryMeasurement, val: f64); } #[cfg(web_sys_unstable_apis)] impl MemoryMeasurement { #[doc = "Construct a new `MemoryMeasurement`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MemoryMeasurement`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_breakdown()` instead."] pub fn breakdown(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_breakdown(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes()` instead."] pub fn bytes(&mut self, val: f64) -> &mut Self { self.set_bytes(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for MemoryMeasurement { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MessageChannel.rs000064400000000000000000000040151046102023000177670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MessageEvent.rs000064400000000000000000000300011046102023000174720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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, ); } web-sys-0.3.81/src/features/gen_MessageEventInit.rs000064400000000000000000000153561046102023000203360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MessageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MessageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MessageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MessageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MessageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MessageEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &MessageEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &MessageEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "lastEventId")] pub fn get_last_event_id(this: &MessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "lastEventId")] pub fn set_last_event_id(this: &MessageEventInit, val: &str); #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &MessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &MessageEventInit, val: &str); #[doc = "Get the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "ports")] pub fn get_ports(this: &MessageEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `ports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "ports")] pub fn set_ports(this: &MessageEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &MessageEventInit) -> Option<::js_sys::Object>; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &MessageEventInit, val: Option<&::js_sys::Object>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } #[deprecated = "Use `set_last_event_id()` instead."] pub fn last_event_id(&mut self, val: &str) -> &mut Self { self.set_last_event_id(val); self } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &str) -> &mut Self { self.set_origin(val); self } #[deprecated = "Use `set_ports()` instead."] pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ports(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_source(val); self } } impl Default for MessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MessagePort.rs000064400000000000000000000104621046102023000173460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_MidiAccess.rs000064400000000000000000000057071046102023000171270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MidiConnectionEvent.rs000064400000000000000000000044501046102023000210210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MidiConnectionEventInit.rs000064400000000000000000000100271046102023000216420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MidiConnectionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MidiConnectionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MidiConnectionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MidiConnectionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MidiConnectionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MidiConnectionEventInit, val: bool); #[cfg(feature = "MidiPort")] #[doc = "Get the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`, `MidiPort`*"] #[wasm_bindgen(method, getter = "port")] pub fn get_port(this: &MidiConnectionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "port")] pub fn set_port(this: &MidiConnectionEventInit, val: Option<&MidiPort>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "MidiPort")] #[deprecated = "Use `set_port()` instead."] pub fn port(&mut self, val: Option<&MidiPort>) -> &mut Self { self.set_port(val); self } } impl Default for MidiConnectionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MidiInput.rs000064400000000000000000000030411046102023000170120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_MidiInputMap.rs000064400000000000000000000070371046102023000174610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "MIDIInputMap" , 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/MIDIInputMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn size(this: &MidiInputMap) -> u32; # [wasm_bindgen (method , structural , js_class = "MIDIInputMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn entries(this: &MidiInputMap) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "MIDIInputMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn for_each(this: &MidiInputMap, callback: &::js_sys::Function) -> Result<(), JsValue>; #[cfg(feature = "MidiInput")] # [wasm_bindgen (method , structural , js_class = "MIDIInputMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInput`, `MidiInputMap`*"] pub fn get(this: &MidiInputMap, key: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "MIDIInputMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn has(this: &MidiInputMap, key: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "MIDIInputMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn keys(this: &MidiInputMap) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "MIDIInputMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] pub fn values(this: &MidiInputMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_MidiMessageEvent.rs000064400000000000000000000043101046102023000203010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec, 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; } web-sys-0.3.81/src/features/gen_MidiMessageEventInit.rs000064400000000000000000000075511046102023000211370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MidiMessageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MidiMessageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MidiMessageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MidiMessageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MidiMessageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MidiMessageEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &MidiMessageEventInit) -> Option<::alloc::vec::Vec>; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &MidiMessageEventInit, val: &::js_sys::Uint8Array); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::js_sys::Uint8Array) -> &mut Self { self.set_data(val); self } } impl Default for MidiMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MidiOptions.rs000064400000000000000000000043161046102023000173540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `software` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] #[wasm_bindgen(method, getter = "software")] pub fn get_software(this: &MidiOptions) -> Option; #[doc = "Change the `software` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] #[wasm_bindgen(method, setter = "software")] pub fn set_software(this: &MidiOptions, val: bool); #[doc = "Get the `sysex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] #[wasm_bindgen(method, getter = "sysex")] pub fn get_sysex(this: &MidiOptions) -> Option; #[doc = "Change the `sysex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] #[wasm_bindgen(method, setter = "sysex")] pub fn set_sysex(this: &MidiOptions, val: bool); } 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 } #[deprecated = "Use `set_software()` instead."] pub fn software(&mut self, val: bool) -> &mut Self { self.set_software(val); self } #[deprecated = "Use `set_sysex()` instead."] pub fn sysex(&mut self, val: bool) -> &mut Self { self.set_sysex(val); self } } impl Default for MidiOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MidiOutput.rs000064400000000000000000000036421046102023000172220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_MidiOutputMap.rs000064400000000000000000000071041046102023000176550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "MIDIOutputMap" , 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/MIDIOutputMap/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn size(this: &MidiOutputMap) -> u32; # [wasm_bindgen (method , structural , js_class = "MIDIOutputMap" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn entries(this: &MidiOutputMap) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutputMap" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn for_each(this: &MidiOutputMap, callback: &::js_sys::Function) -> Result<(), JsValue>; #[cfg(feature = "MidiOutput")] # [wasm_bindgen (method , structural , js_class = "MIDIOutputMap" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutput`, `MidiOutputMap`*"] pub fn get(this: &MidiOutputMap, key: &str) -> Option; # [wasm_bindgen (method , structural , js_class = "MIDIOutputMap" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn has(this: &MidiOutputMap, key: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "MIDIOutputMap" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn keys(this: &MidiOutputMap) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "MIDIOutputMap" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] pub fn values(this: &MidiOutputMap) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_MidiPort.rs000064400000000000000000000130271046102023000166440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; #[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; } web-sys-0.3.81/src/features/gen_MidiPortConnectionState.rs000064400000000000000000000006261046102023000216660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MidiPortDeviceState.rs000064400000000000000000000006071046102023000207650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MidiPortType.rs000064400000000000000000000005361046102023000175070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_MimeType.rs000064400000000000000000000045501046102023000166470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_MimeTypeArray.rs000064400000000000000000000054441046102023000176510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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; } web-sys-0.3.81/src/features/gen_MouseEvent.rs000064400000000000000000000535461046102023000172210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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>, ); } web-sys-0.3.81/src/features/gen_MouseEventInit.rs000064400000000000000000000514601046102023000200360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &MouseEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &MouseEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &MouseEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &MouseEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &MouseEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &MouseEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &MouseEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &MouseEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &MouseEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &MouseEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &MouseEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &MouseEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &MouseEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &MouseEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &MouseEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &MouseEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &MouseEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &MouseEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &MouseEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &MouseEventInit, val: bool); #[doc = "Get the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "button")] pub fn get_button(this: &MouseEventInit) -> Option; #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "button")] pub fn set_button(this: &MouseEventInit, val: i16); #[doc = "Get the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "buttons")] pub fn get_buttons(this: &MouseEventInit) -> Option; #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "buttons")] pub fn set_buttons(this: &MouseEventInit, val: u16); #[doc = "Get the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "clientX")] pub fn get_client_x(this: &MouseEventInit) -> Option; #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "clientX")] pub fn set_client_x(this: &MouseEventInit, val: i32); #[doc = "Get the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "clientY")] pub fn get_client_y(this: &MouseEventInit) -> Option; #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "clientY")] pub fn set_client_y(this: &MouseEventInit, val: i32); #[doc = "Get the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "movementX")] pub fn get_movement_x(this: &MouseEventInit) -> Option; #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "movementX")] pub fn set_movement_x(this: &MouseEventInit, val: i32); #[doc = "Get the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "movementY")] pub fn get_movement_y(this: &MouseEventInit) -> Option; #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "movementY")] pub fn set_movement_y(this: &MouseEventInit, val: i32); #[cfg(feature = "EventTarget")] #[doc = "Get the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEventInit`*"] #[wasm_bindgen(method, getter = "relatedTarget")] pub fn get_related_target(this: &MouseEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "relatedTarget")] pub fn set_related_target(this: &MouseEventInit, val: Option<&EventTarget>); #[doc = "Get the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "screenX")] pub fn get_screen_x(this: &MouseEventInit) -> Option; #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "screenX")] pub fn set_screen_x(this: &MouseEventInit, val: i32); #[doc = "Get the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, getter = "screenY")] pub fn get_screen_y(this: &MouseEventInit) -> Option; #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] #[wasm_bindgen(method, setter = "screenY")] pub fn set_screen_y(this: &MouseEventInit, val: i32); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_button()` instead."] pub fn button(&mut self, val: i16) -> &mut Self { self.set_button(val); self } #[deprecated = "Use `set_buttons()` instead."] pub fn buttons(&mut self, val: u16) -> &mut Self { self.set_buttons(val); self } #[deprecated = "Use `set_client_x()` instead."] pub fn client_x(&mut self, val: i32) -> &mut Self { self.set_client_x(val); self } #[deprecated = "Use `set_client_y()` instead."] pub fn client_y(&mut self, val: i32) -> &mut Self { self.set_client_y(val); self } #[deprecated = "Use `set_movement_x()` instead."] pub fn movement_x(&mut self, val: i32) -> &mut Self { self.set_movement_x(val); self } #[deprecated = "Use `set_movement_y()` instead."] pub fn movement_y(&mut self, val: i32) -> &mut Self { self.set_movement_y(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_related_target()` instead."] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { self.set_related_target(val); self } #[deprecated = "Use `set_screen_x()` instead."] pub fn screen_x(&mut self, val: i32) -> &mut Self { self.set_screen_x(val); self } #[deprecated = "Use `set_screen_y()` instead."] pub fn screen_y(&mut self, val: i32) -> &mut Self { self.set_screen_y(val); self } } impl Default for MouseEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MouseScrollEvent.rs000064400000000000000000000351071046102023000203710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MozDebug.rs000064400000000000000000000032611046102023000166300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MutationEvent.rs000064400000000000000000000217101046102023000177150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_MutationObserver.rs000064400000000000000000000061251046102023000204260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_MutationObserverInit.rs000064400000000000000000000200751046102023000212520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "animations")] pub fn get_animations(this: &MutationObserverInit) -> Option; #[doc = "Change the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "animations")] pub fn set_animations(this: &MutationObserverInit, val: bool); #[doc = "Get the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "attributeFilter")] pub fn get_attribute_filter(this: &MutationObserverInit) -> Option<::js_sys::Array>; #[doc = "Change the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "attributeFilter")] pub fn set_attribute_filter(this: &MutationObserverInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "attributeOldValue")] pub fn get_attribute_old_value(this: &MutationObserverInit) -> Option; #[doc = "Change the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "attributeOldValue")] pub fn set_attribute_old_value(this: &MutationObserverInit, val: bool); #[doc = "Get the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "attributes")] pub fn get_attributes(this: &MutationObserverInit) -> Option; #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "attributes")] pub fn set_attributes(this: &MutationObserverInit, val: bool); #[doc = "Get the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "characterData")] pub fn get_character_data(this: &MutationObserverInit) -> Option; #[doc = "Change the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "characterData")] pub fn set_character_data(this: &MutationObserverInit, val: bool); #[doc = "Get the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "characterDataOldValue")] pub fn get_character_data_old_value(this: &MutationObserverInit) -> Option; #[doc = "Change the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "characterDataOldValue")] pub fn set_character_data_old_value(this: &MutationObserverInit, val: bool); #[doc = "Get the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "childList")] pub fn get_child_list(this: &MutationObserverInit) -> Option; #[doc = "Change the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "childList")] pub fn set_child_list(this: &MutationObserverInit, val: bool); #[doc = "Get the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "nativeAnonymousChildList")] pub fn get_native_anonymous_child_list(this: &MutationObserverInit) -> Option; #[doc = "Change the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "nativeAnonymousChildList")] pub fn set_native_anonymous_child_list(this: &MutationObserverInit, val: bool); #[doc = "Get the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, getter = "subtree")] pub fn get_subtree(this: &MutationObserverInit) -> Option; #[doc = "Change the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] #[wasm_bindgen(method, setter = "subtree")] pub fn set_subtree(this: &MutationObserverInit, val: bool); } 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 } #[deprecated = "Use `set_animations()` instead."] pub fn animations(&mut self, val: bool) -> &mut Self { self.set_animations(val); self } #[deprecated = "Use `set_attribute_filter()` instead."] pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attribute_filter(val); self } #[deprecated = "Use `set_attribute_old_value()` instead."] pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { self.set_attribute_old_value(val); self } #[deprecated = "Use `set_attributes()` instead."] pub fn attributes(&mut self, val: bool) -> &mut Self { self.set_attributes(val); self } #[deprecated = "Use `set_character_data()` instead."] pub fn character_data(&mut self, val: bool) -> &mut Self { self.set_character_data(val); self } #[deprecated = "Use `set_character_data_old_value()` instead."] pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { self.set_character_data_old_value(val); self } #[deprecated = "Use `set_child_list()` instead."] pub fn child_list(&mut self, val: bool) -> &mut Self { self.set_child_list(val); self } #[deprecated = "Use `set_native_anonymous_child_list()` instead."] pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { self.set_native_anonymous_child_list(val); self } #[deprecated = "Use `set_subtree()` instead."] pub fn subtree(&mut self, val: bool) -> &mut Self { self.set_subtree(val); self } } impl Default for MutationObserverInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MutationObservingInfo.rs000064400000000000000000000217731046102023000214170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "animations")] pub fn get_animations(this: &MutationObservingInfo) -> Option; #[doc = "Change the `animations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "animations")] pub fn set_animations(this: &MutationObservingInfo, val: bool); #[doc = "Get the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "attributeFilter")] pub fn get_attribute_filter(this: &MutationObservingInfo) -> Option<::js_sys::Array>; #[doc = "Change the `attributeFilter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "attributeFilter")] pub fn set_attribute_filter(this: &MutationObservingInfo, val: &::wasm_bindgen::JsValue); #[doc = "Get the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "attributeOldValue")] pub fn get_attribute_old_value(this: &MutationObservingInfo) -> Option; #[doc = "Change the `attributeOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "attributeOldValue")] pub fn set_attribute_old_value(this: &MutationObservingInfo, val: bool); #[doc = "Get the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "attributes")] pub fn get_attributes(this: &MutationObservingInfo) -> Option; #[doc = "Change the `attributes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "attributes")] pub fn set_attributes(this: &MutationObservingInfo, val: bool); #[doc = "Get the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "characterData")] pub fn get_character_data(this: &MutationObservingInfo) -> Option; #[doc = "Change the `characterData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "characterData")] pub fn set_character_data(this: &MutationObservingInfo, val: bool); #[doc = "Get the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "characterDataOldValue")] pub fn get_character_data_old_value(this: &MutationObservingInfo) -> Option; #[doc = "Change the `characterDataOldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "characterDataOldValue")] pub fn set_character_data_old_value(this: &MutationObservingInfo, val: bool); #[doc = "Get the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "childList")] pub fn get_child_list(this: &MutationObservingInfo) -> Option; #[doc = "Change the `childList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "childList")] pub fn set_child_list(this: &MutationObservingInfo, val: bool); #[doc = "Get the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "nativeAnonymousChildList")] pub fn get_native_anonymous_child_list(this: &MutationObservingInfo) -> Option; #[doc = "Change the `nativeAnonymousChildList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "nativeAnonymousChildList")] pub fn set_native_anonymous_child_list(this: &MutationObservingInfo, val: bool); #[doc = "Get the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, getter = "subtree")] pub fn get_subtree(this: &MutationObservingInfo) -> Option; #[doc = "Change the `subtree` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] #[wasm_bindgen(method, setter = "subtree")] pub fn set_subtree(this: &MutationObservingInfo, val: bool); #[cfg(feature = "Node")] #[doc = "Get the `observedNode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`, `Node`*"] #[wasm_bindgen(method, getter = "observedNode")] pub fn get_observed_node(this: &MutationObservingInfo) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "observedNode")] pub fn set_observed_node(this: &MutationObservingInfo, val: Option<&Node>); } 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 } #[deprecated = "Use `set_animations()` instead."] pub fn animations(&mut self, val: bool) -> &mut Self { self.set_animations(val); self } #[deprecated = "Use `set_attribute_filter()` instead."] pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attribute_filter(val); self } #[deprecated = "Use `set_attribute_old_value()` instead."] pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { self.set_attribute_old_value(val); self } #[deprecated = "Use `set_attributes()` instead."] pub fn attributes(&mut self, val: bool) -> &mut Self { self.set_attributes(val); self } #[deprecated = "Use `set_character_data()` instead."] pub fn character_data(&mut self, val: bool) -> &mut Self { self.set_character_data(val); self } #[deprecated = "Use `set_character_data_old_value()` instead."] pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { self.set_character_data_old_value(val); self } #[deprecated = "Use `set_child_list()` instead."] pub fn child_list(&mut self, val: bool) -> &mut Self { self.set_child_list(val); self } #[deprecated = "Use `set_native_anonymous_child_list()` instead."] pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { self.set_native_anonymous_child_list(val); self } #[deprecated = "Use `set_subtree()` instead."] pub fn subtree(&mut self, val: bool) -> &mut Self { self.set_subtree(val); self } #[cfg(feature = "Node")] #[deprecated = "Use `set_observed_node()` instead."] pub fn observed_node(&mut self, val: Option<&Node>) -> &mut Self { self.set_observed_node(val); self } } impl Default for MutationObservingInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_MutationRecord.rs000064400000000000000000000120241046102023000200500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_NamedNodeMap.rs000064400000000000000000000126201046102023000174030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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; } web-sys-0.3.81/src/features/gen_NativeOsFileReadOptions.rs000064400000000000000000000046761046102023000216270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] #[wasm_bindgen(method, getter = "bytes")] pub fn get_bytes(this: &NativeOsFileReadOptions) -> Option; #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] #[wasm_bindgen(method, setter = "bytes")] pub fn set_bytes(this: &NativeOsFileReadOptions, val: Option); #[doc = "Get the `encoding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] #[wasm_bindgen(method, getter = "encoding")] pub fn get_encoding(this: &NativeOsFileReadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `encoding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] #[wasm_bindgen(method, setter = "encoding")] pub fn set_encoding(this: &NativeOsFileReadOptions, val: Option<&str>); } 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 } #[deprecated = "Use `set_bytes()` instead."] pub fn bytes(&mut self, val: Option) -> &mut Self { self.set_bytes(val); self } #[deprecated = "Use `set_encoding()` instead."] pub fn encoding(&mut self, val: Option<&str>) -> &mut Self { self.set_encoding(val); self } } impl Default for NativeOsFileReadOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NativeOsFileWriteAtomicOptions.rs000064400000000000000000000116231046102023000231710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `backupTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "backupTo")] pub fn get_backup_to(this: &NativeOsFileWriteAtomicOptions) -> Option<::alloc::string::String>; #[doc = "Change the `backupTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, setter = "backupTo")] pub fn set_backup_to(this: &NativeOsFileWriteAtomicOptions, val: Option<&str>); #[doc = "Get the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "bytes")] pub fn get_bytes(this: &NativeOsFileWriteAtomicOptions) -> Option; #[doc = "Change the `bytes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, setter = "bytes")] pub fn set_bytes(this: &NativeOsFileWriteAtomicOptions, val: Option); #[doc = "Get the `flush` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "flush")] pub fn get_flush(this: &NativeOsFileWriteAtomicOptions) -> Option; #[doc = "Change the `flush` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, setter = "flush")] pub fn set_flush(this: &NativeOsFileWriteAtomicOptions, val: bool); #[doc = "Get the `noOverwrite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "noOverwrite")] pub fn get_no_overwrite(this: &NativeOsFileWriteAtomicOptions) -> Option; #[doc = "Change the `noOverwrite` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, setter = "noOverwrite")] pub fn set_no_overwrite(this: &NativeOsFileWriteAtomicOptions, val: bool); #[doc = "Get the `tmpPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "tmpPath")] pub fn get_tmp_path(this: &NativeOsFileWriteAtomicOptions) -> Option<::alloc::string::String>; #[doc = "Change the `tmpPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, setter = "tmpPath")] pub fn set_tmp_path(this: &NativeOsFileWriteAtomicOptions, val: Option<&str>); } 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 } #[deprecated = "Use `set_backup_to()` instead."] pub fn backup_to(&mut self, val: Option<&str>) -> &mut Self { self.set_backup_to(val); self } #[deprecated = "Use `set_bytes()` instead."] pub fn bytes(&mut self, val: Option) -> &mut Self { self.set_bytes(val); self } #[deprecated = "Use `set_flush()` instead."] pub fn flush(&mut self, val: bool) -> &mut Self { self.set_flush(val); self } #[deprecated = "Use `set_no_overwrite()` instead."] pub fn no_overwrite(&mut self, val: bool) -> &mut Self { self.set_no_overwrite(val); self } #[deprecated = "Use `set_tmp_path()` instead."] pub fn tmp_path(&mut self, val: Option<&str>) -> &mut Self { self.set_tmp_path(val); self } } impl Default for NativeOsFileWriteAtomicOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NavigationType.rs000064400000000000000000000006511046102023000200550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Navigator.rs000064400000000000000000001040301046102023000170420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = "Clipboard")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = clipboard)] #[doc = "Getter for the `clipboard` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Clipboard`, `Navigator`*"] pub fn clipboard(this: &Navigator) -> Clipboard; #[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) -> ::alloc::string::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(feature = "UserActivation")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = userActivation)] #[doc = "Getter for the `userActivation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userActivation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UserActivation`*"] pub fn user_activation(this: &Navigator) -> UserActivation; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Bluetooth")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = bluetooth)] #[doc = "Getter for the `bluetooth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/bluetooth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Bluetooth`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bluetooth(this: &Navigator) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "MediaSession")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = mediaSession)] #[doc = "Getter for the `mediaSession` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSession`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn media_session(this: &Navigator) -> MediaSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLock")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = wakeLock)] #[doc = "Getter for the `wakeLock` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/wakeLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `WakeLock`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn wake_lock(this: &Navigator) -> WakeLock; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Hid")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hid)] #[doc = "Getter for the `hid` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Hid`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn hid(this: &Navigator) -> Hid; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Serial")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = serial)] #[doc = "Getter for the `serial` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serial)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial(this: &Navigator) -> Serial; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Usb")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = usb)] #[doc = "Getter for the `usb` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/usb)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb(this: &Navigator) -> Usb; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSystem")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = xr)] #[doc = "Getter for the `xr` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/xr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn xr(this: &Navigator) -> XrSystem; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Scheduling")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = scheduling)] #[doc = "Getter for the `scheduling` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/scheduling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Scheduling`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn scheduling(this: &Navigator) -> Scheduling; # [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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = deviceMemory)] #[doc = "Getter for the `deviceMemory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_memory(this: &Navigator) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gpu(this: &Navigator) -> Gpu; #[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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String>; # [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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockManager")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = locks)] #[doc = "Getter for the `locks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/locks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn locks(this: &Navigator) -> LockManager; # [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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "NavigatorUaData")] # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = userAgentData)] #[doc = "Getter for the `userAgentData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn user_agent_data(this: &Navigator) -> NavigatorUaData; # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = canShare)] #[doc = "The `canShare()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn can_share(this: &Navigator) -> bool; #[cfg(feature = "ShareData")] # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = canShare)] #[doc = "The `canShare()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ShareData`*"] pub fn can_share_with_data(this: &Navigator, data: &ShareData) -> bool; # [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>; # [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; # [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_js_u8_array( this: &Navigator, url: &str, data: Option<&::js_sys::Uint8Array>, ) -> 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 = share)] #[doc = "The `share()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] pub fn share(this: &Navigator) -> ::js_sys::Promise; #[cfg(feature = "ShareData")] # [wasm_bindgen (method , structural , js_class = "Navigator" , js_name = share)] #[doc = "The `share()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ShareData`*"] pub fn share_with_data(this: &Navigator, data: &ShareData) -> ::js_sys::Promise; # [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, pattern: 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; } web-sys-0.3.81/src/features/gen_NavigatorAutomationInformation.rs000064400000000000000000000023221046102023000233120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_NavigatorUaBrandVersion.rs000064400000000000000000000102111046102023000216420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NavigatorUABrandVersion)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NavigatorUaBrandVersion` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type NavigatorUaBrandVersion; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `brand` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "brand")] pub fn get_brand(this: &NavigatorUaBrandVersion) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `brand` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "brand")] pub fn set_brand(this: &NavigatorUaBrandVersion, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &NavigatorUaBrandVersion) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &NavigatorUaBrandVersion, val: &str); } #[cfg(web_sys_unstable_apis)] impl NavigatorUaBrandVersion { #[doc = "Construct a new `NavigatorUaBrandVersion`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaBrandVersion`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_brand()` instead."] pub fn brand(&mut self, val: &str) -> &mut Self { self.set_brand(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for NavigatorUaBrandVersion { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NavigatorUaData.rs000064400000000000000000000111311046102023000201210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NavigatorUAData , typescript_type = "NavigatorUAData")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NavigatorUaData` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type NavigatorUaData; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "NavigatorUAData" , js_name = brands)] #[doc = "Getter for the `brands` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/brands)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn brands(this: &NavigatorUaData) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "NavigatorUAData" , js_name = mobile)] #[doc = "Getter for the `mobile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/mobile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn mobile(this: &NavigatorUaData) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "NavigatorUAData" , 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/NavigatorUAData/platform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn platform(this: &NavigatorUaData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "NavigatorUAData" , js_name = getHighEntropyValues)] #[doc = "The `getHighEntropyValues()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/getHighEntropyValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_high_entropy_values( this: &NavigatorUaData, hints: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UaLowEntropyJson")] # [wasm_bindgen (method , structural , js_class = "NavigatorUAData" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorUAData/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`, `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn to_json(this: &NavigatorUaData) -> UaLowEntropyJson; } web-sys-0.3.81/src/features/gen_NetworkCommandOptions.rs000064400000000000000000001026471046102023000214300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `cmd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "cmd")] pub fn get_cmd(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `cmd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "cmd")] pub fn set_cmd(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "curExternalIfname")] pub fn get_cur_external_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "curExternalIfname")] pub fn set_cur_external_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "curInternalIfname")] pub fn get_cur_internal_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "curInternalIfname")] pub fn set_cur_internal_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns1")] pub fn get_dns1(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "dns1")] pub fn set_dns1(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `dns1_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns1_long")] pub fn get_dns1_long(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `dns1_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "dns1_long")] pub fn set_dns1_long(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns2")] pub fn get_dns2(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "dns2")] pub fn set_dns2(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `dns2_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns2_long")] pub fn get_dns2_long(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `dns2_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "dns2_long")] pub fn set_dns2_long(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `dnses` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dnses")] pub fn get_dnses(this: &NetworkCommandOptions) -> Option<::js_sys::Array>; #[doc = "Change the `dnses` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "dnses")] pub fn set_dnses(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "domain")] pub fn get_domain(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "domain")] pub fn set_domain(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "enable")] pub fn get_enable(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "enable")] pub fn set_enable(this: &NetworkCommandOptions, val: bool); #[doc = "Get the `enabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "enabled")] pub fn get_enabled(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `enabled` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "enabled")] pub fn set_enabled(this: &NetworkCommandOptions, val: bool); #[doc = "Get the `endIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "endIp")] pub fn get_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `endIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "endIp")] pub fn set_end_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `externalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "externalIfname")] pub fn get_external_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `externalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "externalIfname")] pub fn set_external_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "gateway")] pub fn get_gateway(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "gateway")] pub fn set_gateway(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `gateway_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "gateway_long")] pub fn get_gateway_long(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `gateway_long` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "gateway_long")] pub fn set_gateway_long(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `gateways` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "gateways")] pub fn get_gateways(this: &NetworkCommandOptions) -> Option<::js_sys::Array>; #[doc = "Change the `gateways` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "gateways")] pub fn set_gateways(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `ifname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ifname")] pub fn get_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ifname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "ifname")] pub fn set_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "interfaceList")] pub fn get_interface_list(this: &NetworkCommandOptions) -> Option<::js_sys::Array>; #[doc = "Change the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "interfaceList")] pub fn set_interface_list(this: &NetworkCommandOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `internalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "internalIfname")] pub fn get_internal_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `internalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "internalIfname")] pub fn set_internal_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `ip` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ip")] pub fn get_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ip` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "ip")] pub fn set_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ipaddr")] pub fn get_ipaddr(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "ipaddr")] pub fn set_ipaddr(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "key")] pub fn get_key(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "key")] pub fn set_key(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `link` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "link")] pub fn get_link(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `link` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "link")] pub fn set_link(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "mask")] pub fn get_mask(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "mask")] pub fn set_mask(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `maskLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "maskLength")] pub fn get_mask_length(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `maskLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "maskLength")] pub fn set_mask_length(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `mtu` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "mtu")] pub fn get_mtu(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `mtu` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "mtu")] pub fn set_mtu(this: &NetworkCommandOptions, val: i32); #[doc = "Get the `preExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "preExternalIfname")] pub fn get_pre_external_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `preExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "preExternalIfname")] pub fn set_pre_external_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `preInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "preInternalIfname")] pub fn get_pre_internal_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `preInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "preInternalIfname")] pub fn set_pre_internal_ifname(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "prefix")] pub fn get_prefix(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "prefix")] pub fn set_prefix(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "prefixLength")] pub fn get_prefix_length(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "prefixLength")] pub fn set_prefix_length(this: &NetworkCommandOptions, val: u32); #[doc = "Get the `report` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "report")] pub fn get_report(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `report` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "report")] pub fn set_report(this: &NetworkCommandOptions, val: bool); #[doc = "Get the `security` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "security")] pub fn get_security(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `security` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "security")] pub fn set_security(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `serverIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "serverIp")] pub fn get_server_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `serverIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "serverIp")] pub fn set_server_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `ssid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ssid")] pub fn get_ssid(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ssid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "ssid")] pub fn set_ssid(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `startIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "startIp")] pub fn get_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `startIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "startIp")] pub fn set_start_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "threshold")] pub fn get_threshold(this: &NetworkCommandOptions) -> Option; #[doc = "Change the `threshold` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "threshold")] pub fn set_threshold(this: &NetworkCommandOptions, val: f64); #[doc = "Get the `usbEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "usbEndIp")] pub fn get_usb_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usbEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "usbEndIp")] pub fn set_usb_end_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `usbStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "usbStartIp")] pub fn get_usb_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usbStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "usbStartIp")] pub fn set_usb_start_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `wifiEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifiEndIp")] pub fn get_wifi_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `wifiEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "wifiEndIp")] pub fn set_wifi_end_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `wifiStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifiStartIp")] pub fn get_wifi_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `wifiStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "wifiStartIp")] pub fn set_wifi_start_ip(this: &NetworkCommandOptions, val: &str); #[doc = "Get the `wifictrlinterfacename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifictrlinterfacename")] pub fn get_wifictrlinterfacename( this: &NetworkCommandOptions, ) -> Option<::alloc::string::String>; #[doc = "Change the `wifictrlinterfacename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, setter = "wifictrlinterfacename")] pub fn set_wifictrlinterfacename(this: &NetworkCommandOptions, val: &str); } 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 } #[deprecated = "Use `set_cmd()` instead."] pub fn cmd(&mut self, val: &str) -> &mut Self { self.set_cmd(val); self } #[deprecated = "Use `set_cur_external_ifname()` instead."] pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { self.set_cur_external_ifname(val); self } #[deprecated = "Use `set_cur_internal_ifname()` instead."] pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { self.set_cur_internal_ifname(val); self } #[deprecated = "Use `set_dns1()` instead."] pub fn dns1(&mut self, val: &str) -> &mut Self { self.set_dns1(val); self } #[deprecated = "Use `set_dns1_long()` instead."] pub fn dns1_long(&mut self, val: i32) -> &mut Self { self.set_dns1_long(val); self } #[deprecated = "Use `set_dns2()` instead."] pub fn dns2(&mut self, val: &str) -> &mut Self { self.set_dns2(val); self } #[deprecated = "Use `set_dns2_long()` instead."] pub fn dns2_long(&mut self, val: i32) -> &mut Self { self.set_dns2_long(val); self } #[deprecated = "Use `set_dnses()` instead."] pub fn dnses(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_dnses(val); self } #[deprecated = "Use `set_domain()` instead."] pub fn domain(&mut self, val: &str) -> &mut Self { self.set_domain(val); self } #[deprecated = "Use `set_enable()` instead."] pub fn enable(&mut self, val: bool) -> &mut Self { self.set_enable(val); self } #[deprecated = "Use `set_enabled()` instead."] pub fn enabled(&mut self, val: bool) -> &mut Self { self.set_enabled(val); self } #[deprecated = "Use `set_end_ip()` instead."] pub fn end_ip(&mut self, val: &str) -> &mut Self { self.set_end_ip(val); self } #[deprecated = "Use `set_external_ifname()` instead."] pub fn external_ifname(&mut self, val: &str) -> &mut Self { self.set_external_ifname(val); self } #[deprecated = "Use `set_gateway()` instead."] pub fn gateway(&mut self, val: &str) -> &mut Self { self.set_gateway(val); self } #[deprecated = "Use `set_gateway_long()` instead."] pub fn gateway_long(&mut self, val: i32) -> &mut Self { self.set_gateway_long(val); self } #[deprecated = "Use `set_gateways()` instead."] pub fn gateways(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_gateways(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: i32) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_ifname()` instead."] pub fn ifname(&mut self, val: &str) -> &mut Self { self.set_ifname(val); self } #[deprecated = "Use `set_interface_list()` instead."] pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_interface_list(val); self } #[deprecated = "Use `set_internal_ifname()` instead."] pub fn internal_ifname(&mut self, val: &str) -> &mut Self { self.set_internal_ifname(val); self } #[deprecated = "Use `set_ip()` instead."] pub fn ip(&mut self, val: &str) -> &mut Self { self.set_ip(val); self } #[deprecated = "Use `set_ipaddr()` instead."] pub fn ipaddr(&mut self, val: i32) -> &mut Self { self.set_ipaddr(val); self } #[deprecated = "Use `set_key()` instead."] pub fn key(&mut self, val: &str) -> &mut Self { self.set_key(val); self } #[deprecated = "Use `set_link()` instead."] pub fn link(&mut self, val: &str) -> &mut Self { self.set_link(val); self } #[deprecated = "Use `set_mask()` instead."] pub fn mask(&mut self, val: i32) -> &mut Self { self.set_mask(val); self } #[deprecated = "Use `set_mask_length()` instead."] pub fn mask_length(&mut self, val: &str) -> &mut Self { self.set_mask_length(val); self } #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: &str) -> &mut Self { self.set_mode(val); self } #[deprecated = "Use `set_mtu()` instead."] pub fn mtu(&mut self, val: i32) -> &mut Self { self.set_mtu(val); self } #[deprecated = "Use `set_pre_external_ifname()` instead."] pub fn pre_external_ifname(&mut self, val: &str) -> &mut Self { self.set_pre_external_ifname(val); self } #[deprecated = "Use `set_pre_internal_ifname()` instead."] pub fn pre_internal_ifname(&mut self, val: &str) -> &mut Self { self.set_pre_internal_ifname(val); self } #[deprecated = "Use `set_prefix()` instead."] pub fn prefix(&mut self, val: &str) -> &mut Self { self.set_prefix(val); self } #[deprecated = "Use `set_prefix_length()` instead."] pub fn prefix_length(&mut self, val: u32) -> &mut Self { self.set_prefix_length(val); self } #[deprecated = "Use `set_report()` instead."] pub fn report(&mut self, val: bool) -> &mut Self { self.set_report(val); self } #[deprecated = "Use `set_security()` instead."] pub fn security(&mut self, val: &str) -> &mut Self { self.set_security(val); self } #[deprecated = "Use `set_server_ip()` instead."] pub fn server_ip(&mut self, val: &str) -> &mut Self { self.set_server_ip(val); self } #[deprecated = "Use `set_ssid()` instead."] pub fn ssid(&mut self, val: &str) -> &mut Self { self.set_ssid(val); self } #[deprecated = "Use `set_start_ip()` instead."] pub fn start_ip(&mut self, val: &str) -> &mut Self { self.set_start_ip(val); self } #[deprecated = "Use `set_threshold()` instead."] pub fn threshold(&mut self, val: f64) -> &mut Self { self.set_threshold(val); self } #[deprecated = "Use `set_usb_end_ip()` instead."] pub fn usb_end_ip(&mut self, val: &str) -> &mut Self { self.set_usb_end_ip(val); self } #[deprecated = "Use `set_usb_start_ip()` instead."] pub fn usb_start_ip(&mut self, val: &str) -> &mut Self { self.set_usb_start_ip(val); self } #[deprecated = "Use `set_wifi_end_ip()` instead."] pub fn wifi_end_ip(&mut self, val: &str) -> &mut Self { self.set_wifi_end_ip(val); self } #[deprecated = "Use `set_wifi_start_ip()` instead."] pub fn wifi_start_ip(&mut self, val: &str) -> &mut Self { self.set_wifi_start_ip(val); self } #[deprecated = "Use `set_wifictrlinterfacename()` instead."] pub fn wifictrlinterfacename(&mut self, val: &str) -> &mut Self { self.set_wifictrlinterfacename(val); self } } impl Default for NetworkCommandOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NetworkInformation.rs000064400000000000000000000042171046102023000207550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_NetworkResultOptions.rs000064400000000000000000000653561046102023000213350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `broadcast` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "broadcast")] pub fn get_broadcast(this: &NetworkResultOptions) -> Option; #[doc = "Change the `broadcast` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "broadcast")] pub fn set_broadcast(this: &NetworkResultOptions, val: bool); #[doc = "Get the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "curExternalIfname")] pub fn get_cur_external_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "curExternalIfname")] pub fn set_cur_external_ifname(this: &NetworkResultOptions, val: &str); #[doc = "Get the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "curInternalIfname")] pub fn get_cur_internal_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "curInternalIfname")] pub fn set_cur_internal_ifname(this: &NetworkResultOptions, val: &str); #[doc = "Get the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns1")] pub fn get_dns1(this: &NetworkResultOptions) -> Option; #[doc = "Change the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "dns1")] pub fn set_dns1(this: &NetworkResultOptions, val: i32); #[doc = "Get the `dns1_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns1_str")] pub fn get_dns1_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns1_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "dns1_str")] pub fn set_dns1_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns2")] pub fn get_dns2(this: &NetworkResultOptions) -> Option; #[doc = "Change the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "dns2")] pub fn set_dns2(this: &NetworkResultOptions, val: i32); #[doc = "Get the `dns2_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns2_str")] pub fn get_dns2_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns2_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "dns2_str")] pub fn set_dns2_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "enable")] pub fn get_enable(this: &NetworkResultOptions) -> Option; #[doc = "Change the `enable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "enable")] pub fn set_enable(this: &NetworkResultOptions, val: bool); #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &NetworkResultOptions) -> Option; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &NetworkResultOptions, val: bool); #[doc = "Get the `flag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "flag")] pub fn get_flag(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `flag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "flag")] pub fn set_flag(this: &NetworkResultOptions, val: &str); #[doc = "Get the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "gateway")] pub fn get_gateway(this: &NetworkResultOptions) -> Option; #[doc = "Change the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "gateway")] pub fn set_gateway(this: &NetworkResultOptions, val: i32); #[doc = "Get the `gateway_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "gateway_str")] pub fn get_gateway_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `gateway_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "gateway_str")] pub fn set_gateway_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &NetworkResultOptions) -> Option; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &NetworkResultOptions, val: i32); #[doc = "Get the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "interfaceList")] pub fn get_interface_list(this: &NetworkResultOptions) -> Option<::js_sys::Array>; #[doc = "Change the `interfaceList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "interfaceList")] pub fn set_interface_list(this: &NetworkResultOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `ipAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ipAddr")] pub fn get_ip_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ipAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "ipAddr")] pub fn set_ip_addr(this: &NetworkResultOptions, val: &str); #[doc = "Get the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ipaddr")] pub fn get_ipaddr(this: &NetworkResultOptions) -> Option; #[doc = "Change the `ipaddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "ipaddr")] pub fn set_ipaddr(this: &NetworkResultOptions, val: i32); #[doc = "Get the `ipaddr_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ipaddr_str")] pub fn get_ipaddr_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ipaddr_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "ipaddr_str")] pub fn set_ipaddr_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `lease` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "lease")] pub fn get_lease(this: &NetworkResultOptions) -> Option; #[doc = "Change the `lease` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "lease")] pub fn set_lease(this: &NetworkResultOptions, val: i32); #[doc = "Get the `macAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "macAddr")] pub fn get_mac_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `macAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "macAddr")] pub fn set_mac_addr(this: &NetworkResultOptions, val: &str); #[doc = "Get the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "mask")] pub fn get_mask(this: &NetworkResultOptions) -> Option; #[doc = "Change the `mask` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "mask")] pub fn set_mask(this: &NetworkResultOptions, val: i32); #[doc = "Get the `mask_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "mask_str")] pub fn get_mask_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mask_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "mask_str")] pub fn set_mask_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `netId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "netId")] pub fn get_net_id(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `netId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "netId")] pub fn set_net_id(this: &NetworkResultOptions, val: &str); #[doc = "Get the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "prefixLength")] pub fn get_prefix_length(this: &NetworkResultOptions) -> Option; #[doc = "Change the `prefixLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "prefixLength")] pub fn set_prefix_length(this: &NetworkResultOptions, val: i32); #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &NetworkResultOptions, val: &str); #[doc = "Get the `reply` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "reply")] pub fn get_reply(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `reply` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "reply")] pub fn set_reply(this: &NetworkResultOptions, val: &str); #[doc = "Get the `result` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "result")] pub fn get_result(this: &NetworkResultOptions) -> Option; #[doc = "Change the `result` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "result")] pub fn set_result(this: &NetworkResultOptions, val: bool); #[doc = "Get the `resultCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "resultCode")] pub fn get_result_code(this: &NetworkResultOptions) -> Option; #[doc = "Change the `resultCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "resultCode")] pub fn set_result_code(this: &NetworkResultOptions, val: i32); #[doc = "Get the `resultReason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "resultReason")] pub fn get_result_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `resultReason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "resultReason")] pub fn set_result_reason(this: &NetworkResultOptions, val: &str); #[doc = "Get the `ret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ret")] pub fn get_ret(this: &NetworkResultOptions) -> Option; #[doc = "Change the `ret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "ret")] pub fn set_ret(this: &NetworkResultOptions, val: bool); #[doc = "Get the `route` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "route")] pub fn get_route(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `route` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "route")] pub fn set_route(this: &NetworkResultOptions, val: &str); #[doc = "Get the `server` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "server")] pub fn get_server(this: &NetworkResultOptions) -> Option; #[doc = "Change the `server` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "server")] pub fn set_server(this: &NetworkResultOptions, val: i32); #[doc = "Get the `server_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "server_str")] pub fn get_server_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `server_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "server_str")] pub fn set_server_str(this: &NetworkResultOptions, val: &str); #[doc = "Get the `success` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "success")] pub fn get_success(this: &NetworkResultOptions) -> Option; #[doc = "Change the `success` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "success")] pub fn set_success(this: &NetworkResultOptions, val: bool); #[doc = "Get the `topic` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "topic")] pub fn get_topic(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `topic` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "topic")] pub fn set_topic(this: &NetworkResultOptions, val: &str); #[doc = "Get the `vendor_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "vendor_str")] pub fn get_vendor_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `vendor_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, setter = "vendor_str")] pub fn set_vendor_str(this: &NetworkResultOptions, val: &str); } 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 } #[deprecated = "Use `set_broadcast()` instead."] pub fn broadcast(&mut self, val: bool) -> &mut Self { self.set_broadcast(val); self } #[deprecated = "Use `set_cur_external_ifname()` instead."] pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { self.set_cur_external_ifname(val); self } #[deprecated = "Use `set_cur_internal_ifname()` instead."] pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { self.set_cur_internal_ifname(val); self } #[deprecated = "Use `set_dns1()` instead."] pub fn dns1(&mut self, val: i32) -> &mut Self { self.set_dns1(val); self } #[deprecated = "Use `set_dns1_str()` instead."] pub fn dns1_str(&mut self, val: &str) -> &mut Self { self.set_dns1_str(val); self } #[deprecated = "Use `set_dns2()` instead."] pub fn dns2(&mut self, val: i32) -> &mut Self { self.set_dns2(val); self } #[deprecated = "Use `set_dns2_str()` instead."] pub fn dns2_str(&mut self, val: &str) -> &mut Self { self.set_dns2_str(val); self } #[deprecated = "Use `set_enable()` instead."] pub fn enable(&mut self, val: bool) -> &mut Self { self.set_enable(val); self } #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: bool) -> &mut Self { self.set_error(val); self } #[deprecated = "Use `set_flag()` instead."] pub fn flag(&mut self, val: &str) -> &mut Self { self.set_flag(val); self } #[deprecated = "Use `set_gateway()` instead."] pub fn gateway(&mut self, val: i32) -> &mut Self { self.set_gateway(val); self } #[deprecated = "Use `set_gateway_str()` instead."] pub fn gateway_str(&mut self, val: &str) -> &mut Self { self.set_gateway_str(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: i32) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_interface_list()` instead."] pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_interface_list(val); self } #[deprecated = "Use `set_ip_addr()` instead."] pub fn ip_addr(&mut self, val: &str) -> &mut Self { self.set_ip_addr(val); self } #[deprecated = "Use `set_ipaddr()` instead."] pub fn ipaddr(&mut self, val: i32) -> &mut Self { self.set_ipaddr(val); self } #[deprecated = "Use `set_ipaddr_str()` instead."] pub fn ipaddr_str(&mut self, val: &str) -> &mut Self { self.set_ipaddr_str(val); self } #[deprecated = "Use `set_lease()` instead."] pub fn lease(&mut self, val: i32) -> &mut Self { self.set_lease(val); self } #[deprecated = "Use `set_mac_addr()` instead."] pub fn mac_addr(&mut self, val: &str) -> &mut Self { self.set_mac_addr(val); self } #[deprecated = "Use `set_mask()` instead."] pub fn mask(&mut self, val: i32) -> &mut Self { self.set_mask(val); self } #[deprecated = "Use `set_mask_str()` instead."] pub fn mask_str(&mut self, val: &str) -> &mut Self { self.set_mask_str(val); self } #[deprecated = "Use `set_net_id()` instead."] pub fn net_id(&mut self, val: &str) -> &mut Self { self.set_net_id(val); self } #[deprecated = "Use `set_prefix_length()` instead."] pub fn prefix_length(&mut self, val: i32) -> &mut Self { self.set_prefix_length(val); self } #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: &str) -> &mut Self { self.set_reason(val); self } #[deprecated = "Use `set_reply()` instead."] pub fn reply(&mut self, val: &str) -> &mut Self { self.set_reply(val); self } #[deprecated = "Use `set_result()` instead."] pub fn result(&mut self, val: bool) -> &mut Self { self.set_result(val); self } #[deprecated = "Use `set_result_code()` instead."] pub fn result_code(&mut self, val: i32) -> &mut Self { self.set_result_code(val); self } #[deprecated = "Use `set_result_reason()` instead."] pub fn result_reason(&mut self, val: &str) -> &mut Self { self.set_result_reason(val); self } #[deprecated = "Use `set_ret()` instead."] pub fn ret(&mut self, val: bool) -> &mut Self { self.set_ret(val); self } #[deprecated = "Use `set_route()` instead."] pub fn route(&mut self, val: &str) -> &mut Self { self.set_route(val); self } #[deprecated = "Use `set_server()` instead."] pub fn server(&mut self, val: i32) -> &mut Self { self.set_server(val); self } #[deprecated = "Use `set_server_str()` instead."] pub fn server_str(&mut self, val: &str) -> &mut Self { self.set_server_str(val); self } #[deprecated = "Use `set_success()` instead."] pub fn success(&mut self, val: bool) -> &mut Self { self.set_success(val); self } #[deprecated = "Use `set_topic()` instead."] pub fn topic(&mut self, val: &str) -> &mut Self { self.set_topic(val); self } #[deprecated = "Use `set_vendor_str()` instead."] pub fn vendor_str(&mut self, val: &str) -> &mut Self { self.set_vendor_str(val); self } } impl Default for NetworkResultOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Node.rs000064400000000000000000000451661046102023000160130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [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; } web-sys-0.3.81/src/features/gen_NodeFilter.rs000064400000000000000000000031301046102023000171420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `acceptNode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] #[wasm_bindgen(method, getter = "acceptNode")] pub fn get_accept_node(this: &NodeFilter) -> Option<::js_sys::Function>; #[doc = "Change the `acceptNode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] #[wasm_bindgen(method, setter = "acceptNode")] pub fn set_accept_node(this: &NodeFilter, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_accept_node()` instead."] pub fn accept_node(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_accept_node(val); self } } impl Default for NodeFilter { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NodeIterator.rs000064400000000000000000000105261046102023000175150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_NodeList.rs000064400000000000000000000066251046102023000166440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (method , structural , js_class = "NodeList" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn entries(this: &NodeList) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "NodeList" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn for_each(this: &NodeList, callback: &::js_sys::Function) -> Result<(), JsValue>; #[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; # [wasm_bindgen (method , structural , js_class = "NodeList" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn keys(this: &NodeList) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "NodeList" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] pub fn values(this: &NodeList) -> ::js_sys::Iterator; #[cfg(feature = "Node")] #[wasm_bindgen(method, structural, js_class = "NodeList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] pub fn get(this: &NodeList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_Notification.rs000064400000000000000000000347631046102023000175550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 , static_method_of = Notification , getter , js_class = "Notification" , js_name = maxActions)] #[doc = "Getter for the `maxActions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/maxActions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn max_actions() -> u32; # [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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = image)] #[doc = "Getter for the `image` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/image)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn image(this: &Notification) -> ::alloc::string::String; # [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<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = badge)] #[doc = "Getter for the `badge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn badge(this: &Notification) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = vibrate)] #[doc = "Getter for the `vibrate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/vibrate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn vibrate(this: &Notification) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , 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/Notification/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn timestamp(this: &Notification) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = renotify)] #[doc = "Getter for the `renotify` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/renotify)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn renotify(this: &Notification) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = silent)] #[doc = "Getter for the `silent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn silent(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 (structural , method , getter , js_class = "Notification" , js_name = actions)] #[doc = "Getter for the `actions` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] pub fn actions(this: &Notification) -> ::js_sys::Array; #[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 = requestPermission)] #[doc = "The `requestPermission()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission_static)"] #[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_static)"] #[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>; } web-sys-0.3.81/src/features/gen_NotificationAction.rs000064400000000000000000000060171046102023000207020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationAction)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `NotificationAction` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] pub type NotificationAction; #[doc = "Get the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "action")] pub fn get_action(this: &NotificationAction) -> ::alloc::string::String; #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, setter = "action")] pub fn set_action(this: &NotificationAction, val: &str); #[doc = "Get the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "icon")] pub fn get_icon(this: &NotificationAction) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, setter = "icon")] pub fn set_icon(this: &NotificationAction, val: &str); #[doc = "Get the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "title")] pub fn get_title(this: &NotificationAction) -> ::alloc::string::String; #[doc = "Change the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, setter = "title")] pub fn set_title(this: &NotificationAction, val: &str); } impl NotificationAction { #[doc = "Construct a new `NotificationAction`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] pub fn new(action: &str, title: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_action(action); ret.set_title(title); ret } #[deprecated = "Use `set_action()` instead."] pub fn action(&mut self, val: &str) -> &mut Self { self.set_action(val); self } #[deprecated = "Use `set_icon()` instead."] pub fn icon(&mut self, val: &str) -> &mut Self { self.set_icon(val); self } #[deprecated = "Use `set_title()` instead."] pub fn title(&mut self, val: &str) -> &mut Self { self.set_title(val); self } } web-sys-0.3.81/src/features/gen_NotificationDirection.rs000064400000000000000000000006021046102023000213770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_NotificationEvent.rs000064400000000000000000000034501046102023000205440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_NotificationEventInit.rs000064400000000000000000000101231046102023000213630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &NotificationEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &NotificationEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &NotificationEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &NotificationEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &NotificationEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &NotificationEventInit, val: bool); #[cfg(feature = "Notification")] #[doc = "Get the `notification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEventInit`*"] #[wasm_bindgen(method, getter = "notification")] pub fn get_notification(this: &NotificationEventInit) -> Notification; #[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`*"] #[wasm_bindgen(method, setter = "notification")] pub fn set_notification(this: &NotificationEventInit, val: &Notification); } 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.set_notification(notification); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "Notification")] #[deprecated = "Use `set_notification()` instead."] pub fn notification(&mut self, val: &Notification) -> &mut Self { self.set_notification(val); self } } web-sys-0.3.81/src/features/gen_NotificationOptions.rs000064400000000000000000000265641046102023000211310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `actions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "actions")] pub fn get_actions(this: &NotificationOptions) -> Option<::js_sys::Array>; #[doc = "Change the `actions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "actions")] pub fn set_actions(this: &NotificationOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `badge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "badge")] pub fn get_badge(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `badge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "badge")] pub fn set_badge(this: &NotificationOptions, val: &str); #[doc = "Get the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "body")] pub fn get_body(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "body")] pub fn set_body(this: &NotificationOptions, val: &str); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &NotificationOptions) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &NotificationOptions, val: &::wasm_bindgen::JsValue); #[cfg(feature = "NotificationDirection")] #[doc = "Get the `dir` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationDirection`, `NotificationOptions`*"] #[wasm_bindgen(method, getter = "dir")] pub fn get_dir(this: &NotificationOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "dir")] pub fn set_dir(this: &NotificationOptions, val: NotificationDirection); #[doc = "Get the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "icon")] pub fn get_icon(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "icon")] pub fn set_icon(this: &NotificationOptions, val: &str); #[doc = "Get the `image` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "image")] pub fn get_image(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `image` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "image")] pub fn set_image(this: &NotificationOptions, val: &str); #[doc = "Get the `lang` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "lang")] pub fn get_lang(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `lang` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "lang")] pub fn set_lang(this: &NotificationOptions, val: &str); #[doc = "Get the `renotify` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "renotify")] pub fn get_renotify(this: &NotificationOptions) -> Option; #[doc = "Change the `renotify` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "renotify")] pub fn set_renotify(this: &NotificationOptions, val: bool); #[doc = "Get the `requireInteraction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "requireInteraction")] pub fn get_require_interaction(this: &NotificationOptions) -> Option; #[doc = "Change the `requireInteraction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "requireInteraction")] pub fn set_require_interaction(this: &NotificationOptions, val: bool); #[doc = "Get the `silent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "silent")] pub fn get_silent(this: &NotificationOptions) -> Option; #[doc = "Change the `silent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "silent")] pub fn set_silent(this: &NotificationOptions, val: Option); #[doc = "Get the `tag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "tag")] pub fn get_tag(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `tag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "tag")] pub fn set_tag(this: &NotificationOptions, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &NotificationOptions) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &NotificationOptions, val: f64); #[doc = "Get the `vibrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "vibrate")] pub fn get_vibrate(this: &NotificationOptions) -> ::wasm_bindgen::JsValue; #[doc = "Change the `vibrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, setter = "vibrate")] pub fn set_vibrate(this: &NotificationOptions, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_actions()` instead."] pub fn actions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_actions(val); self } #[deprecated = "Use `set_badge()` instead."] pub fn badge(&mut self, val: &str) -> &mut Self { self.set_badge(val); self } #[deprecated = "Use `set_body()` instead."] pub fn body(&mut self, val: &str) -> &mut Self { self.set_body(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } #[cfg(feature = "NotificationDirection")] #[deprecated = "Use `set_dir()` instead."] pub fn dir(&mut self, val: NotificationDirection) -> &mut Self { self.set_dir(val); self } #[deprecated = "Use `set_icon()` instead."] pub fn icon(&mut self, val: &str) -> &mut Self { self.set_icon(val); self } #[deprecated = "Use `set_image()` instead."] pub fn image(&mut self, val: &str) -> &mut Self { self.set_image(val); self } #[deprecated = "Use `set_lang()` instead."] pub fn lang(&mut self, val: &str) -> &mut Self { self.set_lang(val); self } #[deprecated = "Use `set_renotify()` instead."] pub fn renotify(&mut self, val: bool) -> &mut Self { self.set_renotify(val); self } #[deprecated = "Use `set_require_interaction()` instead."] pub fn require_interaction(&mut self, val: bool) -> &mut Self { self.set_require_interaction(val); self } #[deprecated = "Use `set_silent()` instead."] pub fn silent(&mut self, val: Option) -> &mut Self { self.set_silent(val); self } #[deprecated = "Use `set_tag()` instead."] pub fn tag(&mut self, val: &str) -> &mut Self { self.set_tag(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[deprecated = "Use `set_vibrate()` instead."] pub fn vibrate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_vibrate(val); self } } impl Default for NotificationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_NotificationPermission.rs000064400000000000000000000006311046102023000216110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ObserverCallback.rs000064400000000000000000000032511046102023000203170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &ObserverCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &ObserverCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for ObserverCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_OesElementIndexUint.rs000064400000000000000000000012141046102023000210000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesStandardDerivatives.rs000064400000000000000000000017301046102023000215300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesTextureFloat.rs000064400000000000000000000011611046102023000202060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesTextureFloatLinear.rs000064400000000000000000000012301046102023000213360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesTextureHalfFloat.rs000064400000000000000000000016271046102023000210100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesTextureHalfFloatLinear.rs000064400000000000000000000012631046102023000221370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OesVertexArrayObject.rs000064400000000000000000000066041046102023000211720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OfflineAudioCompletionEvent.rs000064400000000000000000000037321046102023000225170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OfflineAudioCompletionEventInit.rs000064400000000000000000000105161046102023000233410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &OfflineAudioCompletionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &OfflineAudioCompletionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &OfflineAudioCompletionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &OfflineAudioCompletionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &OfflineAudioCompletionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &OfflineAudioCompletionEventInit, val: bool); #[cfg(feature = "AudioBuffer")] #[doc = "Get the `renderedBuffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEventInit`*"] #[wasm_bindgen(method, getter = "renderedBuffer")] pub fn get_rendered_buffer(this: &OfflineAudioCompletionEventInit) -> AudioBuffer; #[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`*"] #[wasm_bindgen(method, setter = "renderedBuffer")] pub fn set_rendered_buffer(this: &OfflineAudioCompletionEventInit, val: &AudioBuffer); } 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.set_rendered_buffer(rendered_buffer); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "AudioBuffer")] #[deprecated = "Use `set_rendered_buffer()` instead."] pub fn rendered_buffer(&mut self, val: &AudioBuffer) -> &mut Self { self.set_rendered_buffer(val); self } } web-sys-0.3.81/src/features/gen_OfflineAudioContext.rs000064400000000000000000000740541046102023000210350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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(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_with_f32_array_and_f32_slice( this: &OfflineAudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], ) -> 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_with_f32_slice_and_f32_array( this: &OfflineAudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, ) -> 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_with_f32_array_and_f32_array( this: &OfflineAudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, ) -> 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(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_f32_array_and_f32_slice_and_constraints( this: &OfflineAudioContext, real: &::js_sys::Float32Array, imag: &mut [f32], constraints: &PeriodicWaveConstraints, ) -> 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_f32_slice_and_f32_array_and_constraints( this: &OfflineAudioContext, real: &mut [f32], imag: &::js_sys::Float32Array, constraints: &PeriodicWaveConstraints, ) -> 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_f32_array_and_f32_array_and_constraints( this: &OfflineAudioContext, real: &::js_sys::Float32Array, imag: &::js_sys::Float32Array, 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>; } web-sys-0.3.81/src/features/gen_OfflineAudioContextOptions.rs000064400000000000000000000064351046102023000224070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, getter = "length")] pub fn get_length(this: &OfflineAudioContextOptions) -> u32; #[doc = "Change the `length` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, setter = "length")] pub fn set_length(this: &OfflineAudioContextOptions, val: u32); #[doc = "Get the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, getter = "numberOfChannels")] pub fn get_number_of_channels(this: &OfflineAudioContextOptions) -> Option; #[doc = "Change the `numberOfChannels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, setter = "numberOfChannels")] pub fn set_number_of_channels(this: &OfflineAudioContextOptions, val: u32); #[doc = "Get the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, getter = "sampleRate")] pub fn get_sample_rate(this: &OfflineAudioContextOptions) -> f32; #[doc = "Change the `sampleRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] #[wasm_bindgen(method, setter = "sampleRate")] pub fn set_sample_rate(this: &OfflineAudioContextOptions, val: f32); } 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.set_length(length); ret.set_sample_rate(sample_rate); ret } #[deprecated = "Use `set_length()` instead."] pub fn length(&mut self, val: u32) -> &mut Self { self.set_length(val); self } #[deprecated = "Use `set_number_of_channels()` instead."] pub fn number_of_channels(&mut self, val: u32) -> &mut Self { self.set_number_of_channels(val); self } #[deprecated = "Use `set_sample_rate()` instead."] pub fn sample_rate(&mut self, val: f32) -> &mut Self { self.set_sample_rate(val); self } } web-sys-0.3.81/src/features/gen_OfflineResourceList.rs000064400000000000000000000265351046102023000210530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_OffscreenCanvas.rs000064400000000000000000000131411046102023000201600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = convertToBlob)] #[doc = "The `convertToBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/convertToBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] pub fn convert_to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>; #[cfg(feature = "ImageEncodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvas" , js_name = convertToBlob)] #[doc = "The `convertToBlob()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/convertToBlob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`, `OffscreenCanvas`*"] pub fn convert_to_blob_with_options( this: &OffscreenCanvas, options: &ImageEncodeOptions, ) -> Result<::js_sys::Promise, 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( 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>; #[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; } web-sys-0.3.81/src/features/gen_OffscreenCanvasRenderingContext2d.rs000064400000000000000000002462371046102023000236270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OffscreenCanvasRenderingContext2D , typescript_type = "OffscreenCanvasRenderingContext2D")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OffscreenCanvasRenderingContext2d` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub type OffscreenCanvasRenderingContext2d; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/canvas)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"] pub fn canvas(this: &OffscreenCanvasRenderingContext2d) -> OffscreenCanvas; # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn global_alpha(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/globalAlpha)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_global_alpha(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , catch , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/globalCompositeOperation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn global_composite_operation( this: &OffscreenCanvasRenderingContext2d, ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/globalCompositeOperation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_global_composite_operation( this: &OffscreenCanvasRenderingContext2d, value: &str, ) -> Result<(), JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn stroke_style(this: &OffscreenCanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] #[deprecated] pub fn set_stroke_style( this: &OffscreenCanvasRenderingContext2d, value: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_stroke_style_str(this: &OffscreenCanvasRenderingContext2d, value: &str); #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"] pub fn set_stroke_style_canvas_gradient( this: &OffscreenCanvasRenderingContext2d, value: &CanvasGradient, ); #[cfg(feature = "CanvasPattern")] # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/strokeStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`*"] pub fn set_stroke_style_canvas_pattern( this: &OffscreenCanvasRenderingContext2d, value: &CanvasPattern, ); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn fill_style(this: &OffscreenCanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] #[deprecated] pub fn set_fill_style( this: &OffscreenCanvasRenderingContext2d, value: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_fill_style_str(this: &OffscreenCanvasRenderingContext2d, value: &str); #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"] pub fn set_fill_style_canvas_gradient( this: &OffscreenCanvasRenderingContext2d, value: &CanvasGradient, ); #[cfg(feature = "CanvasPattern")] # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/fillStyle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`*"] pub fn set_fill_style_canvas_pattern( this: &OffscreenCanvasRenderingContext2d, value: &CanvasPattern, ); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn filter(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_filter(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn image_smoothing_enabled(this: &OffscreenCanvasRenderingContext2d) -> bool; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/imageSmoothingEnabled)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_image_smoothing_enabled(this: &OffscreenCanvasRenderingContext2d, value: bool); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn line_width(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_line_width(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn line_cap(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_line_cap(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn line_join(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_line_join(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn miter_limit(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/miterLimit)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_miter_limit(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn line_dash_offset(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/lineDashOffset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_line_dash_offset(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn shadow_offset_x(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowOffsetX)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_shadow_offset_x(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn shadow_offset_y(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowOffsetY)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_shadow_offset_y(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn shadow_blur(this: &OffscreenCanvasRenderingContext2d) -> f64; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowBlur)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_shadow_blur(this: &OffscreenCanvasRenderingContext2d, value: f64); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn shadow_color(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_shadow_color(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn font(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_font(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn text_align(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_text_align(this: &OffscreenCanvasRenderingContext2d, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn text_baseline(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , 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/OffscreenCanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_text_baseline(this: &OffscreenCanvasRenderingContext2d, value: &str); #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_image_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlImageElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element( this: &OffscreenCanvasRenderingContext2d, image: &SvgImageElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_canvas_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlCanvasElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_video_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlVideoElement, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_image_bitmap( this: &OffscreenCanvasRenderingContext2d, image: &ImageBitmap, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_offscreen_canvas( this: &OffscreenCanvasRenderingContext2d, image: &OffscreenCanvas, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame( this: &OffscreenCanvasRenderingContext2d, image: &VideoFrame, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_image_element_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &HtmlImageElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "SvgImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &SvgImageElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlCanvasElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_canvas_element_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &HtmlCanvasElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlVideoElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_video_element_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &HtmlVideoElement, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageBitmap")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_image_bitmap_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &ImageBitmap, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_offscreen_canvas_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &OffscreenCanvas, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &VideoFrame, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "HtmlImageElement")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"] pub fn draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &ImageBitmap, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"] pub fn draw_image_with_offscreen_canvas_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &OffscreenCanvas, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = drawImage)] #[doc = "The `drawImage()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/drawImage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draw_image_with_video_frame_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( this: &OffscreenCanvasRenderingContext2d, image: &VideoFrame, sx: f64, sy: f64, sw: f64, sh: f64, dx: f64, dy: f64, dw: f64, dh: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = beginPath)] #[doc = "The `beginPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/beginPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn begin_path(this: &OffscreenCanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn clip(this: &OffscreenCanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"] pub fn clip_with_canvas_winding_rule( this: &OffscreenCanvasRenderingContext2d, winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn clip_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clip)] #[doc = "The `clip()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clip)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn clip_with_path_2d_and_winding( this: &OffscreenCanvasRenderingContext2d, path: &Path2d, winding: CanvasWindingRule, ); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn fill(this: &OffscreenCanvasRenderingContext2d); #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"] pub fn fill_with_canvas_winding_rule( this: &OffscreenCanvasRenderingContext2d, winding: CanvasWindingRule, ); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn fill_with_path_2d(this: &OffscreenCanvasRenderingContext2d, path: &Path2d); #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fill)] #[doc = "The `fill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn fill_with_path_2d_and_winding( this: &OffscreenCanvasRenderingContext2d, path: &Path2d, winding: CanvasWindingRule, ); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn is_point_in_path_with_f64( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, ) -> bool; #[cfg(feature = "CanvasWindingRule")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`*"] pub fn is_point_in_path_with_f64_and_canvas_winding_rule( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, winding: CanvasWindingRule, ) -> bool; #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn is_point_in_path_with_path_2d_and_f64( this: &OffscreenCanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, ) -> bool; #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInPath)] #[doc = "The `isPointInPath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`, `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn is_point_in_path_with_path_2d_and_f64_and_winding( this: &OffscreenCanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, winding: CanvasWindingRule, ) -> bool; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn is_point_in_stroke_with_x_and_y( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, ) -> bool; #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn is_point_in_stroke_with_path_and_x_and_y( this: &OffscreenCanvasRenderingContext2d, path: &Path2d, x: f64, y: f64, ) -> bool; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn stroke(this: &OffscreenCanvasRenderingContext2d); #[cfg(feature = "Path2d")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = stroke)] #[doc = "The `stroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/stroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `Path2d`*"] pub fn stroke_with_path(this: &OffscreenCanvasRenderingContext2d, path: &Path2d); #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createLinearGradient)] #[doc = "The `createLinearGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createLinearGradient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_linear_gradient( this: &OffscreenCanvasRenderingContext2d, x0: f64, y0: f64, x1: f64, y1: f64, ) -> CanvasGradient; #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlImageElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_pattern_with_html_image_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlImageElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`, `SvgImageElement`*"] pub fn create_pattern_with_svg_image_element( this: &OffscreenCanvasRenderingContext2d, image: &SvgImageElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlCanvasElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_pattern_with_html_canvas_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlCanvasElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `HtmlVideoElement`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_pattern_with_html_video_element( this: &OffscreenCanvasRenderingContext2d, image: &HtmlVideoElement, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `ImageBitmap`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_pattern_with_image_bitmap( this: &OffscreenCanvasRenderingContext2d, image: &ImageBitmap, repetition: &str, ) -> Result, JsValue>; #[cfg(all(feature = "CanvasPattern", feature = "OffscreenCanvas",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvas`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_pattern_with_offscreen_canvas( this: &OffscreenCanvasRenderingContext2d, image: &OffscreenCanvas, repetition: &str, ) -> Result, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "CanvasPattern", feature = "VideoFrame",))] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createPattern)] #[doc = "The `createPattern()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createPattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `OffscreenCanvasRenderingContext2d`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_pattern_with_video_frame( this: &OffscreenCanvasRenderingContext2d, image: &VideoFrame, repetition: &str, ) -> Result, JsValue>; #[cfg(feature = "CanvasGradient")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createRadialGradient)] #[doc = "The `createRadialGradient()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createRadialGradient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_radial_gradient( this: &OffscreenCanvasRenderingContext2d, x0: f64, y0: f64, r0: f64, x1: f64, y1: f64, r1: f64, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_image_data_with_sw_and_sh( this: &OffscreenCanvasRenderingContext2d, sw: f64, sh: f64, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = createImageData)] #[doc = "The `createImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/createImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"] pub fn create_image_data_with_imagedata( this: &OffscreenCanvasRenderingContext2d, imagedata: &ImageData, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getImageData)] #[doc = "The `getImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"] pub fn get_image_data( this: &OffscreenCanvasRenderingContext2d, sx: f64, sy: f64, sw: f64, sh: f64, ) -> Result; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"] pub fn put_image_data( this: &OffscreenCanvasRenderingContext2d, imagedata: &ImageData, dx: f64, dy: f64, ) -> Result<(), JsValue>; #[cfg(feature = "ImageData")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = putImageData)] #[doc = "The `putImageData()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/putImageData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageData`, `OffscreenCanvasRenderingContext2d`*"] pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height( this: &OffscreenCanvasRenderingContext2d, imagedata: &ImageData, dx: f64, dy: f64, dirty_x: f64, dirty_y: f64, dirty_width: f64, dirty_height: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn arc( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arc)] #[doc = "The `arc()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn arc_with_anticlockwise( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, radius: f64, start_angle: f64, end_angle: f64, anticlockwise: bool, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = arcTo)] #[doc = "The `arcTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/arcTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn arc_to( this: &OffscreenCanvasRenderingContext2d, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = bezierCurveTo)] #[doc = "The `bezierCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/bezierCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn bezier_curve_to( this: &OffscreenCanvasRenderingContext2d, cp1x: f64, cp1y: f64, cp2x: f64, cp2y: f64, x: f64, y: f64, ); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = closePath)] #[doc = "The `closePath()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/closePath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn close_path(this: &OffscreenCanvasRenderingContext2d); # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn ellipse( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = ellipse)] #[doc = "The `ellipse()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/ellipse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn ellipse_with_anticlockwise( this: &OffscreenCanvasRenderingContext2d, 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 = "OffscreenCanvasRenderingContext2D" , js_name = lineTo)] #[doc = "The `lineTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn line_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = moveTo)] #[doc = "The `moveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/moveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn move_to(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = quadraticCurveTo)] #[doc = "The `quadraticCurveTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/quadraticCurveTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn quadratic_curve_to( this: &OffscreenCanvasRenderingContext2d, cpx: f64, cpy: f64, x: f64, y: f64, ); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rect)] #[doc = "The `rect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn round_rect( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn round_rect_with_f64( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `OffscreenCanvasRenderingContext2d`*"] pub fn round_rect_with_dom_point_init( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &DomPointInit, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn round_rect_with_f64_sequence( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn round_rect_with_dom_point_init_sequence( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getLineDash)] #[doc = "The `getLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getLineDash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn get_line_dash(this: &OffscreenCanvasRenderingContext2d) -> ::js_sys::Array; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setLineDash)] #[doc = "The `setLineDash()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setLineDash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_line_dash( this: &OffscreenCanvasRenderingContext2d, segments: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = clearRect)] #[doc = "The `clearRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/clearRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn clear_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillRect)] #[doc = "The `fillRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn fill_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeRect)] #[doc = "The `strokeRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn stroke_rect(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn reset(this: &OffscreenCanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = restore)] #[doc = "The `restore()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/restore)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn restore(this: &OffscreenCanvasRenderingContext2d); # [wasm_bindgen (method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = save)] #[doc = "The `save()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/save)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn save(this: &OffscreenCanvasRenderingContext2d); # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn fill_text( this: &OffscreenCanvasRenderingContext2d, text: &str, x: f64, y: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = fillText)] #[doc = "The `fillText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/fillText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn fill_text_with_max_width( this: &OffscreenCanvasRenderingContext2d, text: &str, x: f64, y: f64, max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "TextMetrics")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = measureText)] #[doc = "The `measureText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/measureText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`, `TextMetrics`*"] pub fn measure_text( this: &OffscreenCanvasRenderingContext2d, text: &str, ) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn stroke_text( this: &OffscreenCanvasRenderingContext2d, text: &str, x: f64, y: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = strokeText)] #[doc = "The `strokeText()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/strokeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn stroke_text_with_max_width( this: &OffscreenCanvasRenderingContext2d, text: &str, x: f64, y: f64, max_width: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomMatrix")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = getTransform)] #[doc = "The `getTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/getTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `OffscreenCanvasRenderingContext2d`*"] pub fn get_transform(this: &OffscreenCanvasRenderingContext2d) -> Result; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = resetTransform)] #[doc = "The `resetTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/resetTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn reset_transform(this: &OffscreenCanvasRenderingContext2d) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = rotate)] #[doc = "The `rotate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/rotate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn rotate(this: &OffscreenCanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = scale)] #[doc = "The `scale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn scale(this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_transform( this: &OffscreenCanvasRenderingContext2d, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn set_transform_with_default_dom_matrix_2d_init( this: &OffscreenCanvasRenderingContext2d, ) -> Result<(), JsValue>; #[cfg(feature = "DomMatrix2dInit")] # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)] #[doc = "The `setTransform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`, `OffscreenCanvasRenderingContext2d`*"] pub fn set_transform_with_dom_matrix_2d_init( this: &OffscreenCanvasRenderingContext2d, transform: &DomMatrix2dInit, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = transform)] #[doc = "The `transform()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn transform( this: &OffscreenCanvasRenderingContext2d, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = translate)] #[doc = "The `translate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/translate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn translate( this: &OffscreenCanvasRenderingContext2d, x: f64, y: f64, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_OpenFilePickerOptions.rs000064400000000000000000000203221046102023000213240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OpenFilePickerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OpenFilePickerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type OpenFilePickerOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "excludeAcceptAllOption")] pub fn get_exclude_accept_all_option(this: &OpenFilePickerOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "excludeAcceptAllOption")] pub fn set_exclude_accept_all_option(this: &OpenFilePickerOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &OpenFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &OpenFilePickerOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "startIn")] pub fn get_start_in(this: &OpenFilePickerOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "startIn")] pub fn set_start_in(this: &OpenFilePickerOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "types")] pub fn get_types(this: &OpenFilePickerOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "types")] pub fn set_types(this: &OpenFilePickerOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `multiple` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "multiple")] pub fn get_multiple(this: &OpenFilePickerOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `multiple` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "multiple")] pub fn set_multiple(this: &OpenFilePickerOptions, val: bool); } #[cfg(web_sys_unstable_apis)] impl OpenFilePickerOptions { #[doc = "Construct a new `OpenFilePickerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_exclude_accept_all_option()` instead."] pub fn exclude_accept_all_option(&mut self, val: bool) -> &mut Self { self.set_exclude_accept_all_option(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_start_in()` instead."] pub fn start_in(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_start_in(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_types()` instead."] pub fn types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_types(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_multiple()` instead."] pub fn multiple(&mut self, val: bool) -> &mut Self { self.set_multiple(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for OpenFilePickerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_OpenWindowEventDetail.rs000064400000000000000000000077631046102023000213450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `features` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "features")] pub fn get_features(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `features` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, setter = "features")] pub fn set_features(this: &OpenWindowEventDetail, val: &str); #[cfg(feature = "Node")] #[doc = "Get the `frameElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "frameElement")] pub fn get_frame_element(this: &OpenWindowEventDetail) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "frameElement")] pub fn set_frame_element(this: &OpenWindowEventDetail, val: Option<&Node>); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &OpenWindowEventDetail, val: &str); #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &OpenWindowEventDetail, val: &str); } 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 } #[deprecated = "Use `set_features()` instead."] pub fn features(&mut self, val: &str) -> &mut Self { self.set_features(val); self } #[cfg(feature = "Node")] #[deprecated = "Use `set_frame_element()` instead."] pub fn frame_element(&mut self, val: Option<&Node>) -> &mut Self { self.set_frame_element(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: &str) -> &mut Self { self.set_url(val); self } } impl Default for OpenWindowEventDetail { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_OptionalEffectTiming.rs000064400000000000000000000162331046102023000211710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &OptionalEffectTiming) -> Option; #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &OptionalEffectTiming, val: f64); #[cfg(feature = "PlaybackDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`, `PlaybackDirection`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &OptionalEffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &OptionalEffectTiming, val: PlaybackDirection); #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &OptionalEffectTiming) -> ::wasm_bindgen::JsValue; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &OptionalEffectTiming, val: &::wasm_bindgen::JsValue); #[doc = "Get the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] pub fn get_easing(this: &OptionalEffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "easing")] pub fn set_easing(this: &OptionalEffectTiming, val: &str); #[doc = "Get the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "endDelay")] pub fn get_end_delay(this: &OptionalEffectTiming) -> Option; #[doc = "Change the `endDelay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "endDelay")] pub fn set_end_delay(this: &OptionalEffectTiming, val: f64); #[cfg(feature = "FillMode")] #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FillMode`, `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &OptionalEffectTiming) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &OptionalEffectTiming, val: FillMode); #[doc = "Get the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "iterationStart")] pub fn get_iteration_start(this: &OptionalEffectTiming) -> Option; #[doc = "Change the `iterationStart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "iterationStart")] pub fn set_iteration_start(this: &OptionalEffectTiming, val: f64); #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &OptionalEffectTiming) -> Option; #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &OptionalEffectTiming, val: f64); } 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 } #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(feature = "PlaybackDirection")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_easing()` instead."] pub fn easing(&mut self, val: &str) -> &mut Self { self.set_easing(val); self } #[deprecated = "Use `set_end_delay()` instead."] pub fn end_delay(&mut self, val: f64) -> &mut Self { self.set_end_delay(val); self } #[cfg(feature = "FillMode")] #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: FillMode) -> &mut Self { self.set_fill(val); self } #[deprecated = "Use `set_iteration_start()` instead."] pub fn iteration_start(&mut self, val: f64) -> &mut Self { self.set_iteration_start(val); self } #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: f64) -> &mut Self { self.set_iterations(val); self } } impl Default for OptionalEffectTiming { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_OrientationLockType.rs000064400000000000000000000011351046102023000210600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_OrientationType.rs000064400000000000000000000007571046102023000202600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_OscillatorNode.rs000064400000000000000000000160621046102023000200400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_OscillatorOptions.rs000064400000000000000000000156501046102023000206100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &OscillatorOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &OscillatorOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `OscillatorOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &OscillatorOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &OscillatorOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `OscillatorOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &OscillatorOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &OscillatorOptions, val: ChannelInterpretation); #[doc = "Get the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, getter = "detune")] pub fn get_detune(this: &OscillatorOptions) -> Option; #[doc = "Change the `detune` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, setter = "detune")] pub fn set_detune(this: &OscillatorOptions, val: f32); #[doc = "Get the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, getter = "frequency")] pub fn get_frequency(this: &OscillatorOptions) -> Option; #[doc = "Change the `frequency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] #[wasm_bindgen(method, setter = "frequency")] pub fn set_frequency(this: &OscillatorOptions, val: f32); #[cfg(feature = "PeriodicWave")] #[doc = "Get the `periodicWave` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `PeriodicWave`*"] #[wasm_bindgen(method, getter = "periodicWave")] pub fn get_periodic_wave(this: &OscillatorOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "periodicWave")] pub fn set_periodic_wave(this: &OscillatorOptions, val: &PeriodicWave); #[cfg(feature = "OscillatorType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `OscillatorType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &OscillatorOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &OscillatorOptions, val: OscillatorType); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_detune()` instead."] pub fn detune(&mut self, val: f32) -> &mut Self { self.set_detune(val); self } #[deprecated = "Use `set_frequency()` instead."] pub fn frequency(&mut self, val: f32) -> &mut Self { self.set_frequency(val); self } #[cfg(feature = "PeriodicWave")] #[deprecated = "Use `set_periodic_wave()` instead."] pub fn periodic_wave(&mut self, val: &PeriodicWave) -> &mut Self { self.set_periodic_wave(val); self } #[cfg(feature = "OscillatorType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: OscillatorType) -> &mut Self { self.set_type(val); self } } impl Default for OscillatorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_OscillatorType.rs000064400000000000000000000006571046102023000200770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_OverSampleType.rs000064400000000000000000000005531046102023000200340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_OvrMultiview2.rs000064400000000000000000000045601046102023000176550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = OVR_multiview2 , typescript_type = "OVR_multiview2")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `OvrMultiview2` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OVR_multiview2)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"] pub type OvrMultiview2; #[cfg(feature = "WebGlTexture")] # [wasm_bindgen (method , structural , js_class = "OVR_multiview2" , js_name = framebufferTextureMultiviewOVR)] #[doc = "The `framebufferTextureMultiviewOVR()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`, `WebGlTexture`*"] pub fn framebuffer_texture_multiview_ovr( this: &OvrMultiview2, target: u32, attachment: u32, texture: Option<&WebGlTexture>, level: i32, base_view_index: i32, num_views: i32, ); } impl OvrMultiview2 { #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: u32 = 38448u64 as u32; #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"] pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: u32 = 38450u64 as u32; #[doc = "The `OVR_multiview2.MAX_VIEWS_OVR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"] pub const MAX_VIEWS_OVR: u32 = 38449u64 as u32; #[doc = "The `OVR_multiview2.FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"] pub const FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: u32 = 38451u64 as u32; } web-sys-0.3.81/src/features/gen_PageTransitionEvent.rs000064400000000000000000000044031046102023000210440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PageTransitionEventInit.rs000064400000000000000000000113101046102023000216630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PageTransitionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PageTransitionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PageTransitionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PageTransitionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PageTransitionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PageTransitionEventInit, val: bool); #[doc = "Get the `inFrameSwap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, getter = "inFrameSwap")] pub fn get_in_frame_swap(this: &PageTransitionEventInit) -> Option; #[doc = "Change the `inFrameSwap` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, setter = "inFrameSwap")] pub fn set_in_frame_swap(this: &PageTransitionEventInit, val: bool); #[doc = "Get the `persisted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, getter = "persisted")] pub fn get_persisted(this: &PageTransitionEventInit) -> Option; #[doc = "Change the `persisted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] #[wasm_bindgen(method, setter = "persisted")] pub fn set_persisted(this: &PageTransitionEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_in_frame_swap()` instead."] pub fn in_frame_swap(&mut self, val: bool) -> &mut Self { self.set_in_frame_swap(val); self } #[deprecated = "Use `set_persisted()` instead."] pub fn persisted(&mut self, val: bool) -> &mut Self { self.set_persisted(val); self } } impl Default for PageTransitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PaintRequest.rs000064400000000000000000000030021046102023000175310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_PaintRequestList.rs000064400000000000000000000037101046102023000203730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`, `PaintRequestList`*"] pub fn get(this: &PaintRequestList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_PaintWorkletGlobalScope.rs000064400000000000000000000023051046102023000216500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_PannerNode.rs000064400000000000000000000330631046102023000171500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_PannerOptions.rs000064400000000000000000000345741046102023000177260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &PannerOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &PannerOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `PannerOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &PannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &PannerOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `PannerOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &PannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &PannerOptions, val: ChannelInterpretation); #[doc = "Get the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "coneInnerAngle")] pub fn get_cone_inner_angle(this: &PannerOptions) -> Option; #[doc = "Change the `coneInnerAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "coneInnerAngle")] pub fn set_cone_inner_angle(this: &PannerOptions, val: f64); #[doc = "Get the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "coneOuterAngle")] pub fn get_cone_outer_angle(this: &PannerOptions) -> Option; #[doc = "Change the `coneOuterAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "coneOuterAngle")] pub fn set_cone_outer_angle(this: &PannerOptions, val: f64); #[doc = "Get the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "coneOuterGain")] pub fn get_cone_outer_gain(this: &PannerOptions) -> Option; #[doc = "Change the `coneOuterGain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "coneOuterGain")] pub fn set_cone_outer_gain(this: &PannerOptions, val: f64); #[cfg(feature = "DistanceModelType")] #[doc = "Get the `distanceModel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerOptions`*"] #[wasm_bindgen(method, getter = "distanceModel")] pub fn get_distance_model(this: &PannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "distanceModel")] pub fn set_distance_model(this: &PannerOptions, val: DistanceModelType); #[doc = "Get the `maxDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "maxDistance")] pub fn get_max_distance(this: &PannerOptions) -> Option; #[doc = "Change the `maxDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "maxDistance")] pub fn set_max_distance(this: &PannerOptions, val: f64); #[doc = "Get the `orientationX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "orientationX")] pub fn get_orientation_x(this: &PannerOptions) -> Option; #[doc = "Change the `orientationX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "orientationX")] pub fn set_orientation_x(this: &PannerOptions, val: f32); #[doc = "Get the `orientationY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "orientationY")] pub fn get_orientation_y(this: &PannerOptions) -> Option; #[doc = "Change the `orientationY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "orientationY")] pub fn set_orientation_y(this: &PannerOptions, val: f32); #[doc = "Get the `orientationZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "orientationZ")] pub fn get_orientation_z(this: &PannerOptions) -> Option; #[doc = "Change the `orientationZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "orientationZ")] pub fn set_orientation_z(this: &PannerOptions, val: f32); #[cfg(feature = "PanningModelType")] #[doc = "Get the `panningModel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`, `PanningModelType`*"] #[wasm_bindgen(method, getter = "panningModel")] pub fn get_panning_model(this: &PannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "panningModel")] pub fn set_panning_model(this: &PannerOptions, val: PanningModelType); #[doc = "Get the `positionX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "positionX")] pub fn get_position_x(this: &PannerOptions) -> Option; #[doc = "Change the `positionX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "positionX")] pub fn set_position_x(this: &PannerOptions, val: f32); #[doc = "Get the `positionY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "positionY")] pub fn get_position_y(this: &PannerOptions) -> Option; #[doc = "Change the `positionY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "positionY")] pub fn set_position_y(this: &PannerOptions, val: f32); #[doc = "Get the `positionZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "positionZ")] pub fn get_position_z(this: &PannerOptions) -> Option; #[doc = "Change the `positionZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "positionZ")] pub fn set_position_z(this: &PannerOptions, val: f32); #[doc = "Get the `refDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "refDistance")] pub fn get_ref_distance(this: &PannerOptions) -> Option; #[doc = "Change the `refDistance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "refDistance")] pub fn set_ref_distance(this: &PannerOptions, val: f64); #[doc = "Get the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, getter = "rolloffFactor")] pub fn get_rolloff_factor(this: &PannerOptions) -> Option; #[doc = "Change the `rolloffFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] #[wasm_bindgen(method, setter = "rolloffFactor")] pub fn set_rolloff_factor(this: &PannerOptions, val: f64); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_cone_inner_angle()` instead."] pub fn cone_inner_angle(&mut self, val: f64) -> &mut Self { self.set_cone_inner_angle(val); self } #[deprecated = "Use `set_cone_outer_angle()` instead."] pub fn cone_outer_angle(&mut self, val: f64) -> &mut Self { self.set_cone_outer_angle(val); self } #[deprecated = "Use `set_cone_outer_gain()` instead."] pub fn cone_outer_gain(&mut self, val: f64) -> &mut Self { self.set_cone_outer_gain(val); self } #[cfg(feature = "DistanceModelType")] #[deprecated = "Use `set_distance_model()` instead."] pub fn distance_model(&mut self, val: DistanceModelType) -> &mut Self { self.set_distance_model(val); self } #[deprecated = "Use `set_max_distance()` instead."] pub fn max_distance(&mut self, val: f64) -> &mut Self { self.set_max_distance(val); self } #[deprecated = "Use `set_orientation_x()` instead."] pub fn orientation_x(&mut self, val: f32) -> &mut Self { self.set_orientation_x(val); self } #[deprecated = "Use `set_orientation_y()` instead."] pub fn orientation_y(&mut self, val: f32) -> &mut Self { self.set_orientation_y(val); self } #[deprecated = "Use `set_orientation_z()` instead."] pub fn orientation_z(&mut self, val: f32) -> &mut Self { self.set_orientation_z(val); self } #[cfg(feature = "PanningModelType")] #[deprecated = "Use `set_panning_model()` instead."] pub fn panning_model(&mut self, val: PanningModelType) -> &mut Self { self.set_panning_model(val); self } #[deprecated = "Use `set_position_x()` instead."] pub fn position_x(&mut self, val: f32) -> &mut Self { self.set_position_x(val); self } #[deprecated = "Use `set_position_y()` instead."] pub fn position_y(&mut self, val: f32) -> &mut Self { self.set_position_y(val); self } #[deprecated = "Use `set_position_z()` instead."] pub fn position_z(&mut self, val: f32) -> &mut Self { self.set_position_z(val); self } #[deprecated = "Use `set_ref_distance()` instead."] pub fn ref_distance(&mut self, val: f64) -> &mut Self { self.set_ref_distance(val); self } #[deprecated = "Use `set_rolloff_factor()` instead."] pub fn rolloff_factor(&mut self, val: f64) -> &mut Self { self.set_rolloff_factor(val); self } } impl Default for PannerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PanningModelType.rs000064400000000000000000000005601046102023000203300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ParityType.rs000064400000000000000000000011511046102023000172220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `ParityType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ParityType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ParityType { None = "none", Even = "even", Odd = "odd", } web-sys-0.3.81/src/features/gen_Path2d.rs000064400000000000000000000250501046102023000162360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn round_rect(this: &Path2d, x: f64, y: f64, w: f64, h: f64) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn round_rect_with_f64( this: &Path2d, x: f64, y: f64, w: f64, h: f64, radii: f64, ) -> Result<(), JsValue>; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `Path2d`*"] pub fn round_rect_with_dom_point_init( this: &Path2d, x: f64, y: f64, w: f64, h: f64, radii: &DomPointInit, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn round_rect_with_f64_sequence( this: &Path2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Path2D" , js_name = roundRect)] #[doc = "The `roundRect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/roundRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] pub fn round_rect_with_dom_point_init_sequence( this: &Path2d, x: f64, y: f64, w: f64, h: f64, radii: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_PaymentAddress.rs000064400000000000000000000142511046102023000200400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PaymentComplete.rs000064400000000000000000000006001046102023000202140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PaymentMethodChangeEvent.rs000064400000000000000000000057421046102023000220100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PaymentMethodChangeEventInit.rs000064400000000000000000000116041046102023000226260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PaymentMethodChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PaymentMethodChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PaymentMethodChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PaymentMethodChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PaymentMethodChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PaymentMethodChangeEventInit, val: bool); #[doc = "Get the `methodDetails` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "methodDetails")] pub fn get_method_details(this: &PaymentMethodChangeEventInit) -> Option<::js_sys::Object>; #[doc = "Change the `methodDetails` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, setter = "methodDetails")] pub fn set_method_details(this: &PaymentMethodChangeEventInit, val: Option<&::js_sys::Object>); #[doc = "Get the `methodName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "methodName")] pub fn get_method_name(this: &PaymentMethodChangeEventInit) -> ::alloc::string::String; #[doc = "Change the `methodName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, setter = "methodName")] pub fn set_method_name(this: &PaymentMethodChangeEventInit, val: &str); } 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.set_method_name(method_name); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_method_details()` instead."] pub fn method_details(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_method_details(val); self } #[deprecated = "Use `set_method_name()` instead."] pub fn method_name(&mut self, val: &str) -> &mut Self { self.set_method_name(val); self } } web-sys-0.3.81/src/features/gen_PaymentRequestUpdateEvent.rs000064400000000000000000000047351046102023000222560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PaymentRequestUpdateEventInit.rs000064400000000000000000000064421046102023000230770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PaymentRequestUpdateEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PaymentRequestUpdateEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PaymentRequestUpdateEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PaymentRequestUpdateEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PaymentRequestUpdateEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PaymentRequestUpdateEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } } impl Default for PaymentRequestUpdateEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PaymentResponse.rs000064400000000000000000000136251046102023000202550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [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; } web-sys-0.3.81/src/features/gen_Pbkdf2Params.rs000064400000000000000000000074501046102023000173740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &Pbkdf2Params) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &Pbkdf2Params, val: &str); #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &Pbkdf2Params) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &Pbkdf2Params, val: &::wasm_bindgen::JsValue); #[doc = "Get the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, getter = "iterations")] pub fn get_iterations(this: &Pbkdf2Params) -> u32; #[doc = "Change the `iterations` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, setter = "iterations")] pub fn set_iterations(this: &Pbkdf2Params, val: u32); #[doc = "Get the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, getter = "salt")] pub fn get_salt(this: &Pbkdf2Params) -> ::js_sys::Object; #[doc = "Change the `salt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, setter = "salt")] pub fn set_salt(this: &Pbkdf2Params, val: &::js_sys::Object); } 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.set_name(name); ret.set_hash(hash); ret.set_iterations(iterations); ret.set_salt(salt); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } #[deprecated = "Use `set_iterations()` instead."] pub fn iterations(&mut self, val: u32) -> &mut Self { self.set_iterations(val); self } #[deprecated = "Use `set_salt()` instead."] pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_salt(val); self } } web-sys-0.3.81/src/features/gen_PcImplIceConnectionState.rs000064400000000000000000000010151046102023000217350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PcImplIceGatheringState.rs000064400000000000000000000006341046102023000215540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PcImplSignalingState.rs000064400000000000000000000012731046102023000211360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PcObserverStateType.rs000064400000000000000000000007351046102023000210340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Performance.rs000064400000000000000000000261571046102023000173660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Performance" , js_name = measureUserAgentSpecificMemory)] #[doc = "The `measureUserAgentSpecificMemory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measureUserAgentSpecificMemory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn measure_user_agent_specific_memory(this: &Performance) -> ::js_sys::Promise; # [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; } web-sys-0.3.81/src/features/gen_PerformanceEntry.rs000064400000000000000000000055561046102023000204100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PerformanceEntryEventInit.rs000064400000000000000000000173151046102023000222320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PerformanceEntryEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PerformanceEntryEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PerformanceEntryEventInit, val: bool); #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &PerformanceEntryEventInit, val: f64); #[doc = "Get the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "entryType")] pub fn get_entry_type(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "entryType")] pub fn set_entry_type(this: &PerformanceEntryEventInit, val: &str); #[doc = "Get the `epoch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "epoch")] pub fn get_epoch(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `epoch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "epoch")] pub fn set_epoch(this: &PerformanceEntryEventInit, val: f64); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PerformanceEntryEventInit, val: &str); #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &PerformanceEntryEventInit, val: &str); #[doc = "Get the `startTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "startTime")] pub fn get_start_time(this: &PerformanceEntryEventInit) -> Option; #[doc = "Change the `startTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, setter = "startTime")] pub fn set_start_time(this: &PerformanceEntryEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[deprecated = "Use `set_entry_type()` instead."] pub fn entry_type(&mut self, val: &str) -> &mut Self { self.set_entry_type(val); self } #[deprecated = "Use `set_epoch()` instead."] pub fn epoch(&mut self, val: f64) -> &mut Self { self.set_epoch(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &str) -> &mut Self { self.set_origin(val); self } #[deprecated = "Use `set_start_time()` instead."] pub fn start_time(&mut self, val: f64) -> &mut Self { self.set_start_time(val); self } } impl Default for PerformanceEntryEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PerformanceEntryFilterOptions.rs000064400000000000000000000065751046102023000231340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "entryType")] pub fn get_entry_type(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>; #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, setter = "entryType")] pub fn set_entry_type(this: &PerformanceEntryFilterOptions, val: &str); #[doc = "Get the `initiatorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "initiatorType")] pub fn get_initiator_type( this: &PerformanceEntryFilterOptions, ) -> Option<::alloc::string::String>; #[doc = "Change the `initiatorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, setter = "initiatorType")] pub fn set_initiator_type(this: &PerformanceEntryFilterOptions, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PerformanceEntryFilterOptions, val: &str); } 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 } #[deprecated = "Use `set_entry_type()` instead."] pub fn entry_type(&mut self, val: &str) -> &mut Self { self.set_entry_type(val); self } #[deprecated = "Use `set_initiator_type()` instead."] pub fn initiator_type(&mut self, val: &str) -> &mut Self { self.set_initiator_type(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for PerformanceEntryFilterOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PerformanceMark.rs000064400000000000000000000011551046102023000201700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceMeasure.rs000064400000000000000000000011771046102023000207030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceNavigation.rs000064400000000000000000000057251046102023000214040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceNavigationTiming.rs000064400000000000000000000147751046102023000225610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceObserver.rs000064400000000000000000000050561046102023000210710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceObserverEntryList.rs000064400000000000000000000067311046102023000227500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PerformanceObserverInit.rs000064400000000000000000000047301046102023000217130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `buffered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] #[wasm_bindgen(method, getter = "buffered")] pub fn get_buffered(this: &PerformanceObserverInit) -> Option; #[doc = "Change the `buffered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] #[wasm_bindgen(method, setter = "buffered")] pub fn set_buffered(this: &PerformanceObserverInit, val: bool); #[doc = "Get the `entryTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] #[wasm_bindgen(method, getter = "entryTypes")] pub fn get_entry_types(this: &PerformanceObserverInit) -> ::js_sys::Array; #[doc = "Change the `entryTypes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] #[wasm_bindgen(method, setter = "entryTypes")] pub fn set_entry_types(this: &PerformanceObserverInit, val: &::wasm_bindgen::JsValue); } 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.set_entry_types(entry_types); ret } #[deprecated = "Use `set_buffered()` instead."] pub fn buffered(&mut self, val: bool) -> &mut Self { self.set_buffered(val); self } #[deprecated = "Use `set_entry_types()` instead."] pub fn entry_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_entry_types(val); self } } web-sys-0.3.81/src/features/gen_PerformanceResourceTiming.rs000064400000000000000000000245571046102023000222500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PerformanceServerTiming.rs000064400000000000000000000050721046102023000217160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PerformanceTiming.rs000064400000000000000000000303101046102023000205200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PeriodicWave.rs000064400000000000000000000033731046102023000175010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PeriodicWaveConstraints.rs000064400000000000000000000034421046102023000217260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] #[wasm_bindgen(method, getter = "disableNormalization")] pub fn get_disable_normalization(this: &PeriodicWaveConstraints) -> Option; #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] #[wasm_bindgen(method, setter = "disableNormalization")] pub fn set_disable_normalization(this: &PeriodicWaveConstraints, val: bool); } 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 } #[deprecated = "Use `set_disable_normalization()` instead."] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { self.set_disable_normalization(val); self } } impl Default for PeriodicWaveConstraints { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PeriodicWaveOptions.rs000064400000000000000000000063401046102023000210520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, getter = "disableNormalization")] pub fn get_disable_normalization(this: &PeriodicWaveOptions) -> Option; #[doc = "Change the `disableNormalization` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, setter = "disableNormalization")] pub fn set_disable_normalization(this: &PeriodicWaveOptions, val: bool); #[doc = "Get the `imag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, getter = "imag")] pub fn get_imag(this: &PeriodicWaveOptions) -> Option<::js_sys::Array>; #[doc = "Change the `imag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, setter = "imag")] pub fn set_imag(this: &PeriodicWaveOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `real` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, getter = "real")] pub fn get_real(this: &PeriodicWaveOptions) -> Option<::js_sys::Array>; #[doc = "Change the `real` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] #[wasm_bindgen(method, setter = "real")] pub fn set_real(this: &PeriodicWaveOptions, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_disable_normalization()` instead."] pub fn disable_normalization(&mut self, val: bool) -> &mut Self { self.set_disable_normalization(val); self } #[deprecated = "Use `set_imag()` instead."] pub fn imag(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_imag(val); self } #[deprecated = "Use `set_real()` instead."] pub fn real(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_real(val); self } } impl Default for PeriodicWaveOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PermissionDescriptor.rs000064400000000000000000000034421046102023000213040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`, `PermissionName`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PermissionDescriptor) -> PermissionName; #[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`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PermissionDescriptor, val: PermissionName); } 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.set_name(name); ret } #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } } web-sys-0.3.81/src/features/gen_PermissionName.rs000064400000000000000000000006771046102023000200550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PermissionState.rs000064400000000000000000000006021046102023000202410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PermissionStatus.rs000064400000000000000000000041211046102023000204440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_Permissions.rs000064400000000000000000000030261046102023000174260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PictureInPictureEvent.rs000064400000000000000000000053431046102023000213570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = PictureInPictureEvent , typescript_type = "PictureInPictureEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PictureInPictureEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PictureInPictureEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PictureInPictureWindow")] # [wasm_bindgen (structural , method , getter , js_class = "PictureInPictureEvent" , js_name = pictureInPictureWindow)] #[doc = "Getter for the `pictureInPictureWindow` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`, `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn picture_in_picture_window(this: &PictureInPictureEvent) -> PictureInPictureWindow; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PictureInPictureEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PictureInPictureEvent")] #[doc = "The `new PictureInPictureEvent(..)` constructor, creating a new instance of `PictureInPictureEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureEvent/PictureInPictureEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEvent`, `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &PictureInPictureEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_PictureInPictureEventInit.rs000064400000000000000000000164571046102023000222130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PictureInPictureEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PictureInPictureEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PictureInPictureEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PictureInPictureEventInit) -> Option; #[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: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PictureInPictureEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PictureInPictureEventInit) -> Option; #[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: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PictureInPictureEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PictureInPictureEventInit) -> Option; #[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: `PictureInPictureEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PictureInPictureEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PictureInPictureWindow")] #[doc = "Get the `pictureInPictureWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`, `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "pictureInPictureWindow")] pub fn get_picture_in_picture_window( this: &PictureInPictureEventInit, ) -> PictureInPictureWindow; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PictureInPictureWindow")] #[doc = "Change the `pictureInPictureWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`, `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "pictureInPictureWindow")] pub fn set_picture_in_picture_window( this: &PictureInPictureEventInit, val: &PictureInPictureWindow, ); } #[cfg(web_sys_unstable_apis)] impl PictureInPictureEventInit { #[cfg(feature = "PictureInPictureWindow")] #[doc = "Construct a new `PictureInPictureEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureEventInit`, `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(picture_in_picture_window: &PictureInPictureWindow) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_picture_in_picture_window(picture_in_picture_window); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PictureInPictureWindow")] #[deprecated = "Use `set_picture_in_picture_window()` instead."] pub fn picture_in_picture_window(&mut self, val: &PictureInPictureWindow) -> &mut Self { self.set_picture_in_picture_window(val); self } } web-sys-0.3.81/src/features/gen_PictureInPictureWindow.rs000064400000000000000000000077001046102023000215440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = PictureInPictureWindow , typescript_type = "PictureInPictureWindow")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PictureInPictureWindow` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PictureInPictureWindow)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PictureInPictureWindow; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "PictureInPictureWindow" , 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/PictureInPictureWindow/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(this: &PictureInPictureWindow) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "PictureInPictureWindow" , 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/PictureInPictureWindow/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(this: &PictureInPictureWindow) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "PictureInPictureWindow" , 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/PictureInPictureWindow/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onresize(this: &PictureInPictureWindow) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "PictureInPictureWindow" , 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/PictureInPictureWindow/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PictureInPictureWindow`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onresize(this: &PictureInPictureWindow, value: Option<&::js_sys::Function>); } web-sys-0.3.81/src/features/gen_PlaneLayout.rs000064400000000000000000000075611046102023000173600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PlaneLayout)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PlaneLayout` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PlaneLayout; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `offset` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "offset")] pub fn get_offset(this: &PlaneLayout) -> u32; #[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: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "offset")] pub fn set_offset(this: &PlaneLayout, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stride` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stride")] pub fn get_stride(this: &PlaneLayout) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stride` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stride")] pub fn set_stride(this: &PlaneLayout, val: u32); } #[cfg(web_sys_unstable_apis)] impl PlaneLayout { #[doc = "Construct a new `PlaneLayout`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PlaneLayout`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(offset: u32, stride: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_offset(offset); ret.set_stride(stride); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_offset()` instead."] pub fn offset(&mut self, val: u32) -> &mut Self { self.set_offset(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stride()` instead."] pub fn stride(&mut self, val: u32) -> &mut Self { self.set_stride(val); self } } web-sys-0.3.81/src/features/gen_PlaybackDirection.rs000064400000000000000000000006721046102023000205060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_Plugin.rs000064400000000000000000000105441046102023000163540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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; } web-sys-0.3.81/src/features/gen_PluginArray.rs000064400000000000000000000070541046102023000173550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key]`."] #[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; } web-sys-0.3.81/src/features/gen_PluginCrashedEventInit.rs000064400000000000000000000213531046102023000214740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PluginCrashedEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PluginCrashedEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PluginCrashedEventInit, val: bool); #[doc = "Get the `browserDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "browserDumpID")] pub fn get_browser_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `browserDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "browserDumpID")] pub fn set_browser_dump_id(this: &PluginCrashedEventInit, val: Option<&str>); #[doc = "Get the `gmpPlugin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "gmpPlugin")] pub fn get_gmp_plugin(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `gmpPlugin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "gmpPlugin")] pub fn set_gmp_plugin(this: &PluginCrashedEventInit, val: bool); #[doc = "Get the `pluginDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginDumpID")] pub fn get_plugin_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "pluginDumpID")] pub fn set_plugin_dump_id(this: &PluginCrashedEventInit, val: &str); #[doc = "Get the `pluginFilename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginFilename")] pub fn get_plugin_filename(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginFilename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "pluginFilename")] pub fn set_plugin_filename(this: &PluginCrashedEventInit, val: Option<&str>); #[doc = "Get the `pluginID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginID")] pub fn get_plugin_id(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `pluginID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "pluginID")] pub fn set_plugin_id(this: &PluginCrashedEventInit, val: u32); #[doc = "Get the `pluginName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginName")] pub fn get_plugin_name(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "pluginName")] pub fn set_plugin_name(this: &PluginCrashedEventInit, val: &str); #[doc = "Get the `submittedCrashReport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "submittedCrashReport")] pub fn get_submitted_crash_report(this: &PluginCrashedEventInit) -> Option; #[doc = "Change the `submittedCrashReport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, setter = "submittedCrashReport")] pub fn set_submitted_crash_report(this: &PluginCrashedEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_browser_dump_id()` instead."] pub fn browser_dump_id(&mut self, val: Option<&str>) -> &mut Self { self.set_browser_dump_id(val); self } #[deprecated = "Use `set_gmp_plugin()` instead."] pub fn gmp_plugin(&mut self, val: bool) -> &mut Self { self.set_gmp_plugin(val); self } #[deprecated = "Use `set_plugin_dump_id()` instead."] pub fn plugin_dump_id(&mut self, val: &str) -> &mut Self { self.set_plugin_dump_id(val); self } #[deprecated = "Use `set_plugin_filename()` instead."] pub fn plugin_filename(&mut self, val: Option<&str>) -> &mut Self { self.set_plugin_filename(val); self } #[deprecated = "Use `set_plugin_id()` instead."] pub fn plugin_id(&mut self, val: u32) -> &mut Self { self.set_plugin_id(val); self } #[deprecated = "Use `set_plugin_name()` instead."] pub fn plugin_name(&mut self, val: &str) -> &mut Self { self.set_plugin_name(val); self } #[deprecated = "Use `set_submitted_crash_report()` instead."] pub fn submitted_crash_report(&mut self, val: bool) -> &mut Self { self.set_submitted_crash_report(val); self } } impl Default for PluginCrashedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PointerEvent.rs000064400000000000000000000150411046102023000175350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PointerEventInit.rs000064400000000000000000000720451046102023000203700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PointerEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PointerEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PointerEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PointerEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PointerEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PointerEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &PointerEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &PointerEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &PointerEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &PointerEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &PointerEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &PointerEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &PointerEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &PointerEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &PointerEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &PointerEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &PointerEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &PointerEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &PointerEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &PointerEventInit, val: bool); #[doc = "Get the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "button")] pub fn get_button(this: &PointerEventInit) -> Option; #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "button")] pub fn set_button(this: &PointerEventInit, val: i16); #[doc = "Get the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "buttons")] pub fn get_buttons(this: &PointerEventInit) -> Option; #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "buttons")] pub fn set_buttons(this: &PointerEventInit, val: u16); #[doc = "Get the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "clientX")] pub fn get_client_x(this: &PointerEventInit) -> Option; #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "clientX")] pub fn set_client_x(this: &PointerEventInit, val: i32); #[doc = "Get the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "clientY")] pub fn get_client_y(this: &PointerEventInit) -> Option; #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "clientY")] pub fn set_client_y(this: &PointerEventInit, val: i32); #[doc = "Get the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "movementX")] pub fn get_movement_x(this: &PointerEventInit) -> Option; #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "movementX")] pub fn set_movement_x(this: &PointerEventInit, val: i32); #[doc = "Get the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "movementY")] pub fn get_movement_y(this: &PointerEventInit) -> Option; #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "movementY")] pub fn set_movement_y(this: &PointerEventInit, val: i32); #[cfg(feature = "EventTarget")] #[doc = "Get the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"] #[wasm_bindgen(method, getter = "relatedTarget")] pub fn get_related_target(this: &PointerEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "relatedTarget")] pub fn set_related_target(this: &PointerEventInit, val: Option<&EventTarget>); #[doc = "Get the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "screenX")] pub fn get_screen_x(this: &PointerEventInit) -> Option; #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "screenX")] pub fn set_screen_x(this: &PointerEventInit, val: i32); #[doc = "Get the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "screenY")] pub fn get_screen_y(this: &PointerEventInit) -> Option; #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "screenY")] pub fn set_screen_y(this: &PointerEventInit, val: i32); #[doc = "Get the `coalescedEvents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "coalescedEvents")] pub fn get_coalesced_events(this: &PointerEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `coalescedEvents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "coalescedEvents")] pub fn set_coalesced_events(this: &PointerEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &PointerEventInit) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &PointerEventInit, val: i32); #[doc = "Get the `isPrimary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "isPrimary")] pub fn get_is_primary(this: &PointerEventInit) -> Option; #[doc = "Change the `isPrimary` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "isPrimary")] pub fn set_is_primary(this: &PointerEventInit, val: bool); #[doc = "Get the `pointerId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "pointerId")] pub fn get_pointer_id(this: &PointerEventInit) -> Option; #[doc = "Change the `pointerId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "pointerId")] pub fn set_pointer_id(this: &PointerEventInit, val: i32); #[doc = "Get the `pointerType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "pointerType")] pub fn get_pointer_type(this: &PointerEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pointerType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "pointerType")] pub fn set_pointer_type(this: &PointerEventInit, val: &str); #[doc = "Get the `pressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "pressure")] pub fn get_pressure(this: &PointerEventInit) -> Option; #[doc = "Change the `pressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "pressure")] pub fn set_pressure(this: &PointerEventInit, val: f32); #[doc = "Get the `tangentialPressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "tangentialPressure")] pub fn get_tangential_pressure(this: &PointerEventInit) -> Option; #[doc = "Change the `tangentialPressure` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "tangentialPressure")] pub fn set_tangential_pressure(this: &PointerEventInit, val: f32); #[doc = "Get the `tiltX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "tiltX")] pub fn get_tilt_x(this: &PointerEventInit) -> Option; #[doc = "Change the `tiltX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "tiltX")] pub fn set_tilt_x(this: &PointerEventInit, val: i32); #[doc = "Get the `tiltY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "tiltY")] pub fn get_tilt_y(this: &PointerEventInit) -> Option; #[doc = "Change the `tiltY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "tiltY")] pub fn set_tilt_y(this: &PointerEventInit, val: i32); #[doc = "Get the `twist` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "twist")] pub fn get_twist(this: &PointerEventInit) -> Option; #[doc = "Change the `twist` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "twist")] pub fn set_twist(this: &PointerEventInit, val: i32); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &PointerEventInit) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &PointerEventInit, val: i32); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_button()` instead."] pub fn button(&mut self, val: i16) -> &mut Self { self.set_button(val); self } #[deprecated = "Use `set_buttons()` instead."] pub fn buttons(&mut self, val: u16) -> &mut Self { self.set_buttons(val); self } #[deprecated = "Use `set_client_x()` instead."] pub fn client_x(&mut self, val: i32) -> &mut Self { self.set_client_x(val); self } #[deprecated = "Use `set_client_y()` instead."] pub fn client_y(&mut self, val: i32) -> &mut Self { self.set_client_y(val); self } #[deprecated = "Use `set_movement_x()` instead."] pub fn movement_x(&mut self, val: i32) -> &mut Self { self.set_movement_x(val); self } #[deprecated = "Use `set_movement_y()` instead."] pub fn movement_y(&mut self, val: i32) -> &mut Self { self.set_movement_y(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_related_target()` instead."] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { self.set_related_target(val); self } #[deprecated = "Use `set_screen_x()` instead."] pub fn screen_x(&mut self, val: i32) -> &mut Self { self.set_screen_x(val); self } #[deprecated = "Use `set_screen_y()` instead."] pub fn screen_y(&mut self, val: i32) -> &mut Self { self.set_screen_y(val); self } #[deprecated = "Use `set_coalesced_events()` instead."] pub fn coalesced_events(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_coalesced_events(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: i32) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_is_primary()` instead."] pub fn is_primary(&mut self, val: bool) -> &mut Self { self.set_is_primary(val); self } #[deprecated = "Use `set_pointer_id()` instead."] pub fn pointer_id(&mut self, val: i32) -> &mut Self { self.set_pointer_id(val); self } #[deprecated = "Use `set_pointer_type()` instead."] pub fn pointer_type(&mut self, val: &str) -> &mut Self { self.set_pointer_type(val); self } #[deprecated = "Use `set_pressure()` instead."] pub fn pressure(&mut self, val: f32) -> &mut Self { self.set_pressure(val); self } #[deprecated = "Use `set_tangential_pressure()` instead."] pub fn tangential_pressure(&mut self, val: f32) -> &mut Self { self.set_tangential_pressure(val); self } #[deprecated = "Use `set_tilt_x()` instead."] pub fn tilt_x(&mut self, val: i32) -> &mut Self { self.set_tilt_x(val); self } #[deprecated = "Use `set_tilt_y()` instead."] pub fn tilt_y(&mut self, val: i32) -> &mut Self { self.set_tilt_y(val); self } #[deprecated = "Use `set_twist()` instead."] pub fn twist(&mut self, val: i32) -> &mut Self { self.set_twist(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: i32) -> &mut Self { self.set_width(val); self } } impl Default for PointerEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PopStateEvent.rs000064400000000000000000000041441046102023000176560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PopStateEventInit.rs000064400000000000000000000074521046102023000205070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PopStateEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PopStateEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PopStateEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PopStateEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PopStateEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PopStateEventInit, val: bool); #[doc = "Get the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, getter = "state")] pub fn get_state(this: &PopStateEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] #[wasm_bindgen(method, setter = "state")] pub fn set_state(this: &PopStateEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_state()` instead."] pub fn state(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_state(val); self } } impl Default for PopStateEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PopupBlockedEvent.rs000064400000000000000000000065111046102023000205060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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<::alloc::string::String>; #[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; } web-sys-0.3.81/src/features/gen_PopupBlockedEventInit.rs000064400000000000000000000134231046102023000213320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PopupBlockedEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PopupBlockedEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PopupBlockedEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PopupBlockedEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PopupBlockedEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PopupBlockedEventInit, val: bool); #[doc = "Get the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "popupWindowFeatures")] pub fn get_popup_window_features( this: &PopupBlockedEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, setter = "popupWindowFeatures")] pub fn set_popup_window_features(this: &PopupBlockedEventInit, val: &str); #[doc = "Get the `popupWindowName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "popupWindowName")] pub fn get_popup_window_name(this: &PopupBlockedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `popupWindowName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, setter = "popupWindowName")] pub fn set_popup_window_name(this: &PopupBlockedEventInit, val: &str); #[cfg(feature = "Window")] #[doc = "Get the `requestingWindow` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "requestingWindow")] pub fn get_requesting_window(this: &PopupBlockedEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "requestingWindow")] pub fn set_requesting_window(this: &PopupBlockedEventInit, val: Option<&Window>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_popup_window_features()` instead."] pub fn popup_window_features(&mut self, val: &str) -> &mut Self { self.set_popup_window_features(val); self } #[deprecated = "Use `set_popup_window_name()` instead."] pub fn popup_window_name(&mut self, val: &str) -> &mut Self { self.set_popup_window_name(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_requesting_window()` instead."] pub fn requesting_window(&mut self, val: Option<&Window>) -> &mut Self { self.set_requesting_window(val); self } } impl Default for PopupBlockedEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Position.rs000064400000000000000000000027301046102023000167200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PositionAlignSetting.rs000064400000000000000000000006561046102023000212360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PositionError.rs000064400000000000000000000042231046102023000177310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PositionOptions.rs000064400000000000000000000061551046102023000203010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `enableHighAccuracy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, getter = "enableHighAccuracy")] pub fn get_enable_high_accuracy(this: &PositionOptions) -> Option; #[doc = "Change the `enableHighAccuracy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, setter = "enableHighAccuracy")] pub fn set_enable_high_accuracy(this: &PositionOptions, val: bool); #[doc = "Get the `maximumAge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, getter = "maximumAge")] pub fn get_maximum_age(this: &PositionOptions) -> Option; #[doc = "Change the `maximumAge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, setter = "maximumAge")] pub fn set_maximum_age(this: &PositionOptions, val: u32); #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &PositionOptions) -> Option; #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &PositionOptions, val: u32); } 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 } #[deprecated = "Use `set_enable_high_accuracy()` instead."] pub fn enable_high_accuracy(&mut self, val: bool) -> &mut Self { self.set_enable_high_accuracy(val); self } #[deprecated = "Use `set_maximum_age()` instead."] pub fn maximum_age(&mut self, val: u32) -> &mut Self { self.set_maximum_age(val); self } #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } } impl Default for PositionOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PremultiplyAlpha.rs000064400000000000000000000006131046102023000204060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PremultiplyAlpha` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PremultiplyAlpha`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PremultiplyAlpha { None = "none", Premultiply = "premultiply", Default = "default", } web-sys-0.3.81/src/features/gen_Presentation.rs000064400000000000000000000043161046102023000175710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PresentationAvailability.rs000064400000000000000000000042331046102023000221220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_PresentationConnection.rs000064400000000000000000000266331046102023000216170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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 = 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_js_u8_array( this: &PresentationConnection, data: &::js_sys::Uint8Array, ) -> 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>; } web-sys-0.3.81/src/features/gen_PresentationConnectionAvailableEvent.rs000064400000000000000000000042361046102023000244150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PresentationConnectionAvailableEventInit.rs000064400000000000000000000112041046102023000252320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PresentationConnectionAvailableEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PresentationConnectionAvailableEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PresentationConnectionAvailableEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PresentationConnectionAvailableEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PresentationConnectionAvailableEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PresentationConnectionAvailableEventInit, val: bool); #[cfg(feature = "PresentationConnection")] #[doc = "Get the `connection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEventInit`*"] #[wasm_bindgen(method, getter = "connection")] pub fn get_connection( this: &PresentationConnectionAvailableEventInit, ) -> PresentationConnection; #[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`*"] #[wasm_bindgen(method, setter = "connection")] pub fn set_connection( this: &PresentationConnectionAvailableEventInit, val: &PresentationConnection, ); } 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.set_connection(connection); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "PresentationConnection")] #[deprecated = "Use `set_connection()` instead."] pub fn connection(&mut self, val: &PresentationConnection) -> &mut Self { self.set_connection(val); self } } web-sys-0.3.81/src/features/gen_PresentationConnectionBinaryType.rs000064400000000000000000000006421046102023000236160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PresentationConnectionCloseEvent.rs000064400000000000000000000052021046102023000235740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_PresentationConnectionCloseEventInit.rs000064400000000000000000000126761046102023000244350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PresentationConnectionCloseEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PresentationConnectionCloseEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PresentationConnectionCloseEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PresentationConnectionCloseEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PresentationConnectionCloseEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PresentationConnectionCloseEventInit, val: bool); #[doc = "Get the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, getter = "message")] pub fn get_message( this: &PresentationConnectionCloseEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, setter = "message")] pub fn set_message(this: &PresentationConnectionCloseEventInit, val: &str); #[cfg(feature = "PresentationConnectionClosedReason")] #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`, `PresentationConnectionClosedReason`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason( this: &PresentationConnectionCloseEventInit, ) -> PresentationConnectionClosedReason; #[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`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason( this: &PresentationConnectionCloseEventInit, val: PresentationConnectionClosedReason, ); } 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.set_reason(reason); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_message()` instead."] pub fn message(&mut self, val: &str) -> &mut Self { self.set_message(val); self } #[cfg(feature = "PresentationConnectionClosedReason")] #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: PresentationConnectionClosedReason) -> &mut Self { self.set_reason(val); self } } web-sys-0.3.81/src/features/gen_PresentationConnectionClosedReason.rs000064400000000000000000000006731046102023000241150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PresentationConnectionList.rs000064400000000000000000000045411046102023000224450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>, ); } web-sys-0.3.81/src/features/gen_PresentationConnectionState.rs000064400000000000000000000007211046102023000226060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PresentationReceiver.rs000064400000000000000000000022161046102023000212530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PresentationRequest.rs000064400000000000000000000104051046102023000211360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PresentationStyle.rs000064400000000000000000000006301046102023000206050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `PresentationStyle` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationStyle`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PresentationStyle { Unspecified = "unspecified", Inline = "inline", Attachment = "attachment", } web-sys-0.3.81/src/features/gen_ProcessingInstruction.rs000064400000000000000000000032771046102023000215010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_ProfileTimelineLayerRect.rs000064400000000000000000000073721046102023000220250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &ProfileTimelineLayerRect) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &ProfileTimelineLayerRect, val: i32); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &ProfileTimelineLayerRect) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &ProfileTimelineLayerRect, val: i32); #[doc = "Get the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, getter = "x")] pub fn get_x(this: &ProfileTimelineLayerRect) -> Option; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, setter = "x")] pub fn set_x(this: &ProfileTimelineLayerRect, val: i32); #[doc = "Get the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, getter = "y")] pub fn get_y(this: &ProfileTimelineLayerRect) -> Option; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] #[wasm_bindgen(method, setter = "y")] pub fn set_y(this: &ProfileTimelineLayerRect, val: i32); } 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 } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: i32) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: i32) -> &mut Self { self.set_width(val); self } #[deprecated = "Use `set_x()` instead."] pub fn x(&mut self, val: i32) -> &mut Self { self.set_x(val); self } #[deprecated = "Use `set_y()` instead."] pub fn y(&mut self, val: i32) -> &mut Self { self.set_y(val); self } } impl Default for ProfileTimelineLayerRect { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ProfileTimelineMarker.rs000064400000000000000000000323031046102023000213440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `causeName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "causeName")] pub fn get_cause_name(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `causeName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "causeName")] pub fn set_cause_name(this: &ProfileTimelineMarker, val: &str); #[doc = "Get the `end` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "end")] pub fn get_end(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `end` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "end")] pub fn set_end(this: &ProfileTimelineMarker, val: f64); #[doc = "Get the `endStack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "endStack")] pub fn get_end_stack(this: &ProfileTimelineMarker) -> Option<::js_sys::Object>; #[doc = "Change the `endStack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "endStack")] pub fn set_end_stack(this: &ProfileTimelineMarker, val: Option<&::js_sys::Object>); #[doc = "Get the `eventPhase` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "eventPhase")] pub fn get_event_phase(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `eventPhase` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "eventPhase")] pub fn set_event_phase(this: &ProfileTimelineMarker, val: u16); #[doc = "Get the `isAnimationOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "isAnimationOnly")] pub fn get_is_animation_only(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `isAnimationOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "isAnimationOnly")] pub fn set_is_animation_only(this: &ProfileTimelineMarker, val: bool); #[doc = "Get the `isOffMainThread` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "isOffMainThread")] pub fn get_is_off_main_thread(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `isOffMainThread` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "isOffMainThread")] pub fn set_is_off_main_thread(this: &ProfileTimelineMarker, val: bool); #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[doc = "Get the `messagePortOperation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineMessagePortOperationType`*"] #[wasm_bindgen(method, getter = "messagePortOperation")] pub fn get_message_port_operation( this: &ProfileTimelineMarker, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "messagePortOperation")] pub fn set_message_port_operation( this: &ProfileTimelineMarker, val: ProfileTimelineMessagePortOperationType, ); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &ProfileTimelineMarker, val: &str); #[doc = "Get the `processType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "processType")] pub fn get_process_type(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `processType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "processType")] pub fn set_process_type(this: &ProfileTimelineMarker, val: u16); #[doc = "Get the `rectangles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "rectangles")] pub fn get_rectangles(this: &ProfileTimelineMarker) -> Option<::js_sys::Array>; #[doc = "Change the `rectangles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "rectangles")] pub fn set_rectangles(this: &ProfileTimelineMarker, val: &::wasm_bindgen::JsValue); #[doc = "Get the `stack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "stack")] pub fn get_stack(this: &ProfileTimelineMarker) -> Option<::js_sys::Object>; #[doc = "Change the `stack` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "stack")] pub fn set_stack(this: &ProfileTimelineMarker, val: Option<&::js_sys::Object>); #[doc = "Get the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "start")] pub fn get_start(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "start")] pub fn set_start(this: &ProfileTimelineMarker, val: f64); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &ProfileTimelineMarker, val: &str); #[doc = "Get the `unixTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "unixTime")] pub fn get_unix_time(this: &ProfileTimelineMarker) -> Option; #[doc = "Change the `unixTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, setter = "unixTime")] pub fn set_unix_time(this: &ProfileTimelineMarker, val: f64); #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[doc = "Get the `workerOperation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineWorkerOperationType`*"] #[wasm_bindgen(method, getter = "workerOperation")] pub fn get_worker_operation( this: &ProfileTimelineMarker, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "workerOperation")] pub fn set_worker_operation( this: &ProfileTimelineMarker, val: ProfileTimelineWorkerOperationType, ); } 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 } #[deprecated = "Use `set_cause_name()` instead."] pub fn cause_name(&mut self, val: &str) -> &mut Self { self.set_cause_name(val); self } #[deprecated = "Use `set_end()` instead."] pub fn end(&mut self, val: f64) -> &mut Self { self.set_end(val); self } #[deprecated = "Use `set_end_stack()` instead."] pub fn end_stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_end_stack(val); self } #[deprecated = "Use `set_event_phase()` instead."] pub fn event_phase(&mut self, val: u16) -> &mut Self { self.set_event_phase(val); self } #[deprecated = "Use `set_is_animation_only()` instead."] pub fn is_animation_only(&mut self, val: bool) -> &mut Self { self.set_is_animation_only(val); self } #[deprecated = "Use `set_is_off_main_thread()` instead."] pub fn is_off_main_thread(&mut self, val: bool) -> &mut Self { self.set_is_off_main_thread(val); self } #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[deprecated = "Use `set_message_port_operation()` instead."] pub fn message_port_operation( &mut self, val: ProfileTimelineMessagePortOperationType, ) -> &mut Self { self.set_message_port_operation(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_process_type()` instead."] pub fn process_type(&mut self, val: u16) -> &mut Self { self.set_process_type(val); self } #[deprecated = "Use `set_rectangles()` instead."] pub fn rectangles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_rectangles(val); self } #[deprecated = "Use `set_stack()` instead."] pub fn stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_stack(val); self } #[deprecated = "Use `set_start()` instead."] pub fn start(&mut self, val: f64) -> &mut Self { self.set_start(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_unix_time()` instead."] pub fn unix_time(&mut self, val: f64) -> &mut Self { self.set_unix_time(val); self } #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[deprecated = "Use `set_worker_operation()` instead."] pub fn worker_operation(&mut self, val: ProfileTimelineWorkerOperationType) -> &mut Self { self.set_worker_operation(val); self } } impl Default for ProfileTimelineMarker { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ProfileTimelineMessagePortOperationType.rs000064400000000000000000000007211046102023000250760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ProfileTimelineStackFrame.rs000064400000000000000000000147011046102023000221450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "asyncCause")] pub fn get_async_cause(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>; #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "asyncCause")] pub fn set_async_cause(this: &ProfileTimelineStackFrame, val: &str); #[doc = "Get the `asyncParent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "asyncParent")] pub fn get_async_parent(this: &ProfileTimelineStackFrame) -> Option<::js_sys::Object>; #[doc = "Change the `asyncParent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "asyncParent")] pub fn set_async_parent(this: &ProfileTimelineStackFrame, val: Option<&::js_sys::Object>); #[doc = "Get the `column` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "column")] pub fn get_column(this: &ProfileTimelineStackFrame) -> Option; #[doc = "Change the `column` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "column")] pub fn set_column(this: &ProfileTimelineStackFrame, val: i32); #[doc = "Get the `functionDisplayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "functionDisplayName")] pub fn get_function_display_name( this: &ProfileTimelineStackFrame, ) -> Option<::alloc::string::String>; #[doc = "Change the `functionDisplayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "functionDisplayName")] pub fn set_function_display_name(this: &ProfileTimelineStackFrame, val: &str); #[doc = "Get the `line` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "line")] pub fn get_line(this: &ProfileTimelineStackFrame) -> Option; #[doc = "Change the `line` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "line")] pub fn set_line(this: &ProfileTimelineStackFrame, val: i32); #[doc = "Get the `parent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "parent")] pub fn get_parent(this: &ProfileTimelineStackFrame) -> Option<::js_sys::Object>; #[doc = "Change the `parent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "parent")] pub fn set_parent(this: &ProfileTimelineStackFrame, val: Option<&::js_sys::Object>); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &ProfileTimelineStackFrame, val: &str); } 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 } #[deprecated = "Use `set_async_cause()` instead."] pub fn async_cause(&mut self, val: &str) -> &mut Self { self.set_async_cause(val); self } #[deprecated = "Use `set_async_parent()` instead."] pub fn async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_async_parent(val); self } #[deprecated = "Use `set_column()` instead."] pub fn column(&mut self, val: i32) -> &mut Self { self.set_column(val); self } #[deprecated = "Use `set_function_display_name()` instead."] pub fn function_display_name(&mut self, val: &str) -> &mut Self { self.set_function_display_name(val); self } #[deprecated = "Use `set_line()` instead."] pub fn line(&mut self, val: i32) -> &mut Self { self.set_line(val); self } #[deprecated = "Use `set_parent()` instead."] pub fn parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_parent(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: &str) -> &mut Self { self.set_source(val); self } } impl Default for ProfileTimelineStackFrame { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ProfileTimelineWorkerOperationType.rs000064400000000000000000000011641046102023000241200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ProgressEvent.rs000064400000000000000000000057621046102023000177320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ProgressEventInit.rs000064400000000000000000000123541046102023000205510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ProgressEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ProgressEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ProgressEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ProgressEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ProgressEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ProgressEventInit, val: bool); #[doc = "Get the `lengthComputable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "lengthComputable")] pub fn get_length_computable(this: &ProgressEventInit) -> Option; #[doc = "Change the `lengthComputable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "lengthComputable")] pub fn set_length_computable(this: &ProgressEventInit, val: bool); #[doc = "Get the `loaded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "loaded")] pub fn get_loaded(this: &ProgressEventInit) -> Option; #[doc = "Change the `loaded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "loaded")] pub fn set_loaded(this: &ProgressEventInit, val: f64); #[doc = "Get the `total` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, getter = "total")] pub fn get_total(this: &ProgressEventInit) -> Option; #[doc = "Change the `total` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] #[wasm_bindgen(method, setter = "total")] pub fn set_total(this: &ProgressEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_length_computable()` instead."] pub fn length_computable(&mut self, val: bool) -> &mut Self { self.set_length_computable(val); self } #[deprecated = "Use `set_loaded()` instead."] pub fn loaded(&mut self, val: f64) -> &mut Self { self.set_loaded(val); self } #[deprecated = "Use `set_total()` instead."] pub fn total(&mut self, val: f64) -> &mut Self { self.set_total(val); self } } impl Default for ProgressEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PromiseNativeHandler.rs000064400000000000000000000012111046102023000211700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PromiseRejectionEvent.rs000064400000000000000000000044101046102023000213740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PromiseRejectionEventInit.rs000064400000000000000000000113441046102023000222240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PromiseRejectionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PromiseRejectionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PromiseRejectionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PromiseRejectionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PromiseRejectionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PromiseRejectionEventInit, val: bool); #[doc = "Get the `promise` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, getter = "promise")] pub fn get_promise(this: &PromiseRejectionEventInit) -> ::js_sys::Promise; #[doc = "Change the `promise` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, setter = "promise")] pub fn set_promise(this: &PromiseRejectionEventInit, val: &::js_sys::Promise); #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &PromiseRejectionEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &PromiseRejectionEventInit, val: &::wasm_bindgen::JsValue); } 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.set_promise(promise); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_promise()` instead."] pub fn promise(&mut self, val: &::js_sys::Promise) -> &mut Self { self.set_promise(val); self } #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_reason(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredential.rs000064400000000000000000000205351046102023000210010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "PublicKeyCredential" , js_name = authenticatorAttachment)] #[doc = "Getter for the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/authenticatorAttachment)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn authenticator_attachment(this: &PublicKeyCredential) -> Option<::alloc::string::String>; #[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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isConditionalMediationAvailable)] #[doc = "The `isConditionalMediationAvailable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_conditional_mediation_available() -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isPasskeyPlatformAuthenticatorAvailable)] #[doc = "The `isPasskeyPlatformAuthenticatorAvailable()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isPasskeyPlatformAuthenticatorAvailable_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_passkey_platform_authenticator_available() -> ::js_sys::Promise; # [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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] pub fn is_user_verifying_platform_authenticator_available() -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "PublicKeyCredentialCreationOptions", feature = "PublicKeyCredentialCreationOptionsJson", ))] # [wasm_bindgen (catch , static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = parseCreationOptionsFromJSON)] #[doc = "The `parseCreationOptionsFromJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`, `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn parse_creation_options_from_json( options: &PublicKeyCredentialCreationOptionsJson, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "PublicKeyCredentialRequestOptions", feature = "PublicKeyCredentialRequestOptionsJson", ))] # [wasm_bindgen (catch , static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = parseRequestOptionsFromJSON)] #[doc = "The `parseRequestOptionsFromJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`, `PublicKeyCredentialRequestOptions`, `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn parse_request_options_from_json( options: &PublicKeyCredentialRequestOptionsJson, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "PublicKeyCredential" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn to_json(this: &PublicKeyCredential) -> Result<::wasm_bindgen::JsValue, JsValue>; } web-sys-0.3.81/src/features/gen_PublicKeyCredentialCreationOptions.rs000064400000000000000000000327741046102023000240520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "AttestationConveyancePreference")] #[doc = "Get the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`, `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "attestation")] pub fn get_attestation( this: &PublicKeyCredentialCreationOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "attestation")] pub fn set_attestation( this: &PublicKeyCredentialCreationOptions, val: AttestationConveyancePreference, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationFormats")] pub fn get_attestation_formats( this: &PublicKeyCredentialCreationOptions, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationFormats")] pub fn set_attestation_formats( this: &PublicKeyCredentialCreationOptions, val: &::wasm_bindgen::JsValue, ); #[cfg(feature = "AuthenticatorSelectionCriteria")] #[doc = "Get the `authenticatorSelection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "authenticatorSelection")] pub fn get_authenticator_selection( this: &PublicKeyCredentialCreationOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "authenticatorSelection")] pub fn set_authenticator_selection( this: &PublicKeyCredentialCreationOptions, val: &AuthenticatorSelectionCriteria, ); #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &PublicKeyCredentialCreationOptions) -> ::js_sys::Object; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &PublicKeyCredentialCreationOptions, val: &::js_sys::Object); #[doc = "Get the `excludeCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "excludeCredentials")] pub fn get_exclude_credentials( this: &PublicKeyCredentialCreationOptions, ) -> Option<::js_sys::Array>; #[doc = "Change the `excludeCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, setter = "excludeCredentials")] pub fn set_exclude_credentials( this: &PublicKeyCredentialCreationOptions, val: &::wasm_bindgen::JsValue, ); #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Get the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "extensions")] pub fn get_extensions( this: &PublicKeyCredentialCreationOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "extensions")] pub fn set_extensions( this: &PublicKeyCredentialCreationOptions, val: &AuthenticationExtensionsClientInputs, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hints")] pub fn get_hints(this: &PublicKeyCredentialCreationOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hints")] pub fn set_hints(this: &PublicKeyCredentialCreationOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `pubKeyCredParams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "pubKeyCredParams")] pub fn get_pub_key_cred_params(this: &PublicKeyCredentialCreationOptions) -> ::js_sys::Array; #[doc = "Change the `pubKeyCredParams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, setter = "pubKeyCredParams")] pub fn set_pub_key_cred_params( this: &PublicKeyCredentialCreationOptions, val: &::wasm_bindgen::JsValue, ); #[cfg(feature = "PublicKeyCredentialRpEntity")] #[doc = "Get the `rp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, getter = "rp")] pub fn get_rp(this: &PublicKeyCredentialCreationOptions) -> PublicKeyCredentialRpEntity; #[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`*"] #[wasm_bindgen(method, setter = "rp")] pub fn set_rp(this: &PublicKeyCredentialCreationOptions, val: &PublicKeyCredentialRpEntity); #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &PublicKeyCredentialCreationOptions) -> Option; #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &PublicKeyCredentialCreationOptions, val: u32); #[cfg(feature = "PublicKeyCredentialUserEntity")] #[doc = "Get the `user` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "user")] pub fn get_user(this: &PublicKeyCredentialCreationOptions) -> PublicKeyCredentialUserEntity; #[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`*"] #[wasm_bindgen(method, setter = "user")] pub fn set_user(this: &PublicKeyCredentialCreationOptions, val: &PublicKeyCredentialUserEntity); } 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.set_challenge(challenge); ret.set_pub_key_cred_params(pub_key_cred_params); ret.set_rp(rp); ret.set_user(user); ret } #[cfg(feature = "AttestationConveyancePreference")] #[deprecated = "Use `set_attestation()` instead."] pub fn attestation(&mut self, val: AttestationConveyancePreference) -> &mut Self { self.set_attestation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_formats()` instead."] pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attestation_formats(val); self } #[cfg(feature = "AuthenticatorSelectionCriteria")] #[deprecated = "Use `set_authenticator_selection()` instead."] pub fn authenticator_selection(&mut self, val: &AuthenticatorSelectionCriteria) -> &mut Self { self.set_authenticator_selection(val); self } #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_challenge(val); self } #[deprecated = "Use `set_exclude_credentials()` instead."] pub fn exclude_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_exclude_credentials(val); self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[deprecated = "Use `set_extensions()` instead."] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { self.set_extensions(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_hints()` instead."] pub fn hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hints(val); self } #[deprecated = "Use `set_pub_key_cred_params()` instead."] pub fn pub_key_cred_params(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_pub_key_cred_params(val); self } #[cfg(feature = "PublicKeyCredentialRpEntity")] #[deprecated = "Use `set_rp()` instead."] pub fn rp(&mut self, val: &PublicKeyCredentialRpEntity) -> &mut Self { self.set_rp(val); self } #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } #[cfg(feature = "PublicKeyCredentialUserEntity")] #[deprecated = "Use `set_user()` instead."] pub fn user(&mut self, val: &PublicKeyCredentialUserEntity) -> &mut Self { self.set_user(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialCreationOptionsJson.rs000064400000000000000000000463101046102023000246730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialCreationOptionsJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialCreationOptionsJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PublicKeyCredentialCreationOptionsJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] pub fn get_attestation( this: &PublicKeyCredentialCreationOptionsJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestation")] pub fn set_attestation(this: &PublicKeyCredentialCreationOptionsJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationFormats")] pub fn get_attestation_formats( this: &PublicKeyCredentialCreationOptionsJson, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationFormats")] pub fn set_attestation_formats( this: &PublicKeyCredentialCreationOptionsJson, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorSelectionCriteria")] #[doc = "Get the `authenticatorSelection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorSelection")] pub fn get_authenticator_selection( this: &PublicKeyCredentialCreationOptionsJson, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorSelectionCriteria")] #[doc = "Change the `authenticatorSelection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "authenticatorSelection")] pub fn set_authenticator_selection( this: &PublicKeyCredentialCreationOptionsJson, val: &AuthenticatorSelectionCriteria, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &PublicKeyCredentialCreationOptionsJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &PublicKeyCredentialCreationOptionsJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `excludeCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "excludeCredentials")] pub fn get_exclude_credentials( this: &PublicKeyCredentialCreationOptionsJson, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `excludeCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "excludeCredentials")] pub fn set_exclude_credentials( this: &PublicKeyCredentialCreationOptionsJson, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[doc = "Get the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`, `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "extensions")] pub fn get_extensions( this: &PublicKeyCredentialCreationOptionsJson, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[doc = "Change the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`, `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "extensions")] pub fn set_extensions( this: &PublicKeyCredentialCreationOptionsJson, val: &AuthenticationExtensionsClientInputsJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hints")] pub fn get_hints(this: &PublicKeyCredentialCreationOptionsJson) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hints")] pub fn set_hints(this: &PublicKeyCredentialCreationOptionsJson, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `pubKeyCredParams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "pubKeyCredParams")] pub fn get_pub_key_cred_params( this: &PublicKeyCredentialCreationOptionsJson, ) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `pubKeyCredParams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "pubKeyCredParams")] pub fn set_pub_key_cred_params( this: &PublicKeyCredentialCreationOptionsJson, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialRpEntity")] #[doc = "Get the `rp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`, `PublicKeyCredentialRpEntity`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rp")] pub fn get_rp(this: &PublicKeyCredentialCreationOptionsJson) -> PublicKeyCredentialRpEntity; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialRpEntity")] #[doc = "Change the `rp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`, `PublicKeyCredentialRpEntity`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rp")] pub fn set_rp(this: &PublicKeyCredentialCreationOptionsJson, val: &PublicKeyCredentialRpEntity); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &PublicKeyCredentialCreationOptionsJson) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &PublicKeyCredentialCreationOptionsJson, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialUserEntityJson")] #[doc = "Get the `user` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`, `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "user")] pub fn get_user( this: &PublicKeyCredentialCreationOptionsJson, ) -> PublicKeyCredentialUserEntityJson; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialUserEntityJson")] #[doc = "Change the `user` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`, `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "user")] pub fn set_user( this: &PublicKeyCredentialCreationOptionsJson, val: &PublicKeyCredentialUserEntityJson, ); } #[cfg(web_sys_unstable_apis)] impl PublicKeyCredentialCreationOptionsJson { #[cfg(all( feature = "PublicKeyCredentialRpEntity", feature = "PublicKeyCredentialUserEntityJson", ))] #[doc = "Construct a new `PublicKeyCredentialCreationOptionsJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptionsJson`, `PublicKeyCredentialRpEntity`, `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( challenge: &str, pub_key_cred_params: &::wasm_bindgen::JsValue, rp: &PublicKeyCredentialRpEntity, user: &PublicKeyCredentialUserEntityJson, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_challenge(challenge); ret.set_pub_key_cred_params(pub_key_cred_params); ret.set_rp(rp); ret.set_user(user); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation()` instead."] pub fn attestation(&mut self, val: &str) -> &mut Self { self.set_attestation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_formats()` instead."] pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attestation_formats(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorSelectionCriteria")] #[deprecated = "Use `set_authenticator_selection()` instead."] pub fn authenticator_selection(&mut self, val: &AuthenticatorSelectionCriteria) -> &mut Self { self.set_authenticator_selection(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &str) -> &mut Self { self.set_challenge(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_exclude_credentials()` instead."] pub fn exclude_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_exclude_credentials(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[deprecated = "Use `set_extensions()` instead."] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputsJson) -> &mut Self { self.set_extensions(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_hints()` instead."] pub fn hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hints(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_pub_key_cred_params()` instead."] pub fn pub_key_cred_params(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_pub_key_cred_params(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialRpEntity")] #[deprecated = "Use `set_rp()` instead."] pub fn rp(&mut self, val: &PublicKeyCredentialRpEntity) -> &mut Self { self.set_rp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PublicKeyCredentialUserEntityJson")] #[deprecated = "Use `set_user()` instead."] pub fn user(&mut self, val: &PublicKeyCredentialUserEntityJson) -> &mut Self { self.set_user(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialDescriptor.rs000064400000000000000000000071471046102023000230440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &PublicKeyCredentialDescriptor) -> ::js_sys::Object; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &PublicKeyCredentialDescriptor, val: &::js_sys::Object); #[doc = "Get the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] #[wasm_bindgen(method, getter = "transports")] pub fn get_transports(this: &PublicKeyCredentialDescriptor) -> Option<::js_sys::Array>; #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] #[wasm_bindgen(method, setter = "transports")] pub fn set_transports(this: &PublicKeyCredentialDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`, `PublicKeyCredentialType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &PublicKeyCredentialDescriptor) -> PublicKeyCredentialType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &PublicKeyCredentialDescriptor, val: PublicKeyCredentialType); } 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.set_id(id); ret.set_type(type_); ret } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_transports()` instead."] pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_transports(val); self } #[cfg(feature = "PublicKeyCredentialType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialDescriptorJson.rs000064400000000000000000000131271046102023000236710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialDescriptorJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialDescriptorJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PublicKeyCredentialDescriptorJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &PublicKeyCredentialDescriptorJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &PublicKeyCredentialDescriptorJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "transports")] pub fn get_transports(this: &PublicKeyCredentialDescriptorJson) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "transports")] pub fn set_transports(this: &PublicKeyCredentialDescriptorJson, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &PublicKeyCredentialDescriptorJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &PublicKeyCredentialDescriptorJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl PublicKeyCredentialDescriptorJson { #[doc = "Construct a new `PublicKeyCredentialDescriptorJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptorJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(id: &str, type_: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_id(id); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_transports()` instead."] pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_transports(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialEntity.rs000064400000000000000000000046051046102023000221760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] pub fn get_icon(this: &PublicKeyCredentialEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[deprecated] #[wasm_bindgen(method, setter = "icon")] pub fn set_icon(this: &PublicKeyCredentialEntity, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PublicKeyCredentialEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PublicKeyCredentialEntity, val: &str); } 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.set_name(name); ret } #[deprecated = "Use `set_icon()` instead."] pub fn icon(&mut self, val: &str) -> &mut Self { self.set_icon(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialHints.rs000064400000000000000000000012711046102023000220030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `PublicKeyCredentialHints` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialHints`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum PublicKeyCredentialHints { SecurityKey = "security-key", ClientDevice = "client-device", Hybrid = "hybrid", } web-sys-0.3.81/src/features/gen_PublicKeyCredentialParameters.rs000064400000000000000000000053471046102023000230310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] #[wasm_bindgen(method, getter = "alg")] pub fn get_alg(this: &PublicKeyCredentialParameters) -> i32; #[doc = "Change the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] #[wasm_bindgen(method, setter = "alg")] pub fn set_alg(this: &PublicKeyCredentialParameters, val: i32); #[cfg(feature = "PublicKeyCredentialType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`, `PublicKeyCredentialType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &PublicKeyCredentialParameters) -> PublicKeyCredentialType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &PublicKeyCredentialParameters, val: PublicKeyCredentialType); } 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.set_alg(alg); ret.set_type(type_); ret } #[deprecated = "Use `set_alg()` instead."] pub fn alg(&mut self, val: i32) -> &mut Self { self.set_alg(val); self } #[cfg(feature = "PublicKeyCredentialType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialRequestOptions.rs000064400000000000000000000257361046102023000237360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `allowCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "allowCredentials")] pub fn get_allow_credentials( this: &PublicKeyCredentialRequestOptions, ) -> Option<::js_sys::Array>; #[doc = "Change the `allowCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, setter = "allowCredentials")] pub fn set_allow_credentials( this: &PublicKeyCredentialRequestOptions, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] pub fn get_attestation( this: &PublicKeyCredentialRequestOptions, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestation")] pub fn set_attestation(this: &PublicKeyCredentialRequestOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationFormats")] pub fn get_attestation_formats( this: &PublicKeyCredentialRequestOptions, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationFormats")] pub fn set_attestation_formats( this: &PublicKeyCredentialRequestOptions, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &PublicKeyCredentialRequestOptions) -> ::js_sys::Object; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &PublicKeyCredentialRequestOptions, val: &::js_sys::Object); #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[doc = "Get the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "extensions")] pub fn get_extensions( this: &PublicKeyCredentialRequestOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "extensions")] pub fn set_extensions( this: &PublicKeyCredentialRequestOptions, val: &AuthenticationExtensionsClientInputs, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hints")] pub fn get_hints(this: &PublicKeyCredentialRequestOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hints")] pub fn set_hints(this: &PublicKeyCredentialRequestOptions, val: &::wasm_bindgen::JsValue); #[doc = "Get the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "rpId")] pub fn get_rp_id(this: &PublicKeyCredentialRequestOptions) -> Option<::alloc::string::String>; #[doc = "Change the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, setter = "rpId")] pub fn set_rp_id(this: &PublicKeyCredentialRequestOptions, val: &str); #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &PublicKeyCredentialRequestOptions) -> Option; #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &PublicKeyCredentialRequestOptions, val: u32); #[cfg(feature = "UserVerificationRequirement")] #[doc = "Get the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`, `UserVerificationRequirement`*"] #[wasm_bindgen(method, getter = "userVerification")] pub fn get_user_verification( this: &PublicKeyCredentialRequestOptions, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "userVerification")] pub fn set_user_verification( this: &PublicKeyCredentialRequestOptions, val: UserVerificationRequirement, ); } 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.set_challenge(challenge); ret } #[deprecated = "Use `set_allow_credentials()` instead."] pub fn allow_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_allow_credentials(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation()` instead."] pub fn attestation(&mut self, val: &str) -> &mut Self { self.set_attestation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_formats()` instead."] pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attestation_formats(val); self } #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_challenge(val); self } #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[deprecated = "Use `set_extensions()` instead."] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { self.set_extensions(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_hints()` instead."] pub fn hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hints(val); self } #[deprecated = "Use `set_rp_id()` instead."] pub fn rp_id(&mut self, val: &str) -> &mut Self { self.set_rp_id(val); self } #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } #[cfg(feature = "UserVerificationRequirement")] #[deprecated = "Use `set_user_verification()` instead."] pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { self.set_user_verification(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialRequestOptionsJson.rs000064400000000000000000000355561046102023000245710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialRequestOptionsJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialRequestOptionsJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PublicKeyCredentialRequestOptionsJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowCredentials")] pub fn get_allow_credentials( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowCredentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowCredentials")] pub fn set_allow_credentials( this: &PublicKeyCredentialRequestOptionsJson, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] pub fn get_attestation( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestation")] pub fn set_attestation(this: &PublicKeyCredentialRequestOptionsJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationFormats")] pub fn get_attestation_formats( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationFormats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "attestationFormats")] pub fn set_attestation_formats( this: &PublicKeyCredentialRequestOptionsJson, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &PublicKeyCredentialRequestOptionsJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &PublicKeyCredentialRequestOptionsJson, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[doc = "Get the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`, `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "extensions")] pub fn get_extensions( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[doc = "Change the `extensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputsJson`, `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "extensions")] pub fn set_extensions( this: &PublicKeyCredentialRequestOptionsJson, val: &AuthenticationExtensionsClientInputsJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hints")] pub fn get_hints(this: &PublicKeyCredentialRequestOptionsJson) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `hints` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hints")] pub fn set_hints(this: &PublicKeyCredentialRequestOptionsJson, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rpId")] pub fn get_rp_id( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rpId")] pub fn set_rp_id(this: &PublicKeyCredentialRequestOptionsJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timeout")] pub fn get_timeout(this: &PublicKeyCredentialRequestOptionsJson) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timeout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timeout")] pub fn set_timeout(this: &PublicKeyCredentialRequestOptionsJson, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "userVerification")] pub fn get_user_verification( this: &PublicKeyCredentialRequestOptionsJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `userVerification` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "userVerification")] pub fn set_user_verification(this: &PublicKeyCredentialRequestOptionsJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl PublicKeyCredentialRequestOptionsJson { #[doc = "Construct a new `PublicKeyCredentialRequestOptionsJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptionsJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(challenge: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_challenge(challenge); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_allow_credentials()` instead."] pub fn allow_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_allow_credentials(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation()` instead."] pub fn attestation(&mut self, val: &str) -> &mut Self { self.set_attestation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_attestation_formats()` instead."] pub fn attestation_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_attestation_formats(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &str) -> &mut Self { self.set_challenge(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[deprecated = "Use `set_extensions()` instead."] pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputsJson) -> &mut Self { self.set_extensions(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_hints()` instead."] pub fn hints(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hints(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rp_id()` instead."] pub fn rp_id(&mut self, val: &str) -> &mut Self { self.set_rp_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timeout()` instead."] pub fn timeout(&mut self, val: u32) -> &mut Self { self.set_timeout(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_user_verification()` instead."] pub fn user_verification(&mut self, val: &str) -> &mut Self { self.set_user_verification(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialRpEntity.rs000064400000000000000000000062101046102023000224720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] pub fn get_icon(this: &PublicKeyCredentialRpEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[deprecated] #[wasm_bindgen(method, setter = "icon")] pub fn set_icon(this: &PublicKeyCredentialRpEntity, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PublicKeyCredentialRpEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PublicKeyCredentialRpEntity, val: &str); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &PublicKeyCredentialRpEntity) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &PublicKeyCredentialRpEntity, val: &str); } 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.set_name(name); ret } #[deprecated = "Use `set_icon()` instead."] pub fn icon(&mut self, val: &str) -> &mut Self { self.set_icon(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialType.rs000064400000000000000000000005611046102023000216400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PublicKeyCredentialUserEntity.rs000064400000000000000000000101431046102023000230270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] pub fn get_icon(this: &PublicKeyCredentialUserEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[deprecated] #[wasm_bindgen(method, setter = "icon")] pub fn set_icon(this: &PublicKeyCredentialUserEntity, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PublicKeyCredentialUserEntity, val: &str); #[doc = "Get the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "displayName")] pub fn get_display_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String; #[doc = "Change the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, setter = "displayName")] pub fn set_display_name(this: &PublicKeyCredentialUserEntity, val: &str); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &PublicKeyCredentialUserEntity) -> ::js_sys::Object; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &PublicKeyCredentialUserEntity, val: &::js_sys::Object); } 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.set_name(name); ret.set_display_name(display_name); ret.set_id(id); ret } #[deprecated = "Use `set_icon()` instead."] pub fn icon(&mut self, val: &str) -> &mut Self { self.set_icon(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_display_name()` instead."] pub fn display_name(&mut self, val: &str) -> &mut Self { self.set_display_name(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_id(val); self } } web-sys-0.3.81/src/features/gen_PublicKeyCredentialUserEntityJson.rs000064400000000000000000000131721046102023000236660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialUserEntityJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `PublicKeyCredentialUserEntityJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type PublicKeyCredentialUserEntityJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayName")] pub fn get_display_name(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayName")] pub fn set_display_name(this: &PublicKeyCredentialUserEntityJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &PublicKeyCredentialUserEntityJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &PublicKeyCredentialUserEntityJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl PublicKeyCredentialUserEntityJson { #[doc = "Construct a new `PublicKeyCredentialUserEntityJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntityJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(display_name: &str, id: &str, name: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_display_name(display_name); ret.set_id(id); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_name()` instead."] pub fn display_name(&mut self, val: &str) -> &mut Self { self.set_display_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } web-sys-0.3.81/src/features/gen_PushEncryptionKeyName.rs000064400000000000000000000005671046102023000213660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PushEvent.rs000064400000000000000000000041131046102023000170320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_PushEventInit.rs000064400000000000000000000073011046102023000176600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &PushEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &PushEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &PushEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &PushEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &PushEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &PushEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &PushEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &PushEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } } impl Default for PushEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PushManager.rs000064400000000000000000000062421046102023000173300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PushMessageData.rs000064400000000000000000000046101046102023000201310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_PushPermissionState.rs000064400000000000000000000006161046102023000211060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_PushSubscription.rs000064400000000000000000000062671046102023000204510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_PushSubscriptionInit.rs000064400000000000000000000115111046102023000212610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `appServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "appServerKey")] pub fn get_app_server_key(this: &PushSubscriptionInit) -> Option<::js_sys::Object>; #[doc = "Change the `appServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, setter = "appServerKey")] pub fn set_app_server_key(this: &PushSubscriptionInit, val: Option<&::js_sys::Object>); #[doc = "Get the `authSecret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "authSecret")] pub fn get_auth_secret(this: &PushSubscriptionInit) -> Option<::js_sys::ArrayBuffer>; #[doc = "Change the `authSecret` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, setter = "authSecret")] pub fn set_auth_secret(this: &PushSubscriptionInit, val: Option<&::js_sys::ArrayBuffer>); #[doc = "Get the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "endpoint")] pub fn get_endpoint(this: &PushSubscriptionInit) -> ::alloc::string::String; #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, setter = "endpoint")] pub fn set_endpoint(this: &PushSubscriptionInit, val: &str); #[doc = "Get the `p256dhKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "p256dhKey")] pub fn get_p256dh_key(this: &PushSubscriptionInit) -> Option<::js_sys::ArrayBuffer>; #[doc = "Change the `p256dhKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, setter = "p256dhKey")] pub fn set_p256dh_key(this: &PushSubscriptionInit, val: Option<&::js_sys::ArrayBuffer>); #[doc = "Get the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "scope")] pub fn get_scope(this: &PushSubscriptionInit) -> ::alloc::string::String; #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, setter = "scope")] pub fn set_scope(this: &PushSubscriptionInit, val: &str); } 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.set_endpoint(endpoint); ret.set_scope(scope); ret } #[deprecated = "Use `set_app_server_key()` instead."] pub fn app_server_key(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_app_server_key(val); self } #[deprecated = "Use `set_auth_secret()` instead."] pub fn auth_secret(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { self.set_auth_secret(val); self } #[deprecated = "Use `set_endpoint()` instead."] pub fn endpoint(&mut self, val: &str) -> &mut Self { self.set_endpoint(val); self } #[deprecated = "Use `set_p256dh_key()` instead."] pub fn p256dh_key(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { self.set_p256dh_key(val); self } #[deprecated = "Use `set_scope()` instead."] pub fn scope(&mut self, val: &str) -> &mut Self { self.set_scope(val); self } } web-sys-0.3.81/src/features/gen_PushSubscriptionJson.rs000064400000000000000000000051211046102023000212670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] #[wasm_bindgen(method, getter = "endpoint")] pub fn get_endpoint(this: &PushSubscriptionJson) -> Option<::alloc::string::String>; #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] #[wasm_bindgen(method, setter = "endpoint")] pub fn set_endpoint(this: &PushSubscriptionJson, val: &str); #[cfg(feature = "PushSubscriptionKeys")] #[doc = "Get the `keys` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`, `PushSubscriptionKeys`*"] #[wasm_bindgen(method, getter = "keys")] pub fn get_keys(this: &PushSubscriptionJson) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "keys")] pub fn set_keys(this: &PushSubscriptionJson, val: &PushSubscriptionKeys); } 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 } #[deprecated = "Use `set_endpoint()` instead."] pub fn endpoint(&mut self, val: &str) -> &mut Self { self.set_endpoint(val); self } #[cfg(feature = "PushSubscriptionKeys")] #[deprecated = "Use `set_keys()` instead."] pub fn keys(&mut self, val: &PushSubscriptionKeys) -> &mut Self { self.set_keys(val); self } } impl Default for PushSubscriptionJson { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PushSubscriptionKeys.rs000064400000000000000000000045511046102023000212770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `auth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, getter = "auth")] pub fn get_auth(this: &PushSubscriptionKeys) -> Option<::alloc::string::String>; #[doc = "Change the `auth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, setter = "auth")] pub fn set_auth(this: &PushSubscriptionKeys, val: &str); #[doc = "Get the `p256dh` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, getter = "p256dh")] pub fn get_p256dh(this: &PushSubscriptionKeys) -> Option<::alloc::string::String>; #[doc = "Change the `p256dh` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, setter = "p256dh")] pub fn set_p256dh(this: &PushSubscriptionKeys, val: &str); } 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 } #[deprecated = "Use `set_auth()` instead."] pub fn auth(&mut self, val: &str) -> &mut Self { self.set_auth(val); self } #[deprecated = "Use `set_p256dh()` instead."] pub fn p256dh(&mut self, val: &str) -> &mut Self { self.set_p256dh(val); self } } impl Default for PushSubscriptionKeys { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_PushSubscriptionOptions.rs000064400000000000000000000023401046102023000220110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_PushSubscriptionOptionsInit.rs000064400000000000000000000054631046102023000226460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `applicationServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] #[wasm_bindgen(method, getter = "applicationServerKey")] pub fn get_application_server_key( this: &PushSubscriptionOptionsInit, ) -> ::wasm_bindgen::JsValue; #[doc = "Change the `applicationServerKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] #[wasm_bindgen(method, setter = "applicationServerKey")] pub fn set_application_server_key( this: &PushSubscriptionOptionsInit, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `userVisibleOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] #[wasm_bindgen(method, getter = "userVisibleOnly")] pub fn get_user_visible_only(this: &PushSubscriptionOptionsInit) -> Option; #[doc = "Change the `userVisibleOnly` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] #[wasm_bindgen(method, setter = "userVisibleOnly")] pub fn set_user_visible_only(this: &PushSubscriptionOptionsInit, val: bool); } 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 } #[deprecated = "Use `set_application_server_key()` instead."] pub fn application_server_key(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_application_server_key(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } #[deprecated = "Use `set_user_visible_only()` instead."] pub fn user_visible_only(&mut self, val: bool) -> &mut Self { self.set_user_visible_only(val); self } } impl Default for PushSubscriptionOptionsInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_QueryOptions.rs000064400000000000000000000054641046102023000176040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = QueryOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `QueryOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueryOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type QueryOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `postscriptNames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueryOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "postscriptNames")] pub fn get_postscript_names(this: &QueryOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `postscriptNames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueryOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "postscriptNames")] pub fn set_postscript_names(this: &QueryOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl QueryOptions { #[doc = "Construct a new `QueryOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueryOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_postscript_names()` instead."] pub fn postscript_names(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_postscript_names(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for QueryOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_QueuingStrategy.rs000064400000000000000000000045451046102023000202620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = QueuingStrategy)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `QueuingStrategy` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] pub type QueuingStrategy; #[doc = "Get the `highWaterMark` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[wasm_bindgen(method, getter = "highWaterMark")] pub fn get_high_water_mark(this: &QueuingStrategy) -> Option; #[doc = "Change the `highWaterMark` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[wasm_bindgen(method, setter = "highWaterMark")] pub fn set_high_water_mark(this: &QueuingStrategy, val: f64); #[doc = "Get the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &QueuingStrategy) -> Option<::js_sys::Function>; #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &QueuingStrategy, val: &::js_sys::Function); } impl QueuingStrategy { #[doc = "Construct a new `QueuingStrategy`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_high_water_mark()` instead."] pub fn high_water_mark(&mut self, val: f64) -> &mut Self { self.set_high_water_mark(val); self } #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_size(val); self } } impl Default for QueuingStrategy { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_QueuingStrategyInit.rs000064400000000000000000000032251046102023000211000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = QueuingStrategyInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `QueuingStrategyInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategyInit`*"] pub type QueuingStrategyInit; #[doc = "Get the `highWaterMark` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategyInit`*"] #[wasm_bindgen(method, getter = "highWaterMark")] pub fn get_high_water_mark(this: &QueuingStrategyInit) -> f64; #[doc = "Change the `highWaterMark` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategyInit`*"] #[wasm_bindgen(method, setter = "highWaterMark")] pub fn set_high_water_mark(this: &QueuingStrategyInit, val: f64); } impl QueuingStrategyInit { #[doc = "Construct a new `QueuingStrategyInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategyInit`*"] pub fn new(high_water_mark: f64) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_high_water_mark(high_water_mark); ret } #[deprecated = "Use `set_high_water_mark()` instead."] pub fn high_water_mark(&mut self, val: f64) -> &mut Self { self.set_high_water_mark(val); self } } web-sys-0.3.81/src/features/gen_RadioNodeList.rs000064400000000000000000000027471046102023000176240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_Range.rs000064400000000000000000000373321046102023000161560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_RcwnPerfStats.rs000064400000000000000000000057501046102023000176660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `avgLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, getter = "avgLong")] pub fn get_avg_long(this: &RcwnPerfStats) -> Option; #[doc = "Change the `avgLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, setter = "avgLong")] pub fn set_avg_long(this: &RcwnPerfStats, val: u32); #[doc = "Get the `avgShort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, getter = "avgShort")] pub fn get_avg_short(this: &RcwnPerfStats) -> Option; #[doc = "Change the `avgShort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, setter = "avgShort")] pub fn set_avg_short(this: &RcwnPerfStats, val: u32); #[doc = "Get the `stddevLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, getter = "stddevLong")] pub fn get_stddev_long(this: &RcwnPerfStats) -> Option; #[doc = "Change the `stddevLong` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] #[wasm_bindgen(method, setter = "stddevLong")] pub fn set_stddev_long(this: &RcwnPerfStats, val: u32); } 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 } #[deprecated = "Use `set_avg_long()` instead."] pub fn avg_long(&mut self, val: u32) -> &mut Self { self.set_avg_long(val); self } #[deprecated = "Use `set_avg_short()` instead."] pub fn avg_short(&mut self, val: u32) -> &mut Self { self.set_avg_short(val); self } #[deprecated = "Use `set_stddev_long()` instead."] pub fn stddev_long(&mut self, val: u32) -> &mut Self { self.set_stddev_long(val); self } } impl Default for RcwnPerfStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RcwnStatus.rs000064400000000000000000000127371046102023000172410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `cacheNotSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "cacheNotSlowCount")] pub fn get_cache_not_slow_count(this: &RcwnStatus) -> Option; #[doc = "Change the `cacheNotSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "cacheNotSlowCount")] pub fn set_cache_not_slow_count(this: &RcwnStatus, val: u32); #[doc = "Get the `cacheSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "cacheSlowCount")] pub fn get_cache_slow_count(this: &RcwnStatus) -> Option; #[doc = "Change the `cacheSlowCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "cacheSlowCount")] pub fn set_cache_slow_count(this: &RcwnStatus, val: u32); #[doc = "Get the `perfStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "perfStats")] pub fn get_perf_stats(this: &RcwnStatus) -> Option<::js_sys::Array>; #[doc = "Change the `perfStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "perfStats")] pub fn set_perf_stats(this: &RcwnStatus, val: &::wasm_bindgen::JsValue); #[doc = "Get the `rcwnCacheWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "rcwnCacheWonCount")] pub fn get_rcwn_cache_won_count(this: &RcwnStatus) -> Option; #[doc = "Change the `rcwnCacheWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "rcwnCacheWonCount")] pub fn set_rcwn_cache_won_count(this: &RcwnStatus, val: u32); #[doc = "Get the `rcwnNetWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "rcwnNetWonCount")] pub fn get_rcwn_net_won_count(this: &RcwnStatus) -> Option; #[doc = "Change the `rcwnNetWonCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "rcwnNetWonCount")] pub fn set_rcwn_net_won_count(this: &RcwnStatus, val: u32); #[doc = "Get the `totalNetworkRequests` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, getter = "totalNetworkRequests")] pub fn get_total_network_requests(this: &RcwnStatus) -> Option; #[doc = "Change the `totalNetworkRequests` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] #[wasm_bindgen(method, setter = "totalNetworkRequests")] pub fn set_total_network_requests(this: &RcwnStatus, val: u32); } 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 } #[deprecated = "Use `set_cache_not_slow_count()` instead."] pub fn cache_not_slow_count(&mut self, val: u32) -> &mut Self { self.set_cache_not_slow_count(val); self } #[deprecated = "Use `set_cache_slow_count()` instead."] pub fn cache_slow_count(&mut self, val: u32) -> &mut Self { self.set_cache_slow_count(val); self } #[deprecated = "Use `set_perf_stats()` instead."] pub fn perf_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_perf_stats(val); self } #[deprecated = "Use `set_rcwn_cache_won_count()` instead."] pub fn rcwn_cache_won_count(&mut self, val: u32) -> &mut Self { self.set_rcwn_cache_won_count(val); self } #[deprecated = "Use `set_rcwn_net_won_count()` instead."] pub fn rcwn_net_won_count(&mut self, val: u32) -> &mut Self { self.set_rcwn_net_won_count(val); self } #[deprecated = "Use `set_total_network_requests()` instead."] pub fn total_network_requests(&mut self, val: u32) -> &mut Self { self.set_total_network_requests(val); self } } impl Default for RcwnStatus { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ReadableByteStreamController.rs000064400000000000000000000115701046102023000226610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableByteStreamController , typescript_type = "ReadableByteStreamController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableByteStreamController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub type ReadableByteStreamController; #[cfg(feature = "ReadableStreamByobRequest")] # [wasm_bindgen (structural , method , getter , js_class = "ReadableByteStreamController" , js_name = byobRequest)] #[doc = "Getter for the `byobRequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/byobRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`, `ReadableStreamByobRequest`*"] pub fn byob_request(this: &ReadableByteStreamController) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "ReadableByteStreamController" , js_name = desiredSize)] #[doc = "Getter for the `desiredSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/desiredSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn desired_size(this: &ReadableByteStreamController) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "ReadableByteStreamController" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn close(this: &ReadableByteStreamController) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableByteStreamController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn enqueue_with_array_buffer_view( this: &ReadableByteStreamController, chunk: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableByteStreamController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn enqueue_with_u8_array( this: &ReadableByteStreamController, chunk: &mut [u8], ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableByteStreamController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn enqueue_with_js_u8_array( this: &ReadableByteStreamController, chunk: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "ReadableByteStreamController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn error(this: &ReadableByteStreamController); # [wasm_bindgen (method , structural , js_class = "ReadableByteStreamController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableByteStreamController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableByteStreamController`*"] pub fn error_with_e(this: &ReadableByteStreamController, e: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_ReadableStream.rs000064400000000000000000000211361046102023000177700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "ReadableStream" , js_name = locked)] #[doc = "Getter for the `locked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/locked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn locked(this: &ReadableStream) -> bool; #[wasm_bindgen(catch, constructor, js_class = "ReadableStream")] #[doc = "The `new ReadableStream(..)` constructor, creating a new instance of `ReadableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "ReadableStream")] #[doc = "The `new ReadableStream(..)` constructor, creating a new instance of `ReadableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn new_with_underlying_source( underlying_source: &::js_sys::Object, ) -> Result; #[cfg(feature = "QueuingStrategy")] #[wasm_bindgen(catch, constructor, js_class = "ReadableStream")] #[doc = "The `new ReadableStream(..)` constructor, creating a new instance of `ReadableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `ReadableStream`*"] pub fn new_with_underlying_source_and_strategy( underlying_source: &::js_sys::Object, strategy: &QueuingStrategy, ) -> Result; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn cancel(this: &ReadableStream) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn cancel_with_reason( this: &ReadableStream, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn entries(this: &ReadableStream) -> ::js_sys::AsyncIterator; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = getReader)] #[doc = "The `getReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn get_reader(this: &ReadableStream) -> ::js_sys::Object; #[cfg(feature = "ReadableStreamGetReaderOptions")] # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = getReader)] #[doc = "The `getReader()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/getReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableStreamGetReaderOptions`*"] pub fn get_reader_with_options( this: &ReadableStream, options: &ReadableStreamGetReaderOptions, ) -> ::js_sys::Object; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn keys(this: &ReadableStream) -> ::js_sys::AsyncIterator; #[cfg(feature = "ReadableWritablePair")] # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeThrough)] #[doc = "The `pipeThrough()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeThrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`*"] pub fn pipe_through(this: &ReadableStream, transform: &ReadableWritablePair) -> ReadableStream; #[cfg(all(feature = "ReadableWritablePair", feature = "StreamPipeOptions",))] # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeThrough)] #[doc = "The `pipeThrough()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeThrough)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`, `StreamPipeOptions`*"] pub fn pipe_through_with_options( this: &ReadableStream, transform: &ReadableWritablePair, options: &StreamPipeOptions, ) -> ReadableStream; #[cfg(feature = "WritableStream")] # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeTo)] #[doc = "The `pipeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WritableStream`*"] pub fn pipe_to(this: &ReadableStream, destination: &WritableStream) -> ::js_sys::Promise; #[cfg(all(feature = "StreamPipeOptions", feature = "WritableStream",))] # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = pipeTo)] #[doc = "The `pipeTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/pipeTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `StreamPipeOptions`, `WritableStream`*"] pub fn pipe_to_with_options( this: &ReadableStream, destination: &WritableStream, options: &StreamPipeOptions, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = tee)] #[doc = "The `tee()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/tee)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn tee(this: &ReadableStream) -> ::js_sys::Array; # [wasm_bindgen (method , structural , js_class = "ReadableStream" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] pub fn values(this: &ReadableStream) -> ::js_sys::AsyncIterator; } web-sys-0.3.81/src/features/gen_ReadableStreamByobReader.rs000064400000000000000000000073031046102023000217270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBReader , typescript_type = "ReadableStreamBYOBReader")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamByobReader` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub type ReadableStreamByobReader; # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamBYOBReader" , 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/ReadableStreamBYOBReader/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub fn closed(this: &ReadableStreamByobReader) -> ::js_sys::Promise; #[cfg(feature = "ReadableStream")] #[wasm_bindgen(catch, constructor, js_class = "ReadableStreamBYOBReader")] #[doc = "The `new ReadableStreamByobReader(..)` constructor, creating a new instance of `ReadableStreamByobReader`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/ReadableStreamBYOBReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableStreamByobReader`*"] pub fn new(stream: &ReadableStream) -> Result; # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub fn read_with_array_buffer_view( this: &ReadableStreamByobReader, view: &::js_sys::Object, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = releaseLock)] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/releaseLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub fn release_lock(this: &ReadableStreamByobReader); # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub fn cancel(this: &ReadableStreamByobReader) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"] pub fn cancel_with_reason( this: &ReadableStreamByobReader, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_ReadableStreamByobRequest.rs000064400000000000000000000077041046102023000221620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBRequest , typescript_type = "ReadableStreamBYOBRequest")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamByobRequest` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub type ReadableStreamByobRequest; # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamBYOBRequest" , 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/ReadableStreamBYOBRequest/view)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn view(this: &ReadableStreamByobRequest) -> Option<::js_sys::Object>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamBYOBRequest" , js_name = respond)] #[doc = "The `respond()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respond)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn respond_with_u32( this: &ReadableStreamByobRequest, bytes_written: u32, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamBYOBRequest" , js_name = respond)] #[doc = "The `respond()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respond)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn respond_with_f64( this: &ReadableStreamByobRequest, bytes_written: f64, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamBYOBRequest" , js_name = respondWithNewView)] #[doc = "The `respondWithNewView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn respond_with_new_view_with_array_buffer_view( this: &ReadableStreamByobRequest, view: &::js_sys::Object, ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamBYOBRequest" , js_name = respondWithNewView)] #[doc = "The `respondWithNewView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn respond_with_new_view_with_u8_array( this: &ReadableStreamByobRequest, view: &mut [u8], ) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamBYOBRequest" , js_name = respondWithNewView)] #[doc = "The `respondWithNewView()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobRequest`*"] pub fn respond_with_new_view_with_js_u8_array( this: &ReadableStreamByobRequest, view: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_ReadableStreamDefaultController.rs000064400000000000000000000073421046102023000233440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultController , typescript_type = "ReadableStreamDefaultController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamDefaultController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub type ReadableStreamDefaultController; # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamDefaultController" , js_name = desiredSize)] #[doc = "Getter for the `desiredSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/desiredSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn desired_size(this: &ReadableStreamDefaultController) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn close(this: &ReadableStreamDefaultController) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn enqueue(this: &ReadableStreamDefaultController) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "ReadableStreamDefaultController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn enqueue_with_chunk( this: &ReadableStreamDefaultController, chunk: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn error(this: &ReadableStreamDefaultController); # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultController`*"] pub fn error_with_e(this: &ReadableStreamDefaultController, e: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_ReadableStreamDefaultReader.rs000064400000000000000000000073371046102023000224270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamDefaultReader , typescript_type = "ReadableStreamDefaultReader")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamDefaultReader` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub type ReadableStreamDefaultReader; # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamDefaultReader" , 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/ReadableStreamDefaultReader/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub fn closed(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; #[cfg(feature = "ReadableStream")] #[wasm_bindgen(catch, constructor, js_class = "ReadableStreamDefaultReader")] #[doc = "The `new ReadableStreamDefaultReader(..)` constructor, creating a new instance of `ReadableStreamDefaultReader`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/ReadableStreamDefaultReader)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableStreamDefaultReader`*"] pub fn new(stream: &ReadableStream) -> Result; # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = read)] #[doc = "The `read()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/read)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub fn read(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = releaseLock)] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/releaseLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub fn release_lock(this: &ReadableStreamDefaultReader); # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub fn cancel(this: &ReadableStreamDefaultReader) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "ReadableStreamDefaultReader" , js_name = cancel)] #[doc = "The `cancel()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader/cancel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamDefaultReader`*"] pub fn cancel_with_reason( this: &ReadableStreamDefaultReader, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_ReadableStreamGetReaderOptions.rs000064400000000000000000000037501046102023000231310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamGetReaderOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamGetReaderOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamGetReaderOptions`*"] pub type ReadableStreamGetReaderOptions; #[cfg(feature = "ReadableStreamReaderMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamGetReaderOptions`, `ReadableStreamReaderMode`*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &ReadableStreamGetReaderOptions) -> Option; #[cfg(feature = "ReadableStreamReaderMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamGetReaderOptions`, `ReadableStreamReaderMode`*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &ReadableStreamGetReaderOptions, val: ReadableStreamReaderMode); } impl ReadableStreamGetReaderOptions { #[doc = "Construct a new `ReadableStreamGetReaderOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamGetReaderOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ReadableStreamReaderMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: ReadableStreamReaderMode) -> &mut Self { self.set_mode(val); self } } impl Default for ReadableStreamGetReaderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ReadableStreamIteratorOptions.rs000064400000000000000000000034531046102023000230600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamIteratorOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamIteratorOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamIteratorOptions`*"] pub type ReadableStreamIteratorOptions; #[doc = "Get the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamIteratorOptions`*"] #[wasm_bindgen(method, getter = "preventCancel")] pub fn get_prevent_cancel(this: &ReadableStreamIteratorOptions) -> Option; #[doc = "Change the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamIteratorOptions`*"] #[wasm_bindgen(method, setter = "preventCancel")] pub fn set_prevent_cancel(this: &ReadableStreamIteratorOptions, val: bool); } impl ReadableStreamIteratorOptions { #[doc = "Construct a new `ReadableStreamIteratorOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamIteratorOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_prevent_cancel()` instead."] pub fn prevent_cancel(&mut self, val: bool) -> &mut Self { self.set_prevent_cancel(val); self } } impl Default for ReadableStreamIteratorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ReadableStreamReadResult.rs000064400000000000000000000046551046102023000217720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamReadResult)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableStreamReadResult` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] pub type ReadableStreamReadResult; #[doc = "Get the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] #[wasm_bindgen(method, getter = "done")] pub fn get_done(this: &ReadableStreamReadResult) -> Option; #[doc = "Change the `done` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] #[wasm_bindgen(method, setter = "done")] pub fn set_done(this: &ReadableStreamReadResult, val: bool); #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &ReadableStreamReadResult) -> ::wasm_bindgen::JsValue; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &ReadableStreamReadResult, val: &::wasm_bindgen::JsValue); } impl ReadableStreamReadResult { #[doc = "Construct a new `ReadableStreamReadResult`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReadResult`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_done()` instead."] pub fn done(&mut self, val: bool) -> &mut Self { self.set_done(val); self } #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_value(val); self } } impl Default for ReadableStreamReadResult { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ReadableStreamReaderMode.rs000064400000000000000000000005511046102023000217160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ReadableStreamReaderMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamReaderMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ReadableStreamReaderMode { Byob = "byob", } web-sys-0.3.81/src/features/gen_ReadableStreamType.rs000064400000000000000000000005311046102023000206260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ReadableStreamType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ReadableStreamType { Bytes = "bytes", } web-sys-0.3.81/src/features/gen_ReadableWritablePair.rs000064400000000000000000000055451046102023000211300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableWritablePair)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ReadableWritablePair` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableWritablePair`*"] pub type ReadableWritablePair; #[cfg(feature = "ReadableStream")] #[doc = "Get the `readable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`*"] #[wasm_bindgen(method, getter = "readable")] pub fn get_readable(this: &ReadableWritablePair) -> ReadableStream; #[cfg(feature = "ReadableStream")] #[doc = "Change the `readable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`*"] #[wasm_bindgen(method, setter = "readable")] pub fn set_readable(this: &ReadableWritablePair, val: &ReadableStream); #[cfg(feature = "WritableStream")] #[doc = "Get the `writable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableWritablePair`, `WritableStream`*"] #[wasm_bindgen(method, getter = "writable")] pub fn get_writable(this: &ReadableWritablePair) -> WritableStream; #[cfg(feature = "WritableStream")] #[doc = "Change the `writable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableWritablePair`, `WritableStream`*"] #[wasm_bindgen(method, setter = "writable")] pub fn set_writable(this: &ReadableWritablePair, val: &WritableStream); } impl ReadableWritablePair { #[cfg(all(feature = "ReadableStream", feature = "WritableStream",))] #[doc = "Construct a new `ReadableWritablePair`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `ReadableWritablePair`, `WritableStream`*"] pub fn new(readable: &ReadableStream, writable: &WritableStream) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_readable(readable); ret.set_writable(writable); ret } #[cfg(feature = "ReadableStream")] #[deprecated = "Use `set_readable()` instead."] pub fn readable(&mut self, val: &ReadableStream) -> &mut Self { self.set_readable(val); self } #[cfg(feature = "WritableStream")] #[deprecated = "Use `set_writable()` instead."] pub fn writable(&mut self, val: &WritableStream) -> &mut Self { self.set_writable(val); self } } web-sys-0.3.81/src/features/gen_RecordingState.rs000064400000000000000000000006071046102023000200320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ReferrerPolicy.rs000064400000000000000000000012311046102023000200430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RegisterRequest.rs000064400000000000000000000045171046102023000202560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &RegisterRequest) -> Option<::alloc::string::String>; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &RegisterRequest, val: &str); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &RegisterRequest) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &RegisterRequest, val: &str); } 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 } #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &str) -> &mut Self { self.set_challenge(val); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } } impl Default for RegisterRequest { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RegisterResponse.rs000064400000000000000000000113101046102023000204110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "clientData")] pub fn get_client_data(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, setter = "clientData")] pub fn set_client_data(this: &RegisterResponse, val: &str); #[doc = "Get the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "errorCode")] pub fn get_error_code(this: &RegisterResponse) -> Option; #[doc = "Change the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, setter = "errorCode")] pub fn set_error_code(this: &RegisterResponse, val: Option); #[doc = "Get the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "errorMessage")] pub fn get_error_message(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, setter = "errorMessage")] pub fn set_error_message(this: &RegisterResponse, val: Option<&str>); #[doc = "Get the `registrationData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "registrationData")] pub fn get_registration_data(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `registrationData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, setter = "registrationData")] pub fn set_registration_data(this: &RegisterResponse, val: &str); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &RegisterResponse, val: &str); } 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 } #[deprecated = "Use `set_client_data()` instead."] pub fn client_data(&mut self, val: &str) -> &mut Self { self.set_client_data(val); self } #[deprecated = "Use `set_error_code()` instead."] pub fn error_code(&mut self, val: Option) -> &mut Self { self.set_error_code(val); self } #[deprecated = "Use `set_error_message()` instead."] pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { self.set_error_message(val); self } #[deprecated = "Use `set_registration_data()` instead."] pub fn registration_data(&mut self, val: &str) -> &mut Self { self.set_registration_data(val); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } } impl Default for RegisterResponse { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RegisteredKey.rs000064400000000000000000000075301046102023000176650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `appId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "appId")] pub fn get_app_id(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `appId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, setter = "appId")] pub fn set_app_id(this: &RegisteredKey, val: Option<&str>); #[doc = "Get the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "keyHandle")] pub fn get_key_handle(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, setter = "keyHandle")] pub fn set_key_handle(this: &RegisteredKey, val: &str); #[doc = "Get the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "transports")] pub fn get_transports(this: &RegisteredKey) -> Option<::js_sys::Array>; #[doc = "Change the `transports` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, setter = "transports")] pub fn set_transports(this: &RegisteredKey, val: &::wasm_bindgen::JsValue); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &RegisteredKey, val: &str); } 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 } #[deprecated = "Use `set_app_id()` instead."] pub fn app_id(&mut self, val: Option<&str>) -> &mut Self { self.set_app_id(val); self } #[deprecated = "Use `set_key_handle()` instead."] pub fn key_handle(&mut self, val: &str) -> &mut Self { self.set_key_handle(val); self } #[deprecated = "Use `set_transports()` instead."] pub fn transports(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_transports(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } } impl Default for RegisteredKey { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RegistrationOptions.rs000064400000000000000000000066301046102023000211450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, getter = "scope")] pub fn get_scope(this: &RegistrationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, setter = "scope")] pub fn set_scope(this: &RegistrationOptions, val: &str); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RegistrationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RegistrationOptions, val: &str); #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[doc = "Get the `updateViaCache` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`, `ServiceWorkerUpdateViaCache`*"] #[wasm_bindgen(method, getter = "updateViaCache")] pub fn get_update_via_cache(this: &RegistrationOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "updateViaCache")] pub fn set_update_via_cache(this: &RegistrationOptions, val: ServiceWorkerUpdateViaCache); } 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 } #[deprecated = "Use `set_scope()` instead."] pub fn scope(&mut self, val: &str) -> &mut Self { self.set_scope(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[deprecated = "Use `set_update_via_cache()` instead."] pub fn update_via_cache(&mut self, val: ServiceWorkerUpdateViaCache) -> &mut Self { self.set_update_via_cache(val); self } } impl Default for RegistrationOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RegistrationResponseJson.rs000064400000000000000000000257171046102023000221510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RegistrationResponseJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RegistrationResponseJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RegistrationResponseJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorAttachment")] pub fn get_authenticator_attachment( this: &RegistrationResponseJson, ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorAttachment` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "authenticatorAttachment")] pub fn set_authenticator_attachment(this: &RegistrationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[doc = "Get the `clientExtensionResults` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientExtensionResults")] pub fn get_client_extension_results( this: &RegistrationResponseJson, ) -> AuthenticationExtensionsClientOutputsJson; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[doc = "Change the `clientExtensionResults` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clientExtensionResults")] pub fn set_client_extension_results( this: &RegistrationResponseJson, val: &AuthenticationExtensionsClientOutputsJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RegistrationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rawId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rawId")] pub fn get_raw_id(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rawId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rawId")] pub fn set_raw_id(this: &RegistrationResponseJson, val: &str); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAttestationResponseJson")] #[doc = "Get the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`, `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "response")] pub fn get_response(this: &RegistrationResponseJson) -> AuthenticatorAttestationResponseJson; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAttestationResponseJson")] #[doc = "Change the `response` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponseJson`, `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "response")] pub fn set_response( this: &RegistrationResponseJson, val: &AuthenticatorAttestationResponseJson, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RegistrationResponseJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl RegistrationResponseJson { #[cfg(all( feature = "AuthenticationExtensionsClientOutputsJson", feature = "AuthenticatorAttestationResponseJson", ))] #[doc = "Construct a new `RegistrationResponseJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputsJson`, `AuthenticatorAttestationResponseJson`, `RegistrationResponseJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( client_extension_results: &AuthenticationExtensionsClientOutputsJson, id: &str, raw_id: &str, response: &AuthenticatorAttestationResponseJson, type_: &str, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_client_extension_results(client_extension_results); ret.set_id(id); ret.set_raw_id(raw_id); ret.set_response(response); ret.set_type(type_); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_authenticator_attachment()` instead."] pub fn authenticator_attachment(&mut self, val: &str) -> &mut Self { self.set_authenticator_attachment(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[deprecated = "Use `set_client_extension_results()` instead."] pub fn client_extension_results( &mut self, val: &AuthenticationExtensionsClientOutputsJson, ) -> &mut Self { self.set_client_extension_results(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_raw_id()` instead."] pub fn raw_id(&mut self, val: &str) -> &mut Self { self.set_raw_id(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AuthenticatorAttestationResponseJson")] #[deprecated = "Use `set_response()` instead."] pub fn response(&mut self, val: &AuthenticatorAttestationResponseJson) -> &mut Self { self.set_response(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &str) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_Request.rs000064400000000000000000000266661046102023000165620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_RequestCache.rs000064400000000000000000000007331046102023000174710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RequestCredentials.rs000064400000000000000000000006201046102023000207160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RequestDestination.rs000064400000000000000000000013621046102023000207460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RequestDeviceOptions.rs000064400000000000000000000132151046102023000212400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RequestDeviceOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RequestDeviceOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RequestDeviceOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `acceptAllDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "acceptAllDevices")] pub fn get_accept_all_devices(this: &RequestDeviceOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `acceptAllDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "acceptAllDevices")] pub fn set_accept_all_devices(this: &RequestDeviceOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &RequestDeviceOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &RequestDeviceOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `optionalServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "optionalServices")] pub fn get_optional_services(this: &RequestDeviceOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `optionalServices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "optionalServices")] pub fn set_optional_services(this: &RequestDeviceOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl RequestDeviceOptions { #[doc = "Construct a new `RequestDeviceOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestDeviceOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_accept_all_devices()` instead."] pub fn accept_all_devices(&mut self, val: bool) -> &mut Self { self.set_accept_all_devices(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_optional_services()` instead."] pub fn optional_services(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_optional_services(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for RequestDeviceOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RequestInit.rs000064400000000000000000000251351046102023000173740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "body")] pub fn get_body(this: &RequestInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, setter = "body")] pub fn set_body(this: &RequestInit, val: &::wasm_bindgen::JsValue); #[cfg(feature = "RequestCache")] #[doc = "Get the `cache` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCache`, `RequestInit`*"] #[wasm_bindgen(method, getter = "cache")] pub fn get_cache(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "cache")] pub fn set_cache(this: &RequestInit, val: RequestCache); #[cfg(feature = "RequestCredentials")] #[doc = "Get the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `RequestInit`*"] #[wasm_bindgen(method, getter = "credentials")] pub fn get_credentials(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "credentials")] pub fn set_credentials(this: &RequestInit, val: RequestCredentials); #[doc = "Get the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "headers")] pub fn get_headers(this: &RequestInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, setter = "headers")] pub fn set_headers(this: &RequestInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `integrity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "integrity")] pub fn get_integrity(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `integrity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, setter = "integrity")] pub fn set_integrity(this: &RequestInit, val: &str); #[doc = "Get the `method` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "method")] pub fn get_method(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `method` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, setter = "method")] pub fn set_method(this: &RequestInit, val: &str); #[cfg(feature = "RequestMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestMode`*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &RequestInit, val: RequestMode); #[cfg(feature = "ObserverCallback")] #[doc = "Get the `observe` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`, `RequestInit`*"] #[wasm_bindgen(method, getter = "observe")] pub fn get_observe(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "observe")] pub fn set_observe(this: &RequestInit, val: &ObserverCallback); #[cfg(feature = "RequestRedirect")] #[doc = "Get the `redirect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestRedirect`*"] #[wasm_bindgen(method, getter = "redirect")] pub fn get_redirect(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "redirect")] pub fn set_redirect(this: &RequestInit, val: RequestRedirect); #[doc = "Get the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "referrer")] pub fn get_referrer(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, setter = "referrer")] pub fn set_referrer(this: &RequestInit, val: &str); #[cfg(feature = "ReferrerPolicy")] #[doc = "Get the `referrerPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `RequestInit`*"] #[wasm_bindgen(method, getter = "referrerPolicy")] pub fn get_referrer_policy(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "referrerPolicy")] pub fn set_referrer_policy(this: &RequestInit, val: ReferrerPolicy); #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `RequestInit`*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &RequestInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &RequestInit, val: Option<&AbortSignal>); } 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 } #[deprecated = "Use `set_body()` instead."] pub fn body(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_body(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } #[cfg(feature = "RequestCache")] #[deprecated = "Use `set_cache()` instead."] pub fn cache(&mut self, val: RequestCache) -> &mut Self { self.set_cache(val); self } #[cfg(feature = "RequestCredentials")] #[deprecated = "Use `set_credentials()` instead."] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { self.set_credentials(val); self } #[deprecated = "Use `set_headers()` instead."] pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_headers(val); self } #[deprecated = "Use `set_integrity()` instead."] pub fn integrity(&mut self, val: &str) -> &mut Self { self.set_integrity(val); self } #[deprecated = "Use `set_method()` instead."] pub fn method(&mut self, val: &str) -> &mut Self { self.set_method(val); self } #[cfg(feature = "RequestMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: RequestMode) -> &mut Self { self.set_mode(val); self } #[cfg(feature = "ObserverCallback")] #[deprecated = "Use `set_observe()` instead."] pub fn observe(&mut self, val: &ObserverCallback) -> &mut Self { self.set_observe(val); self } #[cfg(feature = "RequestRedirect")] #[deprecated = "Use `set_redirect()` instead."] pub fn redirect(&mut self, val: RequestRedirect) -> &mut Self { self.set_redirect(val); self } #[deprecated = "Use `set_referrer()` instead."] pub fn referrer(&mut self, val: &str) -> &mut Self { self.set_referrer(val); self } #[cfg(feature = "ReferrerPolicy")] #[deprecated = "Use `set_referrer_policy()` instead."] pub fn referrer_policy(&mut self, val: ReferrerPolicy) -> &mut Self { self.set_referrer_policy(val); self } #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: Option<&AbortSignal>) -> &mut Self { self.set_signal(val); self } } impl Default for RequestInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RequestMediaKeySystemAccessNotification.rs000064400000000000000000000057471046102023000250660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `keySystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] #[wasm_bindgen(method, getter = "keySystem")] pub fn get_key_system( this: &RequestMediaKeySystemAccessNotification, ) -> ::alloc::string::String; #[doc = "Change the `keySystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] #[wasm_bindgen(method, setter = "keySystem")] pub fn set_key_system(this: &RequestMediaKeySystemAccessNotification, val: &str); #[cfg(feature = "MediaKeySystemStatus")] #[doc = "Get the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`, `RequestMediaKeySystemAccessNotification`*"] #[wasm_bindgen(method, getter = "status")] pub fn get_status(this: &RequestMediaKeySystemAccessNotification) -> MediaKeySystemStatus; #[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`*"] #[wasm_bindgen(method, setter = "status")] pub fn set_status(this: &RequestMediaKeySystemAccessNotification, val: MediaKeySystemStatus); } 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.set_key_system(key_system); ret.set_status(status); ret } #[deprecated = "Use `set_key_system()` instead."] pub fn key_system(&mut self, val: &str) -> &mut Self { self.set_key_system(val); self } #[cfg(feature = "MediaKeySystemStatus")] #[deprecated = "Use `set_status()` instead."] pub fn status(&mut self, val: MediaKeySystemStatus) -> &mut Self { self.set_status(val); self } } web-sys-0.3.81/src/features/gen_RequestMode.rs000064400000000000000000000006251046102023000173520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RequestRedirect.rs000064400000000000000000000005761046102023000202340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ResidentKeyRequirement.rs000064400000000000000000000006511046102023000215630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ResidentKeyRequirement` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResidentKeyRequirement`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ResidentKeyRequirement { Discouraged = "discouraged", Preferred = "preferred", Required = "required", } web-sys-0.3.81/src/features/gen_ResizeObserver.rs000064400000000000000000000060121046102023000200620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserver , typescript_type = "ResizeObserver")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserver` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserver`*"] pub type ResizeObserver; #[wasm_bindgen(catch, constructor, js_class = "ResizeObserver")] #[doc = "The `new ResizeObserver(..)` constructor, creating a new instance of `ResizeObserver`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/ResizeObserver)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserver`*"] pub fn new(callback: &::js_sys::Function) -> Result; # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = disconnect)] #[doc = "The `disconnect()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserver`*"] pub fn disconnect(this: &ResizeObserver); #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`*"] pub fn observe(this: &ResizeObserver, target: &Element); #[cfg(all(feature = "Element", feature = "ResizeObserverOptions",))] # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = observe)] #[doc = "The `observe()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`, `ResizeObserverOptions`*"] pub fn observe_with_options( this: &ResizeObserver, target: &Element, options: &ResizeObserverOptions, ); #[cfg(feature = "Element")] # [wasm_bindgen (method , structural , js_class = "ResizeObserver" , js_name = unobserve)] #[doc = "The `unobserve()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/unobserve)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserver`*"] pub fn unobserve(this: &ResizeObserver, target: &Element); } web-sys-0.3.81/src/features/gen_ResizeObserverBoxOptions.rs000064400000000000000000000007141046102023000221120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ResizeObserverBoxOptions` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverBoxOptions`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ResizeObserverBoxOptions { BorderBox = "border-box", ContentBox = "content-box", DevicePixelContentBox = "device-pixel-content-box", } web-sys-0.3.81/src/features/gen_ResizeObserverEntry.rs000064400000000000000000000063131046102023000211100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverEntry , typescript_type = "ResizeObserverEntry")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverEntry` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"] pub type ResizeObserverEntry; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , 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/ResizeObserverEntry/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ResizeObserverEntry`*"] pub fn target(this: &ResizeObserverEntry) -> Element; #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentRect)] #[doc = "Getter for the `contentRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `ResizeObserverEntry`*"] pub fn content_rect(this: &ResizeObserverEntry) -> DomRectReadOnly; # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = borderBoxSize)] #[doc = "Getter for the `borderBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"] pub fn border_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = contentBoxSize)] #[doc = "Getter for the `contentBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"] pub fn content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverEntry" , js_name = devicePixelContentBoxSize)] #[doc = "Getter for the `devicePixelContentBoxSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverEntry`*"] pub fn device_pixel_content_box_size(this: &ResizeObserverEntry) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_ResizeObserverOptions.rs000064400000000000000000000035641046102023000214470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverOptions`*"] pub type ResizeObserverOptions; #[cfg(feature = "ResizeObserverBoxOptions")] #[doc = "Get the `box` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverBoxOptions`, `ResizeObserverOptions`*"] #[wasm_bindgen(method, getter = "box")] pub fn get_box(this: &ResizeObserverOptions) -> Option; #[cfg(feature = "ResizeObserverBoxOptions")] #[doc = "Change the `box` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverBoxOptions`, `ResizeObserverOptions`*"] #[wasm_bindgen(method, setter = "box")] pub fn set_box(this: &ResizeObserverOptions, val: ResizeObserverBoxOptions); } impl ResizeObserverOptions { #[doc = "Construct a new `ResizeObserverOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[cfg(feature = "ResizeObserverBoxOptions")] #[deprecated = "Use `set_box()` instead."] pub fn box_(&mut self, val: ResizeObserverBoxOptions) -> &mut Self { self.set_box(val); self } } impl Default for ResizeObserverOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ResizeObserverSize.rs000064400000000000000000000030401046102023000207130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ResizeObserverSize , typescript_type = "ResizeObserverSize")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ResizeObserverSize` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverSize`*"] pub type ResizeObserverSize; # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverSize" , js_name = inlineSize)] #[doc = "Getter for the `inlineSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverSize/inlineSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverSize`*"] pub fn inline_size(this: &ResizeObserverSize) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "ResizeObserverSize" , js_name = blockSize)] #[doc = "Getter for the `blockSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverSize/blockSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeObserverSize`*"] pub fn block_size(this: &ResizeObserverSize) -> f64; } web-sys-0.3.81/src/features/gen_ResizeQuality.rs000064400000000000000000000006151046102023000177260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `ResizeQuality` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResizeQuality`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ResizeQuality { Pixelated = "pixelated", Low = "low", Medium = "medium", High = "high", } web-sys-0.3.81/src/features/gen_Response.rs000064400000000000000000000425111046102023000167130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; #[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_js_u8_array( body: Option<&::js_sys::Uint8Array>, ) -> 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(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_js_u8_array_and_init( body: Option<&::js_sys::Uint8Array>, 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_static)"] #[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_static)"] #[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_static)"] #[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>; } web-sys-0.3.81/src/features/gen_ResponseInit.rs000064400000000000000000000060041046102023000175340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, getter = "headers")] pub fn get_headers(this: &ResponseInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `headers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, setter = "headers")] pub fn set_headers(this: &ResponseInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, getter = "status")] pub fn get_status(this: &ResponseInit) -> Option; #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, setter = "status")] pub fn set_status(this: &ResponseInit, val: u16); #[doc = "Get the `statusText` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, getter = "statusText")] pub fn get_status_text(this: &ResponseInit) -> Option<::alloc::string::String>; #[doc = "Change the `statusText` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, setter = "statusText")] pub fn set_status_text(this: &ResponseInit, val: &str); } 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 } #[deprecated = "Use `set_headers()` instead."] pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_headers(val); self } #[deprecated = "Use `set_status()` instead."] pub fn status(&mut self, val: u16) -> &mut Self { self.set_status(val); self } #[deprecated = "Use `set_status_text()` instead."] pub fn status_text(&mut self, val: &str) -> &mut Self { self.set_status_text(val); self } } impl Default for ResponseInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ResponseType.rs000064400000000000000000000007061046102023000175550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RsaHashedImportParams.rs000064400000000000000000000032021046102023000213100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] #[wasm_bindgen(method, getter = "hash")] pub fn get_hash(this: &RsaHashedImportParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `hash` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] #[wasm_bindgen(method, setter = "hash")] pub fn set_hash(this: &RsaHashedImportParams, val: &::wasm_bindgen::JsValue); } 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.set_hash(hash); ret } #[deprecated = "Use `set_hash()` instead."] pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_hash(val); self } } web-sys-0.3.81/src/features/gen_RsaOaepParams.rs000064400000000000000000000043111046102023000176070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &RsaOaepParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &RsaOaepParams, val: &str); #[doc = "Get the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] #[wasm_bindgen(method, getter = "label")] pub fn get_label(this: &RsaOaepParams) -> Option<::js_sys::Object>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] #[wasm_bindgen(method, setter = "label")] pub fn set_label(this: &RsaOaepParams, val: &::js_sys::Object); } 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.set_name(name); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_label()` instead."] pub fn label(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_label(val); self } } web-sys-0.3.81/src/features/gen_RsaOtherPrimesInfo.rs000064400000000000000000000056371046102023000206500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "d")] pub fn get_d(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, setter = "d")] pub fn set_d(this: &RsaOtherPrimesInfo, val: &str); #[doc = "Get the `r` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "r")] pub fn get_r(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `r` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, setter = "r")] pub fn set_r(this: &RsaOtherPrimesInfo, val: &str); #[doc = "Get the `t` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "t")] pub fn get_t(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `t` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, setter = "t")] pub fn set_t(this: &RsaOtherPrimesInfo, val: &str); } 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.set_d(d); ret.set_r(r); ret.set_t(t); ret } #[deprecated = "Use `set_d()` instead."] pub fn d(&mut self, val: &str) -> &mut Self { self.set_d(val); self } #[deprecated = "Use `set_r()` instead."] pub fn r(&mut self, val: &str) -> &mut Self { self.set_r(val); self } #[deprecated = "Use `set_t()` instead."] pub fn t(&mut self, val: &str) -> &mut Self { self.set_t(val); self } } web-sys-0.3.81/src/features/gen_RsaPssParams.rs000064400000000000000000000043671046102023000175030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &RsaPssParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &RsaPssParams, val: &str); #[doc = "Get the `saltLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] #[wasm_bindgen(method, getter = "saltLength")] pub fn get_salt_length(this: &RsaPssParams) -> u32; #[doc = "Change the `saltLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] #[wasm_bindgen(method, setter = "saltLength")] pub fn set_salt_length(this: &RsaPssParams, val: u32); } 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.set_name(name); ret.set_salt_length(salt_length); ret } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_salt_length()` instead."] pub fn salt_length(&mut self, val: u32) -> &mut Self { self.set_salt_length(val); self } } web-sys-0.3.81/src/features/gen_RtcAnswerOptions.rs000064400000000000000000000016011046102023000203740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 } } impl Default for RtcAnswerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcBundlePolicy.rs000064400000000000000000000006221046102023000201540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcCertificate.rs000064400000000000000000000020161046102023000200040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_RtcCertificateExpiration.rs000064400000000000000000000032611046102023000220520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `expires` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] #[wasm_bindgen(method, getter = "expires")] pub fn get_expires(this: &RtcCertificateExpiration) -> Option; #[doc = "Change the `expires` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] #[wasm_bindgen(method, setter = "expires")] pub fn set_expires(this: &RtcCertificateExpiration, val: f64); } 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 } #[deprecated = "Use `set_expires()` instead."] pub fn expires(&mut self, val: f64) -> &mut Self { self.set_expires(val); self } } impl Default for RtcCertificateExpiration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcCodecStats.rs000064400000000000000000000152221046102023000176210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcCodecStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcCodecStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcCodecStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcCodecStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcCodecStats, val: RtcStatsType); #[doc = "Get the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "channels")] pub fn get_channels(this: &RtcCodecStats) -> Option; #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "channels")] pub fn set_channels(this: &RtcCodecStats, val: u32); #[doc = "Get the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "clockRate")] pub fn get_clock_rate(this: &RtcCodecStats) -> Option; #[doc = "Change the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "clockRate")] pub fn set_clock_rate(this: &RtcCodecStats, val: u32); #[doc = "Get the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "codec")] pub fn get_codec(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "codec")] pub fn set_codec(this: &RtcCodecStats, val: &str); #[doc = "Get the `parameters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "parameters")] pub fn get_parameters(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `parameters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "parameters")] pub fn set_parameters(this: &RtcCodecStats, val: &str); #[doc = "Get the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "payloadType")] pub fn get_payload_type(this: &RtcCodecStats) -> Option; #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, setter = "payloadType")] pub fn set_payload_type(this: &RtcCodecStats, val: u32); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_channels()` instead."] pub fn channels(&mut self, val: u32) -> &mut Self { self.set_channels(val); self } #[deprecated = "Use `set_clock_rate()` instead."] pub fn clock_rate(&mut self, val: u32) -> &mut Self { self.set_clock_rate(val); self } #[deprecated = "Use `set_codec()` instead."] pub fn codec(&mut self, val: &str) -> &mut Self { self.set_codec(val); self } #[deprecated = "Use `set_parameters()` instead."] pub fn parameters(&mut self, val: &str) -> &mut Self { self.set_parameters(val); self } #[deprecated = "Use `set_payload_type()` instead."] pub fn payload_type(&mut self, val: u32) -> &mut Self { self.set_payload_type(val); self } } impl Default for RtcCodecStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcConfiguration.rs000064400000000000000000000123651046102023000204010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "RtcBundlePolicy")] #[doc = "Get the `bundlePolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcBundlePolicy`, `RtcConfiguration`*"] #[wasm_bindgen(method, getter = "bundlePolicy")] pub fn get_bundle_policy(this: &RtcConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "bundlePolicy")] pub fn set_bundle_policy(this: &RtcConfiguration, val: RtcBundlePolicy); #[doc = "Get the `certificates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, getter = "certificates")] pub fn get_certificates(this: &RtcConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `certificates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, setter = "certificates")] pub fn set_certificates(this: &RtcConfiguration, val: &::wasm_bindgen::JsValue); #[doc = "Get the `iceServers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, getter = "iceServers")] pub fn get_ice_servers(this: &RtcConfiguration) -> Option<::js_sys::Array>; #[doc = "Change the `iceServers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, setter = "iceServers")] pub fn set_ice_servers(this: &RtcConfiguration, val: &::wasm_bindgen::JsValue); #[cfg(feature = "RtcIceTransportPolicy")] #[doc = "Get the `iceTransportPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcIceTransportPolicy`*"] #[wasm_bindgen(method, getter = "iceTransportPolicy")] pub fn get_ice_transport_policy(this: &RtcConfiguration) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "iceTransportPolicy")] pub fn set_ice_transport_policy(this: &RtcConfiguration, val: RtcIceTransportPolicy); #[doc = "Get the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, getter = "peerIdentity")] pub fn get_peer_identity(this: &RtcConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, setter = "peerIdentity")] pub fn set_peer_identity(this: &RtcConfiguration, val: Option<&str>); } 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")] #[deprecated = "Use `set_bundle_policy()` instead."] pub fn bundle_policy(&mut self, val: RtcBundlePolicy) -> &mut Self { self.set_bundle_policy(val); self } #[deprecated = "Use `set_certificates()` instead."] pub fn certificates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_certificates(val); self } #[deprecated = "Use `set_ice_servers()` instead."] pub fn ice_servers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ice_servers(val); self } #[cfg(feature = "RtcIceTransportPolicy")] #[deprecated = "Use `set_ice_transport_policy()` instead."] pub fn ice_transport_policy(&mut self, val: RtcIceTransportPolicy) -> &mut Self { self.set_ice_transport_policy(val); self } #[deprecated = "Use `set_peer_identity()` instead."] pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { self.set_peer_identity(val); self } } impl Default for RtcConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcDataChannel.rs000064400000000000000000000340561046102023000177350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , 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/RTCDataChannel/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] pub fn id(this: &RtcDataChannel) -> Option; # [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>; # [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_js_u8_array( this: &RtcDataChannel, data: &::js_sys::Uint8Array, ) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_RtcDataChannelEvent.rs000064400000000000000000000034461046102023000207360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_RtcDataChannelEventInit.rs000064400000000000000000000101331046102023000215510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &RtcDataChannelEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &RtcDataChannelEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &RtcDataChannelEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &RtcDataChannelEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &RtcDataChannelEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &RtcDataChannelEventInit, val: bool); #[cfg(feature = "RtcDataChannel")] #[doc = "Get the `channel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEventInit`*"] #[wasm_bindgen(method, getter = "channel")] pub fn get_channel(this: &RtcDataChannelEventInit) -> RtcDataChannel; #[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`*"] #[wasm_bindgen(method, setter = "channel")] pub fn set_channel(this: &RtcDataChannelEventInit, val: &RtcDataChannel); } 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.set_channel(channel); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "RtcDataChannel")] #[deprecated = "Use `set_channel()` instead."] pub fn channel(&mut self, val: &RtcDataChannel) -> &mut Self { self.set_channel(val); self } } web-sys-0.3.81/src/features/gen_RtcDataChannelInit.rs000064400000000000000000000142351046102023000205560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcDataChannelInit, val: u16); #[doc = "Get the `maxPacketLifeTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "maxPacketLifeTime")] pub fn get_max_packet_life_time(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `maxPacketLifeTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "maxPacketLifeTime")] pub fn set_max_packet_life_time(this: &RtcDataChannelInit, val: u16); #[doc = "Get the `maxRetransmitTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "maxRetransmitTime")] pub fn get_max_retransmit_time(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `maxRetransmitTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "maxRetransmitTime")] pub fn set_max_retransmit_time(this: &RtcDataChannelInit, val: u16); #[doc = "Get the `maxRetransmits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "maxRetransmits")] pub fn get_max_retransmits(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `maxRetransmits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "maxRetransmits")] pub fn set_max_retransmits(this: &RtcDataChannelInit, val: u16); #[doc = "Get the `negotiated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "negotiated")] pub fn get_negotiated(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `negotiated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "negotiated")] pub fn set_negotiated(this: &RtcDataChannelInit, val: bool); #[doc = "Get the `ordered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "ordered")] pub fn get_ordered(this: &RtcDataChannelInit) -> Option; #[doc = "Change the `ordered` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "ordered")] pub fn set_ordered(this: &RtcDataChannelInit, val: bool); #[doc = "Get the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "protocol")] pub fn get_protocol(this: &RtcDataChannelInit) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, setter = "protocol")] pub fn set_protocol(this: &RtcDataChannelInit, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: u16) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_max_packet_life_time()` instead."] pub fn max_packet_life_time(&mut self, val: u16) -> &mut Self { self.set_max_packet_life_time(val); self } #[deprecated = "Use `set_max_retransmit_time()` instead."] pub fn max_retransmit_time(&mut self, val: u16) -> &mut Self { self.set_max_retransmit_time(val); self } #[deprecated = "Use `set_max_retransmits()` instead."] pub fn max_retransmits(&mut self, val: u16) -> &mut Self { self.set_max_retransmits(val); self } #[deprecated = "Use `set_negotiated()` instead."] pub fn negotiated(&mut self, val: bool) -> &mut Self { self.set_negotiated(val); self } #[deprecated = "Use `set_ordered()` instead."] pub fn ordered(&mut self, val: bool) -> &mut Self { self.set_ordered(val); self } #[deprecated = "Use `set_protocol()` instead."] pub fn protocol(&mut self, val: &str) -> &mut Self { self.set_protocol(val); self } } impl Default for RtcDataChannelInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcDataChannelState.rs000064400000000000000000000006511046102023000207300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcDataChannelType.rs000064400000000000000000000005701046102023000205710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcDegradationPreference.rs000064400000000000000000000007171046102023000220100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcEncodedAudioFrame.rs000064400000000000000000000117351046102023000210700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedAudioFrame , typescript_type = "RTCEncodedAudioFrame")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedAudioFrame` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedAudioFrame; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCEncodedAudioFrame" , 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/RTCEncodedAudioFrame/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &RtcEncodedAudioFrame) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "RTCEncodedAudioFrame" , 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/RTCEncodedAudioFrame/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_data(this: &RtcEncodedAudioFrame, value: &::js_sys::ArrayBuffer); #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedAudioFrame")] #[doc = "The `new RtcEncodedAudioFrame(..)` constructor, creating a new instance of `RtcEncodedAudioFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/RTCEncodedAudioFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(original_frame: &RtcEncodedAudioFrame) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedAudioFrameOptions")] #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedAudioFrame")] #[doc = "The `new RtcEncodedAudioFrame(..)` constructor, creating a new instance of `RtcEncodedAudioFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/RTCEncodedAudioFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`, `RtcEncodedAudioFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options( original_frame: &RtcEncodedAudioFrame, options: &RtcEncodedAudioFrameOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedAudioFrameMetadata")] # [wasm_bindgen (method , structural , js_class = "RTCEncodedAudioFrame" , js_name = getMetadata)] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/getMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`, `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_metadata(this: &RtcEncodedAudioFrame) -> RtcEncodedAudioFrameMetadata; } web-sys-0.3.81/src/features/gen_RtcEncodedAudioFrameMetadata.rs000064400000000000000000000240001046102023000225160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedAudioFrameMetadata)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedAudioFrameMetadata` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedAudioFrameMetadata; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `contributingSources` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "contributingSources")] pub fn get_contributing_sources(this: &RtcEncodedAudioFrameMetadata) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `contributingSources` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "contributingSources")] pub fn set_contributing_sources( this: &RtcEncodedAudioFrameMetadata, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mimeType")] pub fn get_mime_type(this: &RtcEncodedAudioFrameMetadata) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mimeType")] pub fn set_mime_type(this: &RtcEncodedAudioFrameMetadata, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "payloadType")] pub fn get_payload_type(this: &RtcEncodedAudioFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "payloadType")] pub fn set_payload_type(this: &RtcEncodedAudioFrameMetadata, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rtpTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rtpTimestamp")] pub fn get_rtp_timestamp(this: &RtcEncodedAudioFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rtpTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rtpTimestamp")] pub fn set_rtp_timestamp(this: &RtcEncodedAudioFrameMetadata, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sequenceNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sequenceNumber")] pub fn get_sequence_number(this: &RtcEncodedAudioFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sequenceNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sequenceNumber")] pub fn set_sequence_number(this: &RtcEncodedAudioFrameMetadata, val: i16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `synchronizationSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "synchronizationSource")] pub fn get_synchronization_source(this: &RtcEncodedAudioFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `synchronizationSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "synchronizationSource")] pub fn set_synchronization_source(this: &RtcEncodedAudioFrameMetadata, val: u32); } #[cfg(web_sys_unstable_apis)] impl RtcEncodedAudioFrameMetadata { #[doc = "Construct a new `RtcEncodedAudioFrameMetadata`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_contributing_sources()` instead."] pub fn contributing_sources(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_contributing_sources(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mime_type()` instead."] pub fn mime_type(&mut self, val: &str) -> &mut Self { self.set_mime_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_payload_type()` instead."] pub fn payload_type(&mut self, val: u8) -> &mut Self { self.set_payload_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rtp_timestamp()` instead."] pub fn rtp_timestamp(&mut self, val: u32) -> &mut Self { self.set_rtp_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_sequence_number()` instead."] pub fn sequence_number(&mut self, val: i16) -> &mut Self { self.set_sequence_number(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_synchronization_source()` instead."] pub fn synchronization_source(&mut self, val: u32) -> &mut Self { self.set_synchronization_source(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for RtcEncodedAudioFrameMetadata { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcEncodedAudioFrameOptions.rs000064400000000000000000000062421046102023000224410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedAudioFrameOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedAudioFrameOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedAudioFrameOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedAudioFrameMetadata")] #[doc = "Get the `metadata` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`, `RtcEncodedAudioFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "metadata")] pub fn get_metadata(this: &RtcEncodedAudioFrameOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedAudioFrameMetadata")] #[doc = "Change the `metadata` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameMetadata`, `RtcEncodedAudioFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "metadata")] pub fn set_metadata(this: &RtcEncodedAudioFrameOptions, val: &RtcEncodedAudioFrameMetadata); } #[cfg(web_sys_unstable_apis)] impl RtcEncodedAudioFrameOptions { #[doc = "Construct a new `RtcEncodedAudioFrameOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "RtcEncodedAudioFrameMetadata")] #[deprecated = "Use `set_metadata()` instead."] pub fn metadata(&mut self, val: &RtcEncodedAudioFrameMetadata) -> &mut Self { self.set_metadata(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for RtcEncodedAudioFrameOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcEncodedVideoFrame.rs000064400000000000000000000134461046102023000210760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedVideoFrame , typescript_type = "RTCEncodedVideoFrame")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedVideoFrame` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedVideoFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedVideoFrameType")] # [wasm_bindgen (structural , method , getter , js_class = "RTCEncodedVideoFrame" , 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/RTCEncodedVideoFrame/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &RtcEncodedVideoFrame) -> RtcEncodedVideoFrameType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCEncodedVideoFrame" , 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/RTCEncodedVideoFrame/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &RtcEncodedVideoFrame) -> ::js_sys::ArrayBuffer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "RTCEncodedVideoFrame" , 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/RTCEncodedVideoFrame/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_data(this: &RtcEncodedVideoFrame, value: &::js_sys::ArrayBuffer); #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedVideoFrame")] #[doc = "The `new RtcEncodedVideoFrame(..)` constructor, creating a new instance of `RtcEncodedVideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/RTCEncodedVideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(original_frame: &RtcEncodedVideoFrame) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedVideoFrameOptions")] #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedVideoFrame")] #[doc = "The `new RtcEncodedVideoFrame(..)` constructor, creating a new instance of `RtcEncodedVideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/RTCEncodedVideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options( original_frame: &RtcEncodedVideoFrame, options: &RtcEncodedVideoFrameOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedVideoFrameMetadata")] # [wasm_bindgen (method , structural , js_class = "RTCEncodedVideoFrame" , js_name = getMetadata)] #[doc = "The `getMetadata()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/getMetadata)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_metadata(this: &RtcEncodedVideoFrame) -> RtcEncodedVideoFrameMetadata; } web-sys-0.3.81/src/features/gen_RtcEncodedVideoFrameMetadata.rs000064400000000000000000000441341046102023000225350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedVideoFrameMetadata)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedVideoFrameMetadata` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedVideoFrameMetadata; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `contributingSources` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "contributingSources")] pub fn get_contributing_sources(this: &RtcEncodedVideoFrameMetadata) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `contributingSources` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "contributingSources")] pub fn set_contributing_sources( this: &RtcEncodedVideoFrameMetadata, val: &::wasm_bindgen::JsValue, ); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dependencies` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dependencies")] pub fn get_dependencies(this: &RtcEncodedVideoFrameMetadata) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dependencies` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dependencies")] pub fn set_dependencies(this: &RtcEncodedVideoFrameMetadata, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `frameId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frameId")] pub fn get_frame_id(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `frameId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frameId")] pub fn set_frame_id(this: &RtcEncodedVideoFrameMetadata, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &RtcEncodedVideoFrameMetadata) -> Option; #[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: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &RtcEncodedVideoFrameMetadata, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mimeType")] pub fn get_mime_type(this: &RtcEncodedVideoFrameMetadata) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mimeType")] pub fn set_mime_type(this: &RtcEncodedVideoFrameMetadata, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "payloadType")] pub fn get_payload_type(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "payloadType")] pub fn set_payload_type(this: &RtcEncodedVideoFrameMetadata, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rtpTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rtpTimestamp")] pub fn get_rtp_timestamp(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rtpTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rtpTimestamp")] pub fn set_rtp_timestamp(this: &RtcEncodedVideoFrameMetadata, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `spatialIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "spatialIndex")] pub fn get_spatial_index(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `spatialIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "spatialIndex")] pub fn set_spatial_index(this: &RtcEncodedVideoFrameMetadata, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `synchronizationSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "synchronizationSource")] pub fn get_synchronization_source(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `synchronizationSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "synchronizationSource")] pub fn set_synchronization_source(this: &RtcEncodedVideoFrameMetadata, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `temporalIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "temporalIndex")] pub fn get_temporal_index(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `temporalIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "temporalIndex")] pub fn set_temporal_index(this: &RtcEncodedVideoFrameMetadata, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcEncodedVideoFrameMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcEncodedVideoFrameMetadata, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &RtcEncodedVideoFrameMetadata) -> Option; #[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: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &RtcEncodedVideoFrameMetadata, val: u16); } #[cfg(web_sys_unstable_apis)] impl RtcEncodedVideoFrameMetadata { #[doc = "Construct a new `RtcEncodedVideoFrameMetadata`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_contributing_sources()` instead."] pub fn contributing_sources(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_contributing_sources(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_dependencies()` instead."] pub fn dependencies(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_dependencies(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_frame_id()` instead."] pub fn frame_id(&mut self, val: f64) -> &mut Self { self.set_frame_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: u16) -> &mut Self { self.set_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mime_type()` instead."] pub fn mime_type(&mut self, val: &str) -> &mut Self { self.set_mime_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_payload_type()` instead."] pub fn payload_type(&mut self, val: u8) -> &mut Self { self.set_payload_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rtp_timestamp()` instead."] pub fn rtp_timestamp(&mut self, val: u32) -> &mut Self { self.set_rtp_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_spatial_index()` instead."] pub fn spatial_index(&mut self, val: u32) -> &mut Self { self.set_spatial_index(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_synchronization_source()` instead."] pub fn synchronization_source(&mut self, val: u32) -> &mut Self { self.set_synchronization_source(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_temporal_index()` instead."] pub fn temporal_index(&mut self, val: u32) -> &mut Self { self.set_temporal_index(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: u16) -> &mut Self { self.set_width(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for RtcEncodedVideoFrameMetadata { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcEncodedVideoFrameOptions.rs000064400000000000000000000062421046102023000224460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCEncodedVideoFrameOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcEncodedVideoFrameOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcEncodedVideoFrameOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedVideoFrameMetadata")] #[doc = "Get the `metadata` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`, `RtcEncodedVideoFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "metadata")] pub fn get_metadata(this: &RtcEncodedVideoFrameOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcEncodedVideoFrameMetadata")] #[doc = "Change the `metadata` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameMetadata`, `RtcEncodedVideoFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "metadata")] pub fn set_metadata(this: &RtcEncodedVideoFrameOptions, val: &RtcEncodedVideoFrameMetadata); } #[cfg(web_sys_unstable_apis)] impl RtcEncodedVideoFrameOptions { #[doc = "Construct a new `RtcEncodedVideoFrameOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "RtcEncodedVideoFrameMetadata")] #[deprecated = "Use `set_metadata()` instead."] pub fn metadata(&mut self, val: &RtcEncodedVideoFrameMetadata) -> &mut Self { self.set_metadata(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for RtcEncodedVideoFrameOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcEncodedVideoFrameType.rs000064400000000000000000000012271046102023000217320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `RtcEncodedVideoFrameType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrameType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcEncodedVideoFrameType { Empty = "empty", Key = "key", Delta = "delta", } web-sys-0.3.81/src/features/gen_RtcFecParameters.rs000064400000000000000000000030661046102023000203110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcFecParameters) -> Option; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcFecParameters, val: u32); } 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 } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: u32) -> &mut Self { self.set_ssrc(val); self } } impl Default for RtcFecParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIceCandidate.rs000064400000000000000000000106371046102023000200670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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; } web-sys-0.3.81/src/features/gen_RtcIceCandidateInit.rs000064400000000000000000000062331046102023000207100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, getter = "candidate")] pub fn get_candidate(this: &RtcIceCandidateInit) -> ::alloc::string::String; #[doc = "Change the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, setter = "candidate")] pub fn set_candidate(this: &RtcIceCandidateInit, val: &str); #[doc = "Get the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, getter = "sdpMLineIndex")] pub fn get_sdp_m_line_index(this: &RtcIceCandidateInit) -> Option; #[doc = "Change the `sdpMLineIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, setter = "sdpMLineIndex")] pub fn set_sdp_m_line_index(this: &RtcIceCandidateInit, val: Option); #[doc = "Get the `sdpMid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, getter = "sdpMid")] pub fn get_sdp_mid(this: &RtcIceCandidateInit) -> Option<::alloc::string::String>; #[doc = "Change the `sdpMid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, setter = "sdpMid")] pub fn set_sdp_mid(this: &RtcIceCandidateInit, val: Option<&str>); } 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.set_candidate(candidate); ret } #[deprecated = "Use `set_candidate()` instead."] pub fn candidate(&mut self, val: &str) -> &mut Self { self.set_candidate(val); self } #[deprecated = "Use `set_sdp_m_line_index()` instead."] pub fn sdp_m_line_index(&mut self, val: Option) -> &mut Self { self.set_sdp_m_line_index(val); self } #[deprecated = "Use `set_sdp_mid()` instead."] pub fn sdp_mid(&mut self, val: Option<&str>) -> &mut Self { self.set_sdp_mid(val); self } } web-sys-0.3.81/src/features/gen_RtcIceCandidatePairStats.rs000064400000000000000000000353031046102023000217170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcIceCandidatePairStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcIceCandidatePairStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcIceCandidatePairStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcIceCandidatePairStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcIceCandidatePairStats, val: RtcStatsType); #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &RtcIceCandidatePairStats, val: f64); #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &RtcIceCandidatePairStats, val: f64); #[doc = "Get the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "componentId")] pub fn get_component_id(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "componentId")] pub fn set_component_id(this: &RtcIceCandidatePairStats, val: u32); #[doc = "Get the `lastPacketReceivedTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "lastPacketReceivedTimestamp")] pub fn get_last_packet_received_timestamp(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `lastPacketReceivedTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "lastPacketReceivedTimestamp")] pub fn set_last_packet_received_timestamp(this: &RtcIceCandidatePairStats, val: f64); #[doc = "Get the `lastPacketSentTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "lastPacketSentTimestamp")] pub fn get_last_packet_sent_timestamp(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `lastPacketSentTimestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "lastPacketSentTimestamp")] pub fn set_last_packet_sent_timestamp(this: &RtcIceCandidatePairStats, val: f64); #[doc = "Get the `localCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "localCandidateId")] pub fn get_local_candidate_id( this: &RtcIceCandidatePairStats, ) -> Option<::alloc::string::String>; #[doc = "Change the `localCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "localCandidateId")] pub fn set_local_candidate_id(this: &RtcIceCandidatePairStats, val: &str); #[doc = "Get the `nominated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "nominated")] pub fn get_nominated(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `nominated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "nominated")] pub fn set_nominated(this: &RtcIceCandidatePairStats, val: bool); #[doc = "Get the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "priority")] pub fn get_priority(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "priority")] pub fn set_priority(this: &RtcIceCandidatePairStats, val: f64); #[doc = "Get the `readable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "readable")] pub fn get_readable(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `readable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "readable")] pub fn set_readable(this: &RtcIceCandidatePairStats, val: bool); #[doc = "Get the `remoteCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "remoteCandidateId")] pub fn get_remote_candidate_id( this: &RtcIceCandidatePairStats, ) -> Option<::alloc::string::String>; #[doc = "Change the `remoteCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "remoteCandidateId")] pub fn set_remote_candidate_id(this: &RtcIceCandidatePairStats, val: &str); #[doc = "Get the `selected` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "selected")] pub fn get_selected(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `selected` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "selected")] pub fn set_selected(this: &RtcIceCandidatePairStats, val: bool); #[cfg(feature = "RtcStatsIceCandidatePairState")] #[doc = "Get the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsIceCandidatePairState`*"] #[wasm_bindgen(method, getter = "state")] pub fn get_state(this: &RtcIceCandidatePairStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "state")] pub fn set_state(this: &RtcIceCandidatePairStats, val: RtcStatsIceCandidatePairState); #[doc = "Get the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "transportId")] pub fn get_transport_id(this: &RtcIceCandidatePairStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "transportId")] pub fn set_transport_id(this: &RtcIceCandidatePairStats, val: &str); #[doc = "Get the `writable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "writable")] pub fn get_writable(this: &RtcIceCandidatePairStats) -> Option; #[doc = "Change the `writable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, setter = "writable")] pub fn set_writable(this: &RtcIceCandidatePairStats, val: bool); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: f64) -> &mut Self { self.set_bytes_received(val); self } #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { self.set_bytes_sent(val); self } #[deprecated = "Use `set_component_id()` instead."] pub fn component_id(&mut self, val: u32) -> &mut Self { self.set_component_id(val); self } #[deprecated = "Use `set_last_packet_received_timestamp()` instead."] pub fn last_packet_received_timestamp(&mut self, val: f64) -> &mut Self { self.set_last_packet_received_timestamp(val); self } #[deprecated = "Use `set_last_packet_sent_timestamp()` instead."] pub fn last_packet_sent_timestamp(&mut self, val: f64) -> &mut Self { self.set_last_packet_sent_timestamp(val); self } #[deprecated = "Use `set_local_candidate_id()` instead."] pub fn local_candidate_id(&mut self, val: &str) -> &mut Self { self.set_local_candidate_id(val); self } #[deprecated = "Use `set_nominated()` instead."] pub fn nominated(&mut self, val: bool) -> &mut Self { self.set_nominated(val); self } #[deprecated = "Use `set_priority()` instead."] pub fn priority(&mut self, val: f64) -> &mut Self { self.set_priority(val); self } #[deprecated = "Use `set_readable()` instead."] pub fn readable(&mut self, val: bool) -> &mut Self { self.set_readable(val); self } #[deprecated = "Use `set_remote_candidate_id()` instead."] pub fn remote_candidate_id(&mut self, val: &str) -> &mut Self { self.set_remote_candidate_id(val); self } #[deprecated = "Use `set_selected()` instead."] pub fn selected(&mut self, val: bool) -> &mut Self { self.set_selected(val); self } #[cfg(feature = "RtcStatsIceCandidatePairState")] #[deprecated = "Use `set_state()` instead."] pub fn state(&mut self, val: RtcStatsIceCandidatePairState) -> &mut Self { self.set_state(val); self } #[deprecated = "Use `set_transport_id()` instead."] pub fn transport_id(&mut self, val: &str) -> &mut Self { self.set_transport_id(val); self } #[deprecated = "Use `set_writable()` instead."] pub fn writable(&mut self, val: bool) -> &mut Self { self.set_writable(val); self } } impl Default for RtcIceCandidatePairStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIceCandidateStats.rs000064400000000000000000000201041046102023000210740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcIceCandidateStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcIceCandidateStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcIceCandidateStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcIceCandidateStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcIceCandidateStats, val: RtcStatsType); #[doc = "Get the `candidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "candidateId")] pub fn get_candidate_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `candidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "candidateId")] pub fn set_candidate_id(this: &RtcIceCandidateStats, val: &str); #[cfg(feature = "RtcStatsIceCandidateType")] #[doc = "Get the `candidateType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsIceCandidateType`*"] #[wasm_bindgen(method, getter = "candidateType")] pub fn get_candidate_type(this: &RtcIceCandidateStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "candidateType")] pub fn set_candidate_type(this: &RtcIceCandidateStats, val: RtcStatsIceCandidateType); #[doc = "Get the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "componentId")] pub fn get_component_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "componentId")] pub fn set_component_id(this: &RtcIceCandidateStats, val: &str); #[doc = "Get the `ipAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "ipAddress")] pub fn get_ip_address(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `ipAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "ipAddress")] pub fn set_ip_address(this: &RtcIceCandidateStats, val: &str); #[doc = "Get the `portNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "portNumber")] pub fn get_port_number(this: &RtcIceCandidateStats) -> Option; #[doc = "Change the `portNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "portNumber")] pub fn set_port_number(this: &RtcIceCandidateStats, val: i32); #[doc = "Get the `transport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "transport")] pub fn get_transport(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `transport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, setter = "transport")] pub fn set_transport(this: &RtcIceCandidateStats, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_candidate_id()` instead."] pub fn candidate_id(&mut self, val: &str) -> &mut Self { self.set_candidate_id(val); self } #[cfg(feature = "RtcStatsIceCandidateType")] #[deprecated = "Use `set_candidate_type()` instead."] pub fn candidate_type(&mut self, val: RtcStatsIceCandidateType) -> &mut Self { self.set_candidate_type(val); self } #[deprecated = "Use `set_component_id()` instead."] pub fn component_id(&mut self, val: &str) -> &mut Self { self.set_component_id(val); self } #[deprecated = "Use `set_ip_address()` instead."] pub fn ip_address(&mut self, val: &str) -> &mut Self { self.set_ip_address(val); self } #[deprecated = "Use `set_port_number()` instead."] pub fn port_number(&mut self, val: i32) -> &mut Self { self.set_port_number(val); self } #[deprecated = "Use `set_transport()` instead."] pub fn transport(&mut self, val: &str) -> &mut Self { self.set_transport(val); self } } impl Default for RtcIceCandidateStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIceComponentStats.rs000064400000000000000000000160501046102023000211670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcIceComponentStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcIceComponentStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcIceComponentStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcIceComponentStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcIceComponentStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcIceComponentStats, val: RtcStatsType); #[doc = "Get the `activeConnection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "activeConnection")] pub fn get_active_connection(this: &RtcIceComponentStats) -> Option; #[doc = "Change the `activeConnection` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "activeConnection")] pub fn set_active_connection(this: &RtcIceComponentStats, val: bool); #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &RtcIceComponentStats) -> Option; #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &RtcIceComponentStats, val: u32); #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &RtcIceComponentStats) -> Option; #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &RtcIceComponentStats, val: u32); #[doc = "Get the `component` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "component")] pub fn get_component(this: &RtcIceComponentStats) -> Option; #[doc = "Change the `component` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "component")] pub fn set_component(this: &RtcIceComponentStats, val: i32); #[doc = "Get the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "transportId")] pub fn get_transport_id(this: &RtcIceComponentStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, setter = "transportId")] pub fn set_transport_id(this: &RtcIceComponentStats, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_active_connection()` instead."] pub fn active_connection(&mut self, val: bool) -> &mut Self { self.set_active_connection(val); self } #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: u32) -> &mut Self { self.set_bytes_received(val); self } #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: u32) -> &mut Self { self.set_bytes_sent(val); self } #[deprecated = "Use `set_component()` instead."] pub fn component(&mut self, val: i32) -> &mut Self { self.set_component(val); self } #[deprecated = "Use `set_transport_id()` instead."] pub fn transport_id(&mut self, val: &str) -> &mut Self { self.set_transport_id(val); self } } impl Default for RtcIceComponentStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIceConnectionState.rs000064400000000000000000000010041046102023000212770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcIceCredentialType.rs000064400000000000000000000005721046102023000211240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcIceGatheringState.rs000064400000000000000000000006231046102023000211160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcIceServer.rs000064400000000000000000000112541046102023000174550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `credential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "credential")] pub fn get_credential(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `credential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, setter = "credential")] pub fn set_credential(this: &RtcIceServer, val: &str); #[cfg(feature = "RtcIceCredentialType")] #[doc = "Get the `credentialType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCredentialType`, `RtcIceServer`*"] #[wasm_bindgen(method, getter = "credentialType")] pub fn get_credential_type(this: &RtcIceServer) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "credentialType")] pub fn set_credential_type(this: &RtcIceServer, val: RtcIceCredentialType); #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &RtcIceServer, val: &str); #[doc = "Get the `urls` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "urls")] pub fn get_urls(this: &RtcIceServer) -> ::wasm_bindgen::JsValue; #[doc = "Change the `urls` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, setter = "urls")] pub fn set_urls(this: &RtcIceServer, val: &::wasm_bindgen::JsValue); #[doc = "Get the `username` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "username")] pub fn get_username(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `username` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, setter = "username")] pub fn set_username(this: &RtcIceServer, val: &str); } 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 } #[deprecated = "Use `set_credential()` instead."] pub fn credential(&mut self, val: &str) -> &mut Self { self.set_credential(val); self } #[cfg(feature = "RtcIceCredentialType")] #[deprecated = "Use `set_credential_type()` instead."] pub fn credential_type(&mut self, val: RtcIceCredentialType) -> &mut Self { self.set_credential_type(val); self } #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: &str) -> &mut Self { self.set_url(val); self } #[deprecated = "Use `set_urls()` instead."] pub fn urls(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_urls(val); self } #[deprecated = "Use `set_username()` instead."] pub fn username(&mut self, val: &str) -> &mut Self { self.set_username(val); self } } impl Default for RtcIceServer { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIceTransportPolicy.rs000064400000000000000000000005631046102023000213640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcIdentityAssertion.rs000064400000000000000000000045161046102023000212520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, getter = "idp")] pub fn get_idp(this: &RtcIdentityAssertion) -> Option<::alloc::string::String>; #[doc = "Change the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, setter = "idp")] pub fn set_idp(this: &RtcIdentityAssertion, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &RtcIdentityAssertion) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &RtcIdentityAssertion, val: &str); } 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 } #[deprecated = "Use `set_idp()` instead."] pub fn idp(&mut self, val: &str) -> &mut Self { self.set_idp(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for RtcIdentityAssertion { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIdentityAssertionResult.rs000064400000000000000000000054561046102023000224550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `assertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] #[wasm_bindgen(method, getter = "assertion")] pub fn get_assertion(this: &RtcIdentityAssertionResult) -> ::alloc::string::String; #[doc = "Change the `assertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] #[wasm_bindgen(method, setter = "assertion")] pub fn set_assertion(this: &RtcIdentityAssertionResult, val: &str); #[cfg(feature = "RtcIdentityProviderDetails")] #[doc = "Get the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`, `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, getter = "idp")] pub fn get_idp(this: &RtcIdentityAssertionResult) -> RtcIdentityProviderDetails; #[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`*"] #[wasm_bindgen(method, setter = "idp")] pub fn set_idp(this: &RtcIdentityAssertionResult, val: &RtcIdentityProviderDetails); } 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.set_assertion(assertion); ret.set_idp(idp); ret } #[deprecated = "Use `set_assertion()` instead."] pub fn assertion(&mut self, val: &str) -> &mut Self { self.set_assertion(val); self } #[cfg(feature = "RtcIdentityProviderDetails")] #[deprecated = "Use `set_idp()` instead."] pub fn idp(&mut self, val: &RtcIdentityProviderDetails) -> &mut Self { self.set_idp(val); self } } web-sys-0.3.81/src/features/gen_RtcIdentityProvider.rs000064400000000000000000000053261046102023000210750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `generateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] #[wasm_bindgen(method, getter = "generateAssertion")] pub fn get_generate_assertion(this: &RtcIdentityProvider) -> ::js_sys::Function; #[doc = "Change the `generateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] #[wasm_bindgen(method, setter = "generateAssertion")] pub fn set_generate_assertion(this: &RtcIdentityProvider, val: &::js_sys::Function); #[doc = "Get the `validateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] #[wasm_bindgen(method, getter = "validateAssertion")] pub fn get_validate_assertion(this: &RtcIdentityProvider) -> ::js_sys::Function; #[doc = "Change the `validateAssertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] #[wasm_bindgen(method, setter = "validateAssertion")] pub fn set_validate_assertion(this: &RtcIdentityProvider, val: &::js_sys::Function); } 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.set_generate_assertion(generate_assertion); ret.set_validate_assertion(validate_assertion); ret } #[deprecated = "Use `set_generate_assertion()` instead."] pub fn generate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_generate_assertion(val); self } #[deprecated = "Use `set_validate_assertion()` instead."] pub fn validate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_validate_assertion(val); self } } web-sys-0.3.81/src/features/gen_RtcIdentityProviderDetails.rs000064400000000000000000000046541046102023000224060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, getter = "domain")] pub fn get_domain(this: &RtcIdentityProviderDetails) -> ::alloc::string::String; #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, setter = "domain")] pub fn set_domain(this: &RtcIdentityProviderDetails, val: &str); #[doc = "Get the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, getter = "protocol")] pub fn get_protocol(this: &RtcIdentityProviderDetails) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, setter = "protocol")] pub fn set_protocol(this: &RtcIdentityProviderDetails, val: &str); } 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.set_domain(domain); ret } #[deprecated = "Use `set_domain()` instead."] pub fn domain(&mut self, val: &str) -> &mut Self { self.set_domain(val); self } #[deprecated = "Use `set_protocol()` instead."] pub fn protocol(&mut self, val: &str) -> &mut Self { self.set_protocol(val); self } } web-sys-0.3.81/src/features/gen_RtcIdentityProviderOptions.rs000064400000000000000000000065501046102023000224510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "peerIdentity")] pub fn get_peer_identity(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, setter = "peerIdentity")] pub fn set_peer_identity(this: &RtcIdentityProviderOptions, val: &str); #[doc = "Get the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "protocol")] pub fn get_protocol(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, setter = "protocol")] pub fn set_protocol(this: &RtcIdentityProviderOptions, val: &str); #[doc = "Get the `usernameHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "usernameHint")] pub fn get_username_hint(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usernameHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, setter = "usernameHint")] pub fn set_username_hint(this: &RtcIdentityProviderOptions, val: &str); } 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 } #[deprecated = "Use `set_peer_identity()` instead."] pub fn peer_identity(&mut self, val: &str) -> &mut Self { self.set_peer_identity(val); self } #[deprecated = "Use `set_protocol()` instead."] pub fn protocol(&mut self, val: &str) -> &mut Self { self.set_protocol(val); self } #[deprecated = "Use `set_username_hint()` instead."] pub fn username_hint(&mut self, val: &str) -> &mut Self { self.set_username_hint(val); self } } impl Default for RtcIdentityProviderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcIdentityProviderRegistrar.rs000064400000000000000000000023601046102023000227530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_RtcIdentityValidationResult.rs000064400000000000000000000047771046102023000226050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `contents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, getter = "contents")] pub fn get_contents(this: &RtcIdentityValidationResult) -> ::alloc::string::String; #[doc = "Change the `contents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, setter = "contents")] pub fn set_contents(this: &RtcIdentityValidationResult, val: &str); #[doc = "Get the `identity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, getter = "identity")] pub fn get_identity(this: &RtcIdentityValidationResult) -> ::alloc::string::String; #[doc = "Change the `identity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, setter = "identity")] pub fn set_identity(this: &RtcIdentityValidationResult, val: &str); } 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.set_contents(contents); ret.set_identity(identity); ret } #[deprecated = "Use `set_contents()` instead."] pub fn contents(&mut self, val: &str) -> &mut Self { self.set_contents(val); self } #[deprecated = "Use `set_identity()` instead."] pub fn identity(&mut self, val: &str) -> &mut Self { self.set_identity(val); self } } web-sys-0.3.81/src/features/gen_RtcInboundRtpStreamStats.rs000064400000000000000000000471621046102023000220540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcInboundRtpStreamStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcInboundRtpStreamStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcInboundRtpStreamStats, val: RtcStatsType); #[doc = "Get the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateMean")] pub fn get_bitrate_mean(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateMean")] pub fn set_bitrate_mean(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateStdDev")] pub fn get_bitrate_std_dev(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateStdDev")] pub fn set_bitrate_std_dev(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] pub fn get_codec_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "codecId")] pub fn set_codec_id(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "firCount")] pub fn get_fir_count(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "firCount")] pub fn set_fir_count(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateMean")] pub fn get_framerate_mean(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateMean")] pub fn set_framerate_mean(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateStdDev")] pub fn get_framerate_std_dev(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateStdDev")] pub fn set_framerate_std_dev(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "isRemote")] pub fn get_is_remote(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "isRemote")] pub fn set_is_remote(this: &RtcInboundRtpStreamStats, val: bool); #[doc = "Get the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] pub fn get_media_track_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaTrackId")] pub fn set_media_track_id(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] pub fn get_media_type(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaType")] pub fn set_media_type(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "nackCount")] pub fn get_nack_count(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "nackCount")] pub fn set_nack_count(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "pliCount")] pub fn get_pli_count(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "pliCount")] pub fn set_pli_count(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] pub fn get_remote_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "remoteId")] pub fn set_remote_id(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] pub fn get_transport_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "transportId")] pub fn set_transport_id(this: &RtcInboundRtpStreamStats, val: &str); #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `discardedPackets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "discardedPackets")] pub fn get_discarded_packets(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `discardedPackets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "discardedPackets")] pub fn set_discarded_packets(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framesDecoded")] pub fn get_frames_decoded(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framesDecoded")] pub fn set_frames_decoded(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `jitter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "jitter")] pub fn get_jitter(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `jitter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "jitter")] pub fn set_jitter(this: &RtcInboundRtpStreamStats, val: f64); #[doc = "Get the `packetsLost` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "packetsLost")] pub fn get_packets_lost(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `packetsLost` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "packetsLost")] pub fn set_packets_lost(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `packetsReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "packetsReceived")] pub fn get_packets_received(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `packetsReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "packetsReceived")] pub fn set_packets_received(this: &RtcInboundRtpStreamStats, val: u32); #[doc = "Get the `roundTripTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "roundTripTime")] pub fn get_round_trip_time(this: &RtcInboundRtpStreamStats) -> Option; #[doc = "Change the `roundTripTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "roundTripTime")] pub fn set_round_trip_time(this: &RtcInboundRtpStreamStats, val: i32); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_bitrate_mean()` instead."] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { self.set_bitrate_mean(val); self } #[deprecated = "Use `set_bitrate_std_dev()` instead."] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { self.set_bitrate_std_dev(val); self } #[deprecated = "Use `set_codec_id()` instead."] pub fn codec_id(&mut self, val: &str) -> &mut Self { self.set_codec_id(val); self } #[deprecated = "Use `set_fir_count()` instead."] pub fn fir_count(&mut self, val: u32) -> &mut Self { self.set_fir_count(val); self } #[deprecated = "Use `set_framerate_mean()` instead."] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { self.set_framerate_mean(val); self } #[deprecated = "Use `set_framerate_std_dev()` instead."] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { self.set_framerate_std_dev(val); self } #[deprecated = "Use `set_is_remote()` instead."] pub fn is_remote(&mut self, val: bool) -> &mut Self { self.set_is_remote(val); self } #[deprecated = "Use `set_media_track_id()` instead."] pub fn media_track_id(&mut self, val: &str) -> &mut Self { self.set_media_track_id(val); self } #[deprecated = "Use `set_media_type()` instead."] pub fn media_type(&mut self, val: &str) -> &mut Self { self.set_media_type(val); self } #[deprecated = "Use `set_nack_count()` instead."] pub fn nack_count(&mut self, val: u32) -> &mut Self { self.set_nack_count(val); self } #[deprecated = "Use `set_pli_count()` instead."] pub fn pli_count(&mut self, val: u32) -> &mut Self { self.set_pli_count(val); self } #[deprecated = "Use `set_remote_id()` instead."] pub fn remote_id(&mut self, val: &str) -> &mut Self { self.set_remote_id(val); self } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: &str) -> &mut Self { self.set_ssrc(val); self } #[deprecated = "Use `set_transport_id()` instead."] pub fn transport_id(&mut self, val: &str) -> &mut Self { self.set_transport_id(val); self } #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: f64) -> &mut Self { self.set_bytes_received(val); self } #[deprecated = "Use `set_discarded_packets()` instead."] pub fn discarded_packets(&mut self, val: u32) -> &mut Self { self.set_discarded_packets(val); self } #[deprecated = "Use `set_frames_decoded()` instead."] pub fn frames_decoded(&mut self, val: u32) -> &mut Self { self.set_frames_decoded(val); self } #[deprecated = "Use `set_jitter()` instead."] pub fn jitter(&mut self, val: f64) -> &mut Self { self.set_jitter(val); self } #[deprecated = "Use `set_packets_lost()` instead."] pub fn packets_lost(&mut self, val: u32) -> &mut Self { self.set_packets_lost(val); self } #[deprecated = "Use `set_packets_received()` instead."] pub fn packets_received(&mut self, val: u32) -> &mut Self { self.set_packets_received(val); self } #[deprecated = "Use `set_round_trip_time()` instead."] pub fn round_trip_time(&mut self, val: i32) -> &mut Self { self.set_round_trip_time(val); self } } impl Default for RtcInboundRtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcMediaStreamStats.rs000064400000000000000000000114401046102023000207750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcMediaStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcMediaStreamStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcMediaStreamStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcMediaStreamStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcMediaStreamStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcMediaStreamStats, val: RtcStatsType); #[doc = "Get the `streamIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "streamIdentifier")] pub fn get_stream_identifier(this: &RtcMediaStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `streamIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, setter = "streamIdentifier")] pub fn set_stream_identifier(this: &RtcMediaStreamStats, val: &str); #[doc = "Get the `trackIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "trackIds")] pub fn get_track_ids(this: &RtcMediaStreamStats) -> Option<::js_sys::Array>; #[doc = "Change the `trackIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, setter = "trackIds")] pub fn set_track_ids(this: &RtcMediaStreamStats, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_stream_identifier()` instead."] pub fn stream_identifier(&mut self, val: &str) -> &mut Self { self.set_stream_identifier(val); self } #[deprecated = "Use `set_track_ids()` instead."] pub fn track_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_track_ids(val); self } } impl Default for RtcMediaStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcMediaStreamTrackStats.rs000064400000000000000000000347631046102023000217770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcMediaStreamTrackStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcMediaStreamTrackStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcMediaStreamTrackStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcMediaStreamTrackStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcMediaStreamTrackStats, val: RtcStatsType); #[doc = "Get the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "audioLevel")] pub fn get_audio_level(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "audioLevel")] pub fn set_audio_level(this: &RtcMediaStreamTrackStats, val: f64); #[doc = "Get the `echoReturnLoss` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "echoReturnLoss")] pub fn get_echo_return_loss(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `echoReturnLoss` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "echoReturnLoss")] pub fn set_echo_return_loss(this: &RtcMediaStreamTrackStats, val: f64); #[doc = "Get the `echoReturnLossEnhancement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "echoReturnLossEnhancement")] pub fn get_echo_return_loss_enhancement(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `echoReturnLossEnhancement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "echoReturnLossEnhancement")] pub fn set_echo_return_loss_enhancement(this: &RtcMediaStreamTrackStats, val: f64); #[doc = "Get the `frameHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "frameHeight")] pub fn get_frame_height(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `frameHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "frameHeight")] pub fn set_frame_height(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `frameWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "frameWidth")] pub fn get_frame_width(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `frameWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "frameWidth")] pub fn set_frame_width(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `framesCorrupted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesCorrupted")] pub fn get_frames_corrupted(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesCorrupted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesCorrupted")] pub fn set_frames_corrupted(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesDecoded")] pub fn get_frames_decoded(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesDecoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesDecoded")] pub fn set_frames_decoded(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `framesDropped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesDropped")] pub fn get_frames_dropped(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesDropped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesDropped")] pub fn set_frames_dropped(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `framesPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesPerSecond")] pub fn get_frames_per_second(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesPerSecond` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesPerSecond")] pub fn set_frames_per_second(this: &RtcMediaStreamTrackStats, val: f64); #[doc = "Get the `framesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesReceived")] pub fn get_frames_received(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesReceived")] pub fn set_frames_received(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `framesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "framesSent")] pub fn get_frames_sent(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `framesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "framesSent")] pub fn set_frames_sent(this: &RtcMediaStreamTrackStats, val: u32); #[doc = "Get the `remoteSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "remoteSource")] pub fn get_remote_source(this: &RtcMediaStreamTrackStats) -> Option; #[doc = "Change the `remoteSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "remoteSource")] pub fn set_remote_source(this: &RtcMediaStreamTrackStats, val: bool); #[doc = "Get the `ssrcIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "ssrcIds")] pub fn get_ssrc_ids(this: &RtcMediaStreamTrackStats) -> Option<::js_sys::Array>; #[doc = "Change the `ssrcIds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "ssrcIds")] pub fn set_ssrc_ids(this: &RtcMediaStreamTrackStats, val: &::wasm_bindgen::JsValue); #[doc = "Get the `trackIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "trackIdentifier")] pub fn get_track_identifier(this: &RtcMediaStreamTrackStats) -> Option<::alloc::string::String>; #[doc = "Change the `trackIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, setter = "trackIdentifier")] pub fn set_track_identifier(this: &RtcMediaStreamTrackStats, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_audio_level()` instead."] pub fn audio_level(&mut self, val: f64) -> &mut Self { self.set_audio_level(val); self } #[deprecated = "Use `set_echo_return_loss()` instead."] pub fn echo_return_loss(&mut self, val: f64) -> &mut Self { self.set_echo_return_loss(val); self } #[deprecated = "Use `set_echo_return_loss_enhancement()` instead."] pub fn echo_return_loss_enhancement(&mut self, val: f64) -> &mut Self { self.set_echo_return_loss_enhancement(val); self } #[deprecated = "Use `set_frame_height()` instead."] pub fn frame_height(&mut self, val: u32) -> &mut Self { self.set_frame_height(val); self } #[deprecated = "Use `set_frame_width()` instead."] pub fn frame_width(&mut self, val: u32) -> &mut Self { self.set_frame_width(val); self } #[deprecated = "Use `set_frames_corrupted()` instead."] pub fn frames_corrupted(&mut self, val: u32) -> &mut Self { self.set_frames_corrupted(val); self } #[deprecated = "Use `set_frames_decoded()` instead."] pub fn frames_decoded(&mut self, val: u32) -> &mut Self { self.set_frames_decoded(val); self } #[deprecated = "Use `set_frames_dropped()` instead."] pub fn frames_dropped(&mut self, val: u32) -> &mut Self { self.set_frames_dropped(val); self } #[deprecated = "Use `set_frames_per_second()` instead."] pub fn frames_per_second(&mut self, val: f64) -> &mut Self { self.set_frames_per_second(val); self } #[deprecated = "Use `set_frames_received()` instead."] pub fn frames_received(&mut self, val: u32) -> &mut Self { self.set_frames_received(val); self } #[deprecated = "Use `set_frames_sent()` instead."] pub fn frames_sent(&mut self, val: u32) -> &mut Self { self.set_frames_sent(val); self } #[deprecated = "Use `set_remote_source()` instead."] pub fn remote_source(&mut self, val: bool) -> &mut Self { self.set_remote_source(val); self } #[deprecated = "Use `set_ssrc_ids()` instead."] pub fn ssrc_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ssrc_ids(val); self } #[deprecated = "Use `set_track_identifier()` instead."] pub fn track_identifier(&mut self, val: &str) -> &mut Self { self.set_track_identifier(val); self } } impl Default for RtcMediaStreamTrackStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcOfferAnswerOptions.rs000064400000000000000000000016511046102023000213630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 } } impl Default for RtcOfferAnswerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcOfferOptions.rs000064400000000000000000000063741046102023000202120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `iceRestart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, getter = "iceRestart")] pub fn get_ice_restart(this: &RtcOfferOptions) -> Option; #[doc = "Change the `iceRestart` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, setter = "iceRestart")] pub fn set_ice_restart(this: &RtcOfferOptions, val: bool); #[doc = "Get the `offerToReceiveAudio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, getter = "offerToReceiveAudio")] pub fn get_offer_to_receive_audio(this: &RtcOfferOptions) -> Option; #[doc = "Change the `offerToReceiveAudio` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, setter = "offerToReceiveAudio")] pub fn set_offer_to_receive_audio(this: &RtcOfferOptions, val: bool); #[doc = "Get the `offerToReceiveVideo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, getter = "offerToReceiveVideo")] pub fn get_offer_to_receive_video(this: &RtcOfferOptions) -> Option; #[doc = "Change the `offerToReceiveVideo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] #[wasm_bindgen(method, setter = "offerToReceiveVideo")] pub fn set_offer_to_receive_video(this: &RtcOfferOptions, val: bool); } 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 } #[deprecated = "Use `set_ice_restart()` instead."] pub fn ice_restart(&mut self, val: bool) -> &mut Self { self.set_ice_restart(val); self } #[deprecated = "Use `set_offer_to_receive_audio()` instead."] pub fn offer_to_receive_audio(&mut self, val: bool) -> &mut Self { self.set_offer_to_receive_audio(val); self } #[deprecated = "Use `set_offer_to_receive_video()` instead."] pub fn offer_to_receive_video(&mut self, val: bool) -> &mut Self { self.set_offer_to_receive_video(val); self } } impl Default for RtcOfferOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcOutboundRtpStreamStats.rs000064400000000000000000000441521046102023000222510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcOutboundRtpStreamStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcOutboundRtpStreamStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcOutboundRtpStreamStats, val: RtcStatsType); #[doc = "Get the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateMean")] pub fn get_bitrate_mean(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateMean")] pub fn set_bitrate_mean(this: &RtcOutboundRtpStreamStats, val: f64); #[doc = "Get the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateStdDev")] pub fn get_bitrate_std_dev(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateStdDev")] pub fn set_bitrate_std_dev(this: &RtcOutboundRtpStreamStats, val: f64); #[doc = "Get the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] pub fn get_codec_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "codecId")] pub fn set_codec_id(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "firCount")] pub fn get_fir_count(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "firCount")] pub fn set_fir_count(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateMean")] pub fn get_framerate_mean(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateMean")] pub fn set_framerate_mean(this: &RtcOutboundRtpStreamStats, val: f64); #[doc = "Get the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateStdDev")] pub fn get_framerate_std_dev(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateStdDev")] pub fn set_framerate_std_dev(this: &RtcOutboundRtpStreamStats, val: f64); #[doc = "Get the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "isRemote")] pub fn get_is_remote(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "isRemote")] pub fn set_is_remote(this: &RtcOutboundRtpStreamStats, val: bool); #[doc = "Get the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] pub fn get_media_track_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaTrackId")] pub fn set_media_track_id(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] pub fn get_media_type(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaType")] pub fn set_media_type(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "nackCount")] pub fn get_nack_count(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "nackCount")] pub fn set_nack_count(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "pliCount")] pub fn get_pli_count(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "pliCount")] pub fn set_pli_count(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] pub fn get_remote_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "remoteId")] pub fn set_remote_id(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] pub fn get_transport_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "transportId")] pub fn set_transport_id(this: &RtcOutboundRtpStreamStats, val: &str); #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &RtcOutboundRtpStreamStats, val: f64); #[doc = "Get the `droppedFrames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "droppedFrames")] pub fn get_dropped_frames(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `droppedFrames` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "droppedFrames")] pub fn set_dropped_frames(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `framesEncoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "framesEncoded")] pub fn get_frames_encoded(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `framesEncoded` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "framesEncoded")] pub fn set_frames_encoded(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `packetsSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "packetsSent")] pub fn get_packets_sent(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `packetsSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "packetsSent")] pub fn set_packets_sent(this: &RtcOutboundRtpStreamStats, val: u32); #[doc = "Get the `targetBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "targetBitrate")] pub fn get_target_bitrate(this: &RtcOutboundRtpStreamStats) -> Option; #[doc = "Change the `targetBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, setter = "targetBitrate")] pub fn set_target_bitrate(this: &RtcOutboundRtpStreamStats, val: f64); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_bitrate_mean()` instead."] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { self.set_bitrate_mean(val); self } #[deprecated = "Use `set_bitrate_std_dev()` instead."] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { self.set_bitrate_std_dev(val); self } #[deprecated = "Use `set_codec_id()` instead."] pub fn codec_id(&mut self, val: &str) -> &mut Self { self.set_codec_id(val); self } #[deprecated = "Use `set_fir_count()` instead."] pub fn fir_count(&mut self, val: u32) -> &mut Self { self.set_fir_count(val); self } #[deprecated = "Use `set_framerate_mean()` instead."] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { self.set_framerate_mean(val); self } #[deprecated = "Use `set_framerate_std_dev()` instead."] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { self.set_framerate_std_dev(val); self } #[deprecated = "Use `set_is_remote()` instead."] pub fn is_remote(&mut self, val: bool) -> &mut Self { self.set_is_remote(val); self } #[deprecated = "Use `set_media_track_id()` instead."] pub fn media_track_id(&mut self, val: &str) -> &mut Self { self.set_media_track_id(val); self } #[deprecated = "Use `set_media_type()` instead."] pub fn media_type(&mut self, val: &str) -> &mut Self { self.set_media_type(val); self } #[deprecated = "Use `set_nack_count()` instead."] pub fn nack_count(&mut self, val: u32) -> &mut Self { self.set_nack_count(val); self } #[deprecated = "Use `set_pli_count()` instead."] pub fn pli_count(&mut self, val: u32) -> &mut Self { self.set_pli_count(val); self } #[deprecated = "Use `set_remote_id()` instead."] pub fn remote_id(&mut self, val: &str) -> &mut Self { self.set_remote_id(val); self } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: &str) -> &mut Self { self.set_ssrc(val); self } #[deprecated = "Use `set_transport_id()` instead."] pub fn transport_id(&mut self, val: &str) -> &mut Self { self.set_transport_id(val); self } #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { self.set_bytes_sent(val); self } #[deprecated = "Use `set_dropped_frames()` instead."] pub fn dropped_frames(&mut self, val: u32) -> &mut Self { self.set_dropped_frames(val); self } #[deprecated = "Use `set_frames_encoded()` instead."] pub fn frames_encoded(&mut self, val: u32) -> &mut Self { self.set_frames_encoded(val); self } #[deprecated = "Use `set_packets_sent()` instead."] pub fn packets_sent(&mut self, val: u32) -> &mut Self { self.set_packets_sent(val); self } #[deprecated = "Use `set_target_bitrate()` instead."] pub fn target_bitrate(&mut self, val: f64) -> &mut Self { self.set_target_bitrate(val); self } } impl Default for RtcOutboundRtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcPeerConnection.rs000064400000000000000000001460141046102023000205040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "RtcPeerConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = connectionState)] #[doc = "Getter for the `connectionState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/connectionState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcPeerConnectionState`*"] pub fn connection_state(this: &RtcPeerConnection) -> RtcPeerConnectionState; # [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<::alloc::string::String>; # [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 = onconnectionstatechange)] #[doc = "Getter for the `onconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn onconnectionstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "RTCPeerConnection" , js_name = onconnectionstatechange)] #[doc = "Setter for the `onconnectionstatechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onconnectionstatechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_onconnectionstatechange( 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_static)"] #[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_static)"] #[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 (catch , method , structural , js_class = "RTCPeerConnection" , js_name = setConfiguration)] #[doc = "The `setConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] pub fn set_configuration(this: &RtcPeerConnection) -> Result<(), JsValue>; #[cfg(feature = "RtcConfiguration")] # [wasm_bindgen (catch , method , structural , js_class = "RTCPeerConnection" , js_name = setConfiguration)] #[doc = "The `setConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] pub fn set_configuration_with_configuration( this: &RtcPeerConnection, configuration: &RtcConfiguration, ) -> Result<(), JsValue>; # [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; } web-sys-0.3.81/src/features/gen_RtcPeerConnectionIceErrorEvent.rs000064400000000000000000000064221046102023000231370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceErrorEvent , typescript_type = "RTCPeerConnectionIceErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcPeerConnectionIceErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub type RtcPeerConnectionIceErrorEvent; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = address)] #[doc = "Getter for the `address` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub fn address(this: &RtcPeerConnectionIceErrorEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , 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/RTCPeerConnectionIceErrorEvent/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub fn port(this: &RtcPeerConnectionIceErrorEvent) -> Option; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , 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/RTCPeerConnectionIceErrorEvent/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub fn url(this: &RtcPeerConnectionIceErrorEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = errorCode)] #[doc = "Getter for the `errorCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub fn error_code(this: &RtcPeerConnectionIceErrorEvent) -> u16; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = errorText)] #[doc = "Getter for the `errorText` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] pub fn error_text(this: &RtcPeerConnectionIceErrorEvent) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_RtcPeerConnectionIceEvent.rs000064400000000000000000000047631046102023000221330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_RtcPeerConnectionIceEventInit.rs000064400000000000000000000104141046102023000227450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &RtcPeerConnectionIceEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &RtcPeerConnectionIceEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &RtcPeerConnectionIceEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &RtcPeerConnectionIceEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &RtcPeerConnectionIceEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &RtcPeerConnectionIceEventInit, val: bool); #[cfg(feature = "RtcIceCandidate")] #[doc = "Get the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEventInit`*"] #[wasm_bindgen(method, getter = "candidate")] pub fn get_candidate(this: &RtcPeerConnectionIceEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "candidate")] pub fn set_candidate(this: &RtcPeerConnectionIceEventInit, val: Option<&RtcIceCandidate>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "RtcIceCandidate")] #[deprecated = "Use `set_candidate()` instead."] pub fn candidate(&mut self, val: Option<&RtcIceCandidate>) -> &mut Self { self.set_candidate(val); self } } impl Default for RtcPeerConnectionIceEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcPeerConnectionState.rs000064400000000000000000000007561046102023000215070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `RtcPeerConnectionState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionState`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum RtcPeerConnectionState { Closed = "closed", Failed = "failed", Disconnected = "disconnected", New = "new", Connecting = "connecting", Connected = "connected", } web-sys-0.3.81/src/features/gen_RtcPriorityType.rs000064400000000000000000000006201046102023000202440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcRtcpParameters.rs000064400000000000000000000045411046102023000205230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `cname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] #[wasm_bindgen(method, getter = "cname")] pub fn get_cname(this: &RtcRtcpParameters) -> Option<::alloc::string::String>; #[doc = "Change the `cname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] #[wasm_bindgen(method, setter = "cname")] pub fn set_cname(this: &RtcRtcpParameters, val: &str); #[doc = "Get the `reducedSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] #[wasm_bindgen(method, getter = "reducedSize")] pub fn get_reduced_size(this: &RtcRtcpParameters) -> Option; #[doc = "Change the `reducedSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] #[wasm_bindgen(method, setter = "reducedSize")] pub fn set_reduced_size(this: &RtcRtcpParameters, val: bool); } 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 } #[deprecated = "Use `set_cname()` instead."] pub fn cname(&mut self, val: &str) -> &mut Self { self.set_cname(val); self } #[deprecated = "Use `set_reduced_size()` instead."] pub fn reduced_size(&mut self, val: bool) -> &mut Self { self.set_reduced_size(val); self } } impl Default for RtcRtcpParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtpCapabilities.rs000064400000000000000000000051071046102023000206450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpCapabilities)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpCapabilities` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] pub type RtcRtpCapabilities; #[doc = "Get the `codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] #[wasm_bindgen(method, getter = "codecs")] pub fn get_codecs(this: &RtcRtpCapabilities) -> ::js_sys::Array; #[doc = "Change the `codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] #[wasm_bindgen(method, setter = "codecs")] pub fn set_codecs(this: &RtcRtpCapabilities, val: &::wasm_bindgen::JsValue); #[doc = "Get the `headerExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] #[wasm_bindgen(method, getter = "headerExtensions")] pub fn get_header_extensions(this: &RtcRtpCapabilities) -> ::js_sys::Array; #[doc = "Change the `headerExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] #[wasm_bindgen(method, setter = "headerExtensions")] pub fn set_header_extensions(this: &RtcRtpCapabilities, val: &::wasm_bindgen::JsValue); } impl RtcRtpCapabilities { #[doc = "Construct a new `RtcRtpCapabilities`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`*"] pub fn new( codecs: &::wasm_bindgen::JsValue, header_extensions: &::wasm_bindgen::JsValue, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_codecs(codecs); ret.set_header_extensions(header_extensions); ret } #[deprecated = "Use `set_codecs()` instead."] pub fn codecs(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_codecs(val); self } #[deprecated = "Use `set_header_extensions()` instead."] pub fn header_extensions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_header_extensions(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpCodecCapability.rs000064400000000000000000000076771046102023000213110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpCodecCapability)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpCodecCapability` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] pub type RtcRtpCodecCapability; #[doc = "Get the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "channels")] pub fn get_channels(this: &RtcRtpCodecCapability) -> Option; #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, setter = "channels")] pub fn set_channels(this: &RtcRtpCodecCapability, val: u16); #[doc = "Get the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "clockRate")] pub fn get_clock_rate(this: &RtcRtpCodecCapability) -> u32; #[doc = "Change the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, setter = "clockRate")] pub fn set_clock_rate(this: &RtcRtpCodecCapability, val: u32); #[doc = "Get the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "mimeType")] pub fn get_mime_type(this: &RtcRtpCodecCapability) -> ::alloc::string::String; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, setter = "mimeType")] pub fn set_mime_type(this: &RtcRtpCodecCapability, val: &str); #[doc = "Get the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "sdpFmtpLine")] pub fn get_sdp_fmtp_line(this: &RtcRtpCodecCapability) -> Option<::alloc::string::String>; #[doc = "Change the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, setter = "sdpFmtpLine")] pub fn set_sdp_fmtp_line(this: &RtcRtpCodecCapability, val: &str); } impl RtcRtpCodecCapability { #[doc = "Construct a new `RtcRtpCodecCapability`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] pub fn new(clock_rate: u32, mime_type: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_clock_rate(clock_rate); ret.set_mime_type(mime_type); ret } #[deprecated = "Use `set_channels()` instead."] pub fn channels(&mut self, val: u16) -> &mut Self { self.set_channels(val); self } #[deprecated = "Use `set_clock_rate()` instead."] pub fn clock_rate(&mut self, val: u32) -> &mut Self { self.set_clock_rate(val); self } #[deprecated = "Use `set_mime_type()` instead."] pub fn mime_type(&mut self, val: &str) -> &mut Self { self.set_mime_type(val); self } #[deprecated = "Use `set_sdp_fmtp_line()` instead."] pub fn sdp_fmtp_line(&mut self, val: &str) -> &mut Self { self.set_sdp_fmtp_line(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpCodecParameters.rs000064400000000000000000000113161046102023000213140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "channels")] pub fn get_channels(this: &RtcRtpCodecParameters) -> Option; #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, setter = "channels")] pub fn set_channels(this: &RtcRtpCodecParameters, val: u16); #[doc = "Get the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "clockRate")] pub fn get_clock_rate(this: &RtcRtpCodecParameters) -> Option; #[doc = "Change the `clockRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, setter = "clockRate")] pub fn set_clock_rate(this: &RtcRtpCodecParameters, val: u32); #[doc = "Get the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "mimeType")] pub fn get_mime_type(this: &RtcRtpCodecParameters) -> Option<::alloc::string::String>; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, setter = "mimeType")] pub fn set_mime_type(this: &RtcRtpCodecParameters, val: &str); #[doc = "Get the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "payloadType")] pub fn get_payload_type(this: &RtcRtpCodecParameters) -> Option; #[doc = "Change the `payloadType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, setter = "payloadType")] pub fn set_payload_type(this: &RtcRtpCodecParameters, val: u16); #[doc = "Get the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "sdpFmtpLine")] pub fn get_sdp_fmtp_line(this: &RtcRtpCodecParameters) -> Option<::alloc::string::String>; #[doc = "Change the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, setter = "sdpFmtpLine")] pub fn set_sdp_fmtp_line(this: &RtcRtpCodecParameters, val: &str); } 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 } #[deprecated = "Use `set_channels()` instead."] pub fn channels(&mut self, val: u16) -> &mut Self { self.set_channels(val); self } #[deprecated = "Use `set_clock_rate()` instead."] pub fn clock_rate(&mut self, val: u32) -> &mut Self { self.set_clock_rate(val); self } #[deprecated = "Use `set_mime_type()` instead."] pub fn mime_type(&mut self, val: &str) -> &mut Self { self.set_mime_type(val); self } #[deprecated = "Use `set_payload_type()` instead."] pub fn payload_type(&mut self, val: u16) -> &mut Self { self.set_payload_type(val); self } #[deprecated = "Use `set_sdp_fmtp_line()` instead."] pub fn sdp_fmtp_line(&mut self, val: &str) -> &mut Self { self.set_sdp_fmtp_line(val); self } } impl Default for RtcRtpCodecParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtpContributingSource.rs000064400000000000000000000062501046102023000221040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, getter = "audioLevel")] pub fn get_audio_level(this: &RtcRtpContributingSource) -> Option; #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, setter = "audioLevel")] pub fn set_audio_level(this: &RtcRtpContributingSource, val: f64); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &RtcRtpContributingSource) -> u32; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &RtcRtpContributingSource, val: u32); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcRtpContributingSource) -> f64; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcRtpContributingSource, val: f64); } 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.set_source(source); ret.set_timestamp(timestamp); ret } #[deprecated = "Use `set_audio_level()` instead."] pub fn audio_level(&mut self, val: f64) -> &mut Self { self.set_audio_level(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: u32) -> &mut Self { self.set_source(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpEncodingParameters.rs000064400000000000000000000240461046102023000220310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "active")] pub fn get_active(this: &RtcRtpEncodingParameters) -> Option; #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, setter = "active")] pub fn set_active(this: &RtcRtpEncodingParameters, val: bool); #[cfg(feature = "RtcDegradationPreference")] #[doc = "Get the `degradationPreference` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDegradationPreference`, `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "degradationPreference")] pub fn get_degradation_preference( this: &RtcRtpEncodingParameters, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "degradationPreference")] pub fn set_degradation_preference( this: &RtcRtpEncodingParameters, val: RtcDegradationPreference, ); #[cfg(feature = "RtcFecParameters")] #[doc = "Get the `fec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`, `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "fec")] pub fn get_fec(this: &RtcRtpEncodingParameters) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "fec")] pub fn set_fec(this: &RtcRtpEncodingParameters, val: &RtcFecParameters); #[doc = "Get the `maxBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "maxBitrate")] pub fn get_max_bitrate(this: &RtcRtpEncodingParameters) -> Option; #[doc = "Change the `maxBitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, setter = "maxBitrate")] pub fn set_max_bitrate(this: &RtcRtpEncodingParameters, val: u32); #[cfg(feature = "RtcPriorityType")] #[doc = "Get the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPriorityType`, `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "priority")] pub fn get_priority(this: &RtcRtpEncodingParameters) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "priority")] pub fn set_priority(this: &RtcRtpEncodingParameters, val: RtcPriorityType); #[doc = "Get the `rid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "rid")] pub fn get_rid(this: &RtcRtpEncodingParameters) -> Option<::alloc::string::String>; #[doc = "Change the `rid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, setter = "rid")] pub fn set_rid(this: &RtcRtpEncodingParameters, val: &str); #[cfg(feature = "RtcRtxParameters")] #[doc = "Get the `rtx` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`, `RtcRtxParameters`*"] #[wasm_bindgen(method, getter = "rtx")] pub fn get_rtx(this: &RtcRtpEncodingParameters) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "rtx")] pub fn set_rtx(this: &RtcRtpEncodingParameters, val: &RtcRtxParameters); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `scalabilityMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scalabilityMode")] pub fn get_scalability_mode(this: &RtcRtpEncodingParameters) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scalabilityMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "scalabilityMode")] pub fn set_scalability_mode(this: &RtcRtpEncodingParameters, val: &str); #[doc = "Get the `scaleResolutionDownBy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "scaleResolutionDownBy")] pub fn get_scale_resolution_down_by(this: &RtcRtpEncodingParameters) -> Option; #[doc = "Change the `scaleResolutionDownBy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, setter = "scaleResolutionDownBy")] pub fn set_scale_resolution_down_by(this: &RtcRtpEncodingParameters, val: f32); #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcRtpEncodingParameters) -> Option; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcRtpEncodingParameters, val: u32); } 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 } #[deprecated = "Use `set_active()` instead."] pub fn active(&mut self, val: bool) -> &mut Self { self.set_active(val); self } #[cfg(feature = "RtcDegradationPreference")] #[deprecated = "Use `set_degradation_preference()` instead."] pub fn degradation_preference(&mut self, val: RtcDegradationPreference) -> &mut Self { self.set_degradation_preference(val); self } #[cfg(feature = "RtcFecParameters")] #[deprecated = "Use `set_fec()` instead."] pub fn fec(&mut self, val: &RtcFecParameters) -> &mut Self { self.set_fec(val); self } #[deprecated = "Use `set_max_bitrate()` instead."] pub fn max_bitrate(&mut self, val: u32) -> &mut Self { self.set_max_bitrate(val); self } #[cfg(feature = "RtcPriorityType")] #[deprecated = "Use `set_priority()` instead."] pub fn priority(&mut self, val: RtcPriorityType) -> &mut Self { self.set_priority(val); self } #[deprecated = "Use `set_rid()` instead."] pub fn rid(&mut self, val: &str) -> &mut Self { self.set_rid(val); self } #[cfg(feature = "RtcRtxParameters")] #[deprecated = "Use `set_rtx()` instead."] pub fn rtx(&mut self, val: &RtcRtxParameters) -> &mut Self { self.set_rtx(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_scalability_mode()` instead."] pub fn scalability_mode(&mut self, val: &str) -> &mut Self { self.set_scalability_mode(val); self } #[deprecated = "Use `set_scale_resolution_down_by()` instead."] pub fn scale_resolution_down_by(&mut self, val: f32) -> &mut Self { self.set_scale_resolution_down_by(val); self } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: u32) -> &mut Self { self.set_ssrc(val); self } } impl Default for RtcRtpEncodingParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtpHeaderExtensionCapability.rs000064400000000000000000000032501046102023000233400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpHeaderExtensionCapability)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpHeaderExtensionCapability` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] pub type RtcRtpHeaderExtensionCapability; #[doc = "Get the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] #[wasm_bindgen(method, getter = "uri")] pub fn get_uri(this: &RtcRtpHeaderExtensionCapability) -> ::alloc::string::String; #[doc = "Change the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] #[wasm_bindgen(method, setter = "uri")] pub fn set_uri(this: &RtcRtpHeaderExtensionCapability, val: &str); } impl RtcRtpHeaderExtensionCapability { #[doc = "Construct a new `RtcRtpHeaderExtensionCapability`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] pub fn new(uri: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_uri(uri); ret } #[deprecated = "Use `set_uri()` instead."] pub fn uri(&mut self, val: &str) -> &mut Self { self.set_uri(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpHeaderExtensionParameters.rs000064400000000000000000000063671046102023000233760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, getter = "encrypted")] pub fn get_encrypted(this: &RtcRtpHeaderExtensionParameters) -> Option; #[doc = "Change the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, setter = "encrypted")] pub fn set_encrypted(this: &RtcRtpHeaderExtensionParameters, val: bool); #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcRtpHeaderExtensionParameters) -> Option; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcRtpHeaderExtensionParameters, val: u16); #[doc = "Get the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, getter = "uri")] pub fn get_uri(this: &RtcRtpHeaderExtensionParameters) -> Option<::alloc::string::String>; #[doc = "Change the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, setter = "uri")] pub fn set_uri(this: &RtcRtpHeaderExtensionParameters, val: &str); } 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 } #[deprecated = "Use `set_encrypted()` instead."] pub fn encrypted(&mut self, val: bool) -> &mut Self { self.set_encrypted(val); self } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: u16) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_uri()` instead."] pub fn uri(&mut self, val: &str) -> &mut Self { self.set_uri(val); self } } impl Default for RtcRtpHeaderExtensionParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtpParameters.rs000064400000000000000000000101731046102023000203560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, getter = "codecs")] pub fn get_codecs(this: &RtcRtpParameters) -> Option<::js_sys::Array>; #[doc = "Change the `codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, setter = "codecs")] pub fn set_codecs(this: &RtcRtpParameters, val: &::wasm_bindgen::JsValue); #[doc = "Get the `encodings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, getter = "encodings")] pub fn get_encodings(this: &RtcRtpParameters) -> Option<::js_sys::Array>; #[doc = "Change the `encodings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, setter = "encodings")] pub fn set_encodings(this: &RtcRtpParameters, val: &::wasm_bindgen::JsValue); #[doc = "Get the `headerExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, getter = "headerExtensions")] pub fn get_header_extensions(this: &RtcRtpParameters) -> Option<::js_sys::Array>; #[doc = "Change the `headerExtensions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] #[wasm_bindgen(method, setter = "headerExtensions")] pub fn set_header_extensions(this: &RtcRtpParameters, val: &::wasm_bindgen::JsValue); #[cfg(feature = "RtcRtcpParameters")] #[doc = "Get the `rtcp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`, `RtcRtpParameters`*"] #[wasm_bindgen(method, getter = "rtcp")] pub fn get_rtcp(this: &RtcRtpParameters) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "rtcp")] pub fn set_rtcp(this: &RtcRtpParameters, val: &RtcRtcpParameters); } 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 } #[deprecated = "Use `set_codecs()` instead."] pub fn codecs(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_codecs(val); self } #[deprecated = "Use `set_encodings()` instead."] pub fn encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_encodings(val); self } #[deprecated = "Use `set_header_extensions()` instead."] pub fn header_extensions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_header_extensions(val); self } #[cfg(feature = "RtcRtcpParameters")] #[deprecated = "Use `set_rtcp()` instead."] pub fn rtcp(&mut self, val: &RtcRtcpParameters) -> &mut Self { self.set_rtcp(val); self } } impl Default for RtcRtpParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtpReceiver.rs000064400000000000000000000161251046102023000200220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)] #[doc = "Getter for the `jitterBufferTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn jitter_buffer_target(this: &RtcRtpReceiver) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , catch , method , setter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)] #[doc = "Setter for the `jitterBufferTarget` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_jitter_buffer_target( this: &RtcRtpReceiver, value: Option, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , 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/RTCRtpReceiver/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &RtcRtpReceiver) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransform")] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpReceiver" , js_name = transform)] #[doc = "Setter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_transform_opt_s_frame_transform( this: &RtcRtpReceiver, value: Option<&SFrameTransform>, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcRtpScriptTransform")] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpReceiver" , js_name = transform)] #[doc = "Setter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpScriptTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_transform_opt_rtc_rtp_script_transform( this: &RtcRtpReceiver, value: Option<&RtcRtpScriptTransform>, ); #[cfg(feature = "RtcRtpCapabilities")] # [wasm_bindgen (static_method_of = RtcRtpReceiver , js_class = "RTCRtpReceiver" , js_name = getCapabilities)] #[doc = "The `getCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getCapabilities_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`, `RtcRtpReceiver`*"] pub fn get_capabilities(kind: &str) -> Option; # [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; } web-sys-0.3.81/src/features/gen_RtcRtpScriptTransform.rs000064400000000000000000000071111046102023000214110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpScriptTransform , typescript_type = "RTCRtpScriptTransform")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpScriptTransform` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcRtpScriptTransform; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Worker")] #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")] #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(worker: &Worker) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Worker")] #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")] #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options( worker: &Worker, options: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Worker")] #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")] #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options_and_transfer( worker: &Worker, options: &::wasm_bindgen::JsValue, transfer: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.81/src/features/gen_RtcRtpScriptTransformer.rs000064400000000000000000000165211046102023000217450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = RTCRtpScriptTransformer , typescript_type = "RTCRtpScriptTransformer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcRtpScriptTransformer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcRtpScriptTransformer; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &RtcRtpScriptTransformer) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &RtcRtpScriptTransformer) -> WritableStream; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = onkeyframerequest)] #[doc = "Getter for the `onkeyframerequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onkeyframerequest(this: &RtcRtpScriptTransformer) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpScriptTransformer" , js_name = onkeyframerequest)] #[doc = "Setter for the `onkeyframerequest` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onkeyframerequest( this: &RtcRtpScriptTransformer, value: Option<&::js_sys::Function>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , 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/RTCRtpScriptTransformer/options)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn options(this: &RtcRtpScriptTransformer) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = generateKeyFrame)] #[doc = "The `generateKeyFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn generate_key_frame(this: &RtcRtpScriptTransformer) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = generateKeyFrame)] #[doc = "The `generateKeyFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn generate_key_frame_with_rid( this: &RtcRtpScriptTransformer, rid: &str, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = sendKeyFrameRequest)] #[doc = "The `sendKeyFrameRequest()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn send_key_frame_request(this: &RtcRtpScriptTransformer) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_RtcRtpSender.rs000064400000000000000000000210421046102023000174700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , 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/RTCRtpSender/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &RtcRtpSender) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransform")] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpSender" , js_name = transform)] #[doc = "Setter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_transform_opt_s_frame_transform( this: &RtcRtpSender, value: Option<&SFrameTransform>, ); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcRtpScriptTransform")] # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpSender" , js_name = transform)] #[doc = "Setter for the `transform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `RtcRtpSender`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_transform_opt_rtc_rtp_script_transform( this: &RtcRtpSender, value: Option<&RtcRtpScriptTransform>, ); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = generateKeyFrame)] #[doc = "The `generateKeyFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/generateKeyFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn generate_key_frame(this: &RtcRtpSender) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = generateKeyFrame)] #[doc = "The `generateKeyFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/generateKeyFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn generate_key_frame_with_rids( this: &RtcRtpSender, rids: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(feature = "RtcRtpCapabilities")] # [wasm_bindgen (static_method_of = RtcRtpSender , js_class = "RTCRtpSender" , js_name = getCapabilities)] #[doc = "The `getCapabilities()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getCapabilities_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`, `RtcRtpSender`*"] pub fn get_capabilities(kind: &str) -> 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; } web-sys-0.3.81/src/features/gen_RtcRtpSourceEntry.rs000064400000000000000000000117411046102023000205370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, getter = "audioLevel")] pub fn get_audio_level(this: &RtcRtpSourceEntry) -> Option; #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, setter = "audioLevel")] pub fn set_audio_level(this: &RtcRtpSourceEntry, val: f64); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &RtcRtpSourceEntry) -> u32; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &RtcRtpSourceEntry, val: u32); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcRtpSourceEntry) -> f64; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcRtpSourceEntry, val: f64); #[doc = "Get the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, getter = "voiceActivityFlag")] pub fn get_voice_activity_flag(this: &RtcRtpSourceEntry) -> Option; #[doc = "Change the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] #[wasm_bindgen(method, setter = "voiceActivityFlag")] pub fn set_voice_activity_flag(this: &RtcRtpSourceEntry, val: Option); #[cfg(feature = "RtcRtpSourceEntryType")] #[doc = "Get the `sourceType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`, `RtcRtpSourceEntryType`*"] #[wasm_bindgen(method, getter = "sourceType")] pub fn get_source_type(this: &RtcRtpSourceEntry) -> RtcRtpSourceEntryType; #[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`*"] #[wasm_bindgen(method, setter = "sourceType")] pub fn set_source_type(this: &RtcRtpSourceEntry, val: RtcRtpSourceEntryType); } 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.set_source(source); ret.set_timestamp(timestamp); ret.set_source_type(source_type); ret } #[deprecated = "Use `set_audio_level()` instead."] pub fn audio_level(&mut self, val: f64) -> &mut Self { self.set_audio_level(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: u32) -> &mut Self { self.set_source(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[deprecated = "Use `set_voice_activity_flag()` instead."] pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { self.set_voice_activity_flag(val); self } #[cfg(feature = "RtcRtpSourceEntryType")] #[deprecated = "Use `set_source_type()` instead."] pub fn source_type(&mut self, val: RtcRtpSourceEntryType) -> &mut Self { self.set_source_type(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpSourceEntryType.rs000064400000000000000000000006311046102023000213750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcRtpSynchronizationSource.rs000064400000000000000000000101241046102023000226310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, getter = "audioLevel")] pub fn get_audio_level(this: &RtcRtpSynchronizationSource) -> Option; #[doc = "Change the `audioLevel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, setter = "audioLevel")] pub fn set_audio_level(this: &RtcRtpSynchronizationSource, val: f64); #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &RtcRtpSynchronizationSource) -> u32; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &RtcRtpSynchronizationSource, val: u32); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcRtpSynchronizationSource) -> f64; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcRtpSynchronizationSource, val: f64); #[doc = "Get the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, getter = "voiceActivityFlag")] pub fn get_voice_activity_flag(this: &RtcRtpSynchronizationSource) -> Option; #[doc = "Change the `voiceActivityFlag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] #[wasm_bindgen(method, setter = "voiceActivityFlag")] pub fn set_voice_activity_flag(this: &RtcRtpSynchronizationSource, val: Option); } 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.set_source(source); ret.set_timestamp(timestamp); ret } #[deprecated = "Use `set_audio_level()` instead."] pub fn audio_level(&mut self, val: f64) -> &mut Self { self.set_audio_level(val); self } #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: u32) -> &mut Self { self.set_source(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[deprecated = "Use `set_voice_activity_flag()` instead."] pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { self.set_voice_activity_flag(val); self } } web-sys-0.3.81/src/features/gen_RtcRtpTransceiver.rs000064400000000000000000000132361046102023000205430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; #[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) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = setCodecPreferences)] #[doc = "The `setCodecPreferences()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] pub fn set_codec_preferences(this: &RtcRtpTransceiver, codecs: &::wasm_bindgen::JsValue); # [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); } web-sys-0.3.81/src/features/gen_RtcRtpTransceiverDirection.rs000064400000000000000000000007411046102023000224010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", Stopped = "stopped", } web-sys-0.3.81/src/features/gen_RtcRtpTransceiverInit.rs000064400000000000000000000070501046102023000213640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "RtcRtpTransceiverDirection")] #[doc = "Get the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverDirection`, `RtcRtpTransceiverInit`*"] #[wasm_bindgen(method, getter = "direction")] pub fn get_direction(this: &RtcRtpTransceiverInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "direction")] pub fn set_direction(this: &RtcRtpTransceiverInit, val: RtcRtpTransceiverDirection); #[doc = "Get the `sendEncodings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] #[wasm_bindgen(method, getter = "sendEncodings")] pub fn get_send_encodings(this: &RtcRtpTransceiverInit) -> Option<::js_sys::Array>; #[doc = "Change the `sendEncodings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] #[wasm_bindgen(method, setter = "sendEncodings")] pub fn set_send_encodings(this: &RtcRtpTransceiverInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] #[wasm_bindgen(method, getter = "streams")] pub fn get_streams(this: &RtcRtpTransceiverInit) -> Option<::js_sys::Array>; #[doc = "Change the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] #[wasm_bindgen(method, setter = "streams")] pub fn set_streams(this: &RtcRtpTransceiverInit, val: &::wasm_bindgen::JsValue); } 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")] #[deprecated = "Use `set_direction()` instead."] pub fn direction(&mut self, val: RtcRtpTransceiverDirection) -> &mut Self { self.set_direction(val); self } #[deprecated = "Use `set_send_encodings()` instead."] pub fn send_encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_send_encodings(val); self } #[deprecated = "Use `set_streams()` instead."] pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_streams(val); self } } impl Default for RtcRtpTransceiverInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcRtxParameters.rs000064400000000000000000000030661046102023000203710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcRtxParameters) -> Option; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcRtxParameters, val: u32); } 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 } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: u32) -> &mut Self { self.set_ssrc(val); self } } impl Default for RtcRtxParameters { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcSdpType.rs000064400000000000000000000006161046102023000171560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcSessionDescription.rs000064400000000000000000000103241046102023000214120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_RtcSessionDescriptionInit.rs000064400000000000000000000050261046102023000222410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `sdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] #[wasm_bindgen(method, getter = "sdp")] pub fn get_sdp(this: &RtcSessionDescriptionInit) -> Option<::alloc::string::String>; #[doc = "Change the `sdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] #[wasm_bindgen(method, setter = "sdp")] pub fn set_sdp(this: &RtcSessionDescriptionInit, val: &str); #[cfg(feature = "RtcSdpType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescriptionInit`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcSessionDescriptionInit) -> RtcSdpType; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcSessionDescriptionInit, val: RtcSdpType); } 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.set_type(type_); ret } #[deprecated = "Use `set_sdp()` instead."] pub fn sdp(&mut self, val: &str) -> &mut Self { self.set_sdp(val); self } #[cfg(feature = "RtcSdpType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcSdpType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_RtcSignalingState.rs000064400000000000000000000010431046102023000204750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcStats.rs000064400000000000000000000057341046102023000166720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`, `RtcStatsType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcStats, val: RtcStatsType); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } } impl Default for RtcStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcStatsIceCandidatePairState.rs000064400000000000000000000010051046102023000227100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcStatsIceCandidateType.rs000064400000000000000000000007201046102023000217400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcStatsReport.rs000064400000000000000000000070731046102023000200640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "RTCStatsReport" , 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/RTCStatsReport/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn size(this: &RtcStatsReport) -> u32; # [wasm_bindgen (method , structural , js_class = "RTCStatsReport" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn entries(this: &RtcStatsReport) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "RTCStatsReport" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn for_each(this: &RtcStatsReport, callback: &::js_sys::Function) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "RTCStatsReport" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn get(this: &RtcStatsReport, key: &str) -> Option<::js_sys::Object>; # [wasm_bindgen (method , structural , js_class = "RTCStatsReport" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn has(this: &RtcStatsReport, key: &str) -> bool; # [wasm_bindgen (method , structural , js_class = "RTCStatsReport" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn keys(this: &RtcStatsReport) -> ::js_sys::Iterator; # [wasm_bindgen (method , structural , js_class = "RTCStatsReport" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] pub fn values(this: &RtcStatsReport) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_RtcStatsReportInternal.rs000064400000000000000000000453471046102023000215670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `closed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "closed")] pub fn get_closed(this: &RtcStatsReportInternal) -> Option; #[doc = "Change the `closed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "closed")] pub fn set_closed(this: &RtcStatsReportInternal, val: bool); #[doc = "Get the `codecStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "codecStats")] pub fn get_codec_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `codecStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "codecStats")] pub fn set_codec_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `iceCandidatePairStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "iceCandidatePairStats")] pub fn get_ice_candidate_pair_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `iceCandidatePairStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "iceCandidatePairStats")] pub fn set_ice_candidate_pair_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `iceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "iceCandidateStats")] pub fn get_ice_candidate_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `iceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "iceCandidateStats")] pub fn set_ice_candidate_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `iceComponentStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "iceComponentStats")] pub fn get_ice_component_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `iceComponentStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "iceComponentStats")] pub fn set_ice_component_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `iceRestarts` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "iceRestarts")] pub fn get_ice_restarts(this: &RtcStatsReportInternal) -> Option; #[doc = "Change the `iceRestarts` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "iceRestarts")] pub fn set_ice_restarts(this: &RtcStatsReportInternal, val: u32); #[doc = "Get the `iceRollbacks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "iceRollbacks")] pub fn get_ice_rollbacks(this: &RtcStatsReportInternal) -> Option; #[doc = "Change the `iceRollbacks` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "iceRollbacks")] pub fn set_ice_rollbacks(this: &RtcStatsReportInternal, val: u32); #[doc = "Get the `inboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "inboundRTPStreamStats")] pub fn get_inbound_rtp_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `inboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "inboundRTPStreamStats")] pub fn set_inbound_rtp_stream_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `localSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "localSdp")] pub fn get_local_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `localSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "localSdp")] pub fn set_local_sdp(this: &RtcStatsReportInternal, val: &str); #[doc = "Get the `mediaStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "mediaStreamStats")] pub fn get_media_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `mediaStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "mediaStreamStats")] pub fn set_media_stream_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `mediaStreamTrackStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "mediaStreamTrackStats")] pub fn get_media_stream_track_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `mediaStreamTrackStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "mediaStreamTrackStats")] pub fn set_media_stream_track_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `offerer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "offerer")] pub fn get_offerer(this: &RtcStatsReportInternal) -> Option; #[doc = "Change the `offerer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "offerer")] pub fn set_offerer(this: &RtcStatsReportInternal, val: bool); #[doc = "Get the `outboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "outboundRTPStreamStats")] pub fn get_outbound_rtp_stream_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `outboundRTPStreamStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "outboundRTPStreamStats")] pub fn set_outbound_rtp_stream_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `pcid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "pcid")] pub fn get_pcid(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `pcid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "pcid")] pub fn set_pcid(this: &RtcStatsReportInternal, val: &str); #[doc = "Get the `rawLocalCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "rawLocalCandidates")] pub fn get_raw_local_candidates(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `rawLocalCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "rawLocalCandidates")] pub fn set_raw_local_candidates(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `rawRemoteCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "rawRemoteCandidates")] pub fn get_raw_remote_candidates(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `rawRemoteCandidates` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "rawRemoteCandidates")] pub fn set_raw_remote_candidates(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `remoteSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "remoteSdp")] pub fn get_remote_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `remoteSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "remoteSdp")] pub fn set_remote_sdp(this: &RtcStatsReportInternal, val: &str); #[doc = "Get the `rtpContributingSourceStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "rtpContributingSourceStats")] pub fn get_rtp_contributing_source_stats( this: &RtcStatsReportInternal, ) -> Option<::js_sys::Array>; #[doc = "Change the `rtpContributingSourceStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "rtpContributingSourceStats")] pub fn set_rtp_contributing_source_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcStatsReportInternal) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcStatsReportInternal, val: f64); #[doc = "Get the `transportStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "transportStats")] pub fn get_transport_stats(this: &RtcStatsReportInternal) -> Option<::js_sys::Array>; #[doc = "Change the `transportStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "transportStats")] pub fn set_transport_stats(this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue); #[doc = "Get the `trickledIceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "trickledIceCandidateStats")] pub fn get_trickled_ice_candidate_stats( this: &RtcStatsReportInternal, ) -> Option<::js_sys::Array>; #[doc = "Change the `trickledIceCandidateStats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, setter = "trickledIceCandidateStats")] pub fn set_trickled_ice_candidate_stats( this: &RtcStatsReportInternal, val: &::wasm_bindgen::JsValue, ); } 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 } #[deprecated = "Use `set_closed()` instead."] pub fn closed(&mut self, val: bool) -> &mut Self { self.set_closed(val); self } #[deprecated = "Use `set_codec_stats()` instead."] pub fn codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_codec_stats(val); self } #[deprecated = "Use `set_ice_candidate_pair_stats()` instead."] pub fn ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ice_candidate_pair_stats(val); self } #[deprecated = "Use `set_ice_candidate_stats()` instead."] pub fn ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ice_candidate_stats(val); self } #[deprecated = "Use `set_ice_component_stats()` instead."] pub fn ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_ice_component_stats(val); self } #[deprecated = "Use `set_ice_restarts()` instead."] pub fn ice_restarts(&mut self, val: u32) -> &mut Self { self.set_ice_restarts(val); self } #[deprecated = "Use `set_ice_rollbacks()` instead."] pub fn ice_rollbacks(&mut self, val: u32) -> &mut Self { self.set_ice_rollbacks(val); self } #[deprecated = "Use `set_inbound_rtp_stream_stats()` instead."] pub fn inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_inbound_rtp_stream_stats(val); self } #[deprecated = "Use `set_local_sdp()` instead."] pub fn local_sdp(&mut self, val: &str) -> &mut Self { self.set_local_sdp(val); self } #[deprecated = "Use `set_media_stream_stats()` instead."] pub fn media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_media_stream_stats(val); self } #[deprecated = "Use `set_media_stream_track_stats()` instead."] pub fn media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_media_stream_track_stats(val); self } #[deprecated = "Use `set_offerer()` instead."] pub fn offerer(&mut self, val: bool) -> &mut Self { self.set_offerer(val); self } #[deprecated = "Use `set_outbound_rtp_stream_stats()` instead."] pub fn outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_outbound_rtp_stream_stats(val); self } #[deprecated = "Use `set_pcid()` instead."] pub fn pcid(&mut self, val: &str) -> &mut Self { self.set_pcid(val); self } #[deprecated = "Use `set_raw_local_candidates()` instead."] pub fn raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_raw_local_candidates(val); self } #[deprecated = "Use `set_raw_remote_candidates()` instead."] pub fn raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_raw_remote_candidates(val); self } #[deprecated = "Use `set_remote_sdp()` instead."] pub fn remote_sdp(&mut self, val: &str) -> &mut Self { self.set_remote_sdp(val); self } #[deprecated = "Use `set_rtp_contributing_source_stats()` instead."] pub fn rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_rtp_contributing_source_stats(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[deprecated = "Use `set_transport_stats()` instead."] pub fn transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_transport_stats(val); self } #[deprecated = "Use `set_trickled_ice_candidate_stats()` instead."] pub fn trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_trickled_ice_candidate_stats(val); self } } impl Default for RtcStatsReportInternal { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcStatsType.rs000064400000000000000000000011121046102023000175160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_RtcTrackEvent.rs000064400000000000000000000062061046102023000176350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_RtcTrackEventInit.rs000064400000000000000000000155351046102023000204660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &RtcTrackEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &RtcTrackEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &RtcTrackEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &RtcTrackEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &RtcTrackEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &RtcTrackEventInit, val: bool); #[cfg(feature = "RtcRtpReceiver")] #[doc = "Get the `receiver` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "receiver")] pub fn get_receiver(this: &RtcTrackEventInit) -> RtcRtpReceiver; #[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`*"] #[wasm_bindgen(method, setter = "receiver")] pub fn set_receiver(this: &RtcTrackEventInit, val: &RtcRtpReceiver); #[doc = "Get the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "streams")] pub fn get_streams(this: &RtcTrackEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `streams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] #[wasm_bindgen(method, setter = "streams")] pub fn set_streams(this: &RtcTrackEventInit, val: &::wasm_bindgen::JsValue); #[cfg(feature = "MediaStreamTrack")] #[doc = "Get the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "track")] pub fn get_track(this: &RtcTrackEventInit) -> MediaStreamTrack; #[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`*"] #[wasm_bindgen(method, setter = "track")] pub fn set_track(this: &RtcTrackEventInit, val: &MediaStreamTrack); #[cfg(feature = "RtcRtpTransceiver")] #[doc = "Get the `transceiver` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEventInit`*"] #[wasm_bindgen(method, getter = "transceiver")] pub fn get_transceiver(this: &RtcTrackEventInit) -> RtcRtpTransceiver; #[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`*"] #[wasm_bindgen(method, setter = "transceiver")] pub fn set_transceiver(this: &RtcTrackEventInit, val: &RtcRtpTransceiver); } 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.set_receiver(receiver); ret.set_track(track); ret.set_transceiver(transceiver); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "RtcRtpReceiver")] #[deprecated = "Use `set_receiver()` instead."] pub fn receiver(&mut self, val: &RtcRtpReceiver) -> &mut Self { self.set_receiver(val); self } #[deprecated = "Use `set_streams()` instead."] pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_streams(val); self } #[cfg(feature = "MediaStreamTrack")] #[deprecated = "Use `set_track()` instead."] pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { self.set_track(val); self } #[cfg(feature = "RtcRtpTransceiver")] #[deprecated = "Use `set_transceiver()` instead."] pub fn transceiver(&mut self, val: &RtcRtpTransceiver) -> &mut Self { self.set_transceiver(val); self } } web-sys-0.3.81/src/features/gen_RtcTransformEvent.rs000064400000000000000000000033251046102023000205430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = RTCTransformEvent , typescript_type = "RTCTransformEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `RtcTransformEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTransformEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransformEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type RtcTransformEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "RtcRtpScriptTransformer")] # [wasm_bindgen (structural , method , getter , js_class = "RTCTransformEvent" , js_name = transformer)] #[doc = "Getter for the `transformer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTransformEvent/transformer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`, `RtcTransformEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transformer(this: &RtcTransformEvent) -> RtcRtpScriptTransformer; } web-sys-0.3.81/src/features/gen_RtcTransportStats.rs000064400000000000000000000112121046102023000205730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcTransportStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcTransportStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcTransportStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcTransportStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcTransportStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcTransportStats, val: RtcStatsType); #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &RtcTransportStats) -> Option; #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &RtcTransportStats, val: u32); #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &RtcTransportStats) -> Option; #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &RtcTransportStats, val: u32); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: u32) -> &mut Self { self.set_bytes_received(val); self } #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: u32) -> &mut Self { self.set_bytes_sent(val); self } } impl Default for RtcTransportStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcdtmfSender.rs000064400000000000000000000066771046102023000176760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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, ); } web-sys-0.3.81/src/features/gen_RtcdtmfToneChangeEvent.rs000064400000000000000000000045231046102023000214570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_RtcdtmfToneChangeEventInit.rs000064400000000000000000000077311046102023000223070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &RtcdtmfToneChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &RtcdtmfToneChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &RtcdtmfToneChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &RtcdtmfToneChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &RtcdtmfToneChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &RtcdtmfToneChangeEventInit, val: bool); #[doc = "Get the `tone` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, getter = "tone")] pub fn get_tone(this: &RtcdtmfToneChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `tone` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, setter = "tone")] pub fn set_tone(this: &RtcdtmfToneChangeEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_tone()` instead."] pub fn tone(&mut self, val: &str) -> &mut Self { self.set_tone(val); self } } impl Default for RtcdtmfToneChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcrtpContributingSourceStats.rs000064400000000000000000000121541046102023000231630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcrtpContributingSourceStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcrtpContributingSourceStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcrtpContributingSourceStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcrtpContributingSourceStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcrtpContributingSourceStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcrtpContributingSourceStats, val: RtcStatsType); #[doc = "Get the `contributorSsrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "contributorSsrc")] pub fn get_contributor_ssrc(this: &RtcrtpContributingSourceStats) -> Option; #[doc = "Change the `contributorSsrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, setter = "contributorSsrc")] pub fn set_contributor_ssrc(this: &RtcrtpContributingSourceStats, val: u32); #[doc = "Get the `inboundRtpStreamId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "inboundRtpStreamId")] pub fn get_inbound_rtp_stream_id( this: &RtcrtpContributingSourceStats, ) -> Option<::alloc::string::String>; #[doc = "Change the `inboundRtpStreamId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, setter = "inboundRtpStreamId")] pub fn set_inbound_rtp_stream_id(this: &RtcrtpContributingSourceStats, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_contributor_ssrc()` instead."] pub fn contributor_ssrc(&mut self, val: u32) -> &mut Self { self.set_contributor_ssrc(val); self } #[deprecated = "Use `set_inbound_rtp_stream_id()` instead."] pub fn inbound_rtp_stream_id(&mut self, val: &str) -> &mut Self { self.set_inbound_rtp_stream_id(val); self } } impl Default for RtcrtpContributingSourceStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_RtcrtpStreamStats.rs000064400000000000000000000331251046102023000205670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &RtcrtpStreamStats, val: f64); #[cfg(feature = "RtcStatsType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &RtcrtpStreamStats) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &RtcrtpStreamStats, val: RtcStatsType); #[doc = "Get the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateMean")] pub fn get_bitrate_mean(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `bitrateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateMean")] pub fn set_bitrate_mean(this: &RtcrtpStreamStats, val: f64); #[doc = "Get the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "bitrateStdDev")] pub fn get_bitrate_std_dev(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `bitrateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "bitrateStdDev")] pub fn set_bitrate_std_dev(this: &RtcrtpStreamStats, val: f64); #[doc = "Get the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] pub fn get_codec_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "codecId")] pub fn set_codec_id(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "firCount")] pub fn get_fir_count(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `firCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "firCount")] pub fn set_fir_count(this: &RtcrtpStreamStats, val: u32); #[doc = "Get the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateMean")] pub fn get_framerate_mean(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `framerateMean` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateMean")] pub fn set_framerate_mean(this: &RtcrtpStreamStats, val: f64); #[doc = "Get the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "framerateStdDev")] pub fn get_framerate_std_dev(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `framerateStdDev` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "framerateStdDev")] pub fn set_framerate_std_dev(this: &RtcrtpStreamStats, val: f64); #[doc = "Get the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "isRemote")] pub fn get_is_remote(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `isRemote` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "isRemote")] pub fn set_is_remote(this: &RtcrtpStreamStats, val: bool); #[doc = "Get the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] pub fn get_media_track_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaTrackId")] pub fn set_media_track_id(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] pub fn get_media_type(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "mediaType")] pub fn set_media_type(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "nackCount")] pub fn get_nack_count(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `nackCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "nackCount")] pub fn set_nack_count(this: &RtcrtpStreamStats, val: u32); #[doc = "Get the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "pliCount")] pub fn get_pli_count(this: &RtcrtpStreamStats) -> Option; #[doc = "Change the `pliCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "pliCount")] pub fn set_pli_count(this: &RtcrtpStreamStats, val: u32); #[doc = "Get the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] pub fn get_remote_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "remoteId")] pub fn set_remote_id(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] pub fn get_ssrc(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "ssrc")] pub fn set_ssrc(this: &RtcrtpStreamStats, val: &str); #[doc = "Get the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] pub fn get_transport_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, setter = "transportId")] pub fn set_transport_id(this: &RtcrtpStreamStats, val: &str); } 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 } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(feature = "RtcStatsType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_bitrate_mean()` instead."] pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { self.set_bitrate_mean(val); self } #[deprecated = "Use `set_bitrate_std_dev()` instead."] pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { self.set_bitrate_std_dev(val); self } #[deprecated = "Use `set_codec_id()` instead."] pub fn codec_id(&mut self, val: &str) -> &mut Self { self.set_codec_id(val); self } #[deprecated = "Use `set_fir_count()` instead."] pub fn fir_count(&mut self, val: u32) -> &mut Self { self.set_fir_count(val); self } #[deprecated = "Use `set_framerate_mean()` instead."] pub fn framerate_mean(&mut self, val: f64) -> &mut Self { self.set_framerate_mean(val); self } #[deprecated = "Use `set_framerate_std_dev()` instead."] pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { self.set_framerate_std_dev(val); self } #[deprecated = "Use `set_is_remote()` instead."] pub fn is_remote(&mut self, val: bool) -> &mut Self { self.set_is_remote(val); self } #[deprecated = "Use `set_media_track_id()` instead."] pub fn media_track_id(&mut self, val: &str) -> &mut Self { self.set_media_track_id(val); self } #[deprecated = "Use `set_media_type()` instead."] pub fn media_type(&mut self, val: &str) -> &mut Self { self.set_media_type(val); self } #[deprecated = "Use `set_nack_count()` instead."] pub fn nack_count(&mut self, val: u32) -> &mut Self { self.set_nack_count(val); self } #[deprecated = "Use `set_pli_count()` instead."] pub fn pli_count(&mut self, val: u32) -> &mut Self { self.set_pli_count(val); self } #[deprecated = "Use `set_remote_id()` instead."] pub fn remote_id(&mut self, val: &str) -> &mut Self { self.set_remote_id(val); self } #[deprecated = "Use `set_ssrc()` instead."] pub fn ssrc(&mut self, val: &str) -> &mut Self { self.set_ssrc(val); self } #[deprecated = "Use `set_transport_id()` instead."] pub fn transport_id(&mut self, val: &str) -> &mut Self { self.set_transport_id(val); self } } impl Default for RtcrtpStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SFrameTransform.rs000064400000000000000000000200241046102023000201610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = SFrameTransform , typescript_type = "SFrameTransform")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SFrameTransform` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SFrameTransform; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , 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/SFrameTransform/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onerror(this: &SFrameTransform) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "SFrameTransform" , 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/SFrameTransform/onerror)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onerror(this: &SFrameTransform, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &SFrameTransform) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &SFrameTransform) -> WritableStream; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "SFrameTransform")] #[doc = "The `new SFrameTransform(..)` constructor, creating a new instance of `SFrameTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/SFrameTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformOptions")] #[wasm_bindgen(catch, constructor, js_class = "SFrameTransform")] #[doc = "The `new SFrameTransform(..)` constructor, creating a new instance of `SFrameTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/SFrameTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`, `SFrameTransformOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options(options: &SFrameTransformOptions) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CryptoKey")] # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)] #[doc = "The `setEncryptionKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_encryption_key(this: &SFrameTransform, key: &CryptoKey) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CryptoKey")] # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)] #[doc = "The `setEncryptionKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_encryption_key_with_u32( this: &SFrameTransform, key: &CryptoKey, key_id: u32, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CryptoKey")] # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)] #[doc = "The `setEncryptionKey()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_encryption_key_with_f64( this: &SFrameTransform, key: &CryptoKey, key_id: f64, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_SFrameTransformErrorEvent.rs000064400000000000000000000104671046102023000222070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = SFrameTransformErrorEvent , typescript_type = "SFrameTransformErrorEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SFrameTransformErrorEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransformErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SFrameTransformErrorEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformErrorEventType")] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransformErrorEvent" , js_name = errorType)] #[doc = "Getter for the `errorType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransformErrorEvent/errorType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEvent`, `SFrameTransformErrorEventType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn error_type(this: &SFrameTransformErrorEvent) -> SFrameTransformErrorEventType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransformErrorEvent" , js_name = keyID)] #[doc = "Getter for the `keyID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransformErrorEvent/keyID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn key_id(this: &SFrameTransformErrorEvent) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransformErrorEvent" , 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/SFrameTransformErrorEvent/frame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame(this: &SFrameTransformErrorEvent) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformErrorEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SFrameTransformErrorEvent")] #[doc = "The `new SFrameTransformErrorEvent(..)` constructor, creating a new instance of `SFrameTransformErrorEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransformErrorEvent/SFrameTransformErrorEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEvent`, `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &SFrameTransformErrorEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_SFrameTransformErrorEventInit.rs000064400000000000000000000241451046102023000230310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SFrameTransformErrorEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SFrameTransformErrorEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SFrameTransformErrorEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SFrameTransformErrorEventInit) -> Option; #[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: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SFrameTransformErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SFrameTransformErrorEventInit) -> Option; #[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: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SFrameTransformErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SFrameTransformErrorEventInit) -> Option; #[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: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SFrameTransformErrorEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformErrorEventType")] #[doc = "Get the `errorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "errorType")] pub fn get_error_type(this: &SFrameTransformErrorEventInit) -> SFrameTransformErrorEventType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformErrorEventType")] #[doc = "Change the `errorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "errorType")] pub fn set_error_type(this: &SFrameTransformErrorEventInit, val: SFrameTransformErrorEventType); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `frame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frame")] pub fn get_frame(this: &SFrameTransformErrorEventInit) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `frame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frame")] pub fn set_frame(this: &SFrameTransformErrorEventInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `keyID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "keyID")] pub fn get_key_id(this: &SFrameTransformErrorEventInit) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `keyID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "keyID")] pub fn set_key_id(this: &SFrameTransformErrorEventInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl SFrameTransformErrorEventInit { #[cfg(feature = "SFrameTransformErrorEventType")] #[doc = "Construct a new `SFrameTransformErrorEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventInit`, `SFrameTransformErrorEventType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error_type: SFrameTransformErrorEventType, frame: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error_type(error_type); ret.set_frame(frame); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformErrorEventType")] #[deprecated = "Use `set_error_type()` instead."] pub fn error_type(&mut self, val: SFrameTransformErrorEventType) -> &mut Self { self.set_error_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_frame()` instead."] pub fn frame(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_frame(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_key_id()` instead."] pub fn key_id(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_key_id(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } } web-sys-0.3.81/src/features/gen_SFrameTransformErrorEventType.rs000064400000000000000000000012761046102023000230470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `SFrameTransformErrorEventType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformErrorEventType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SFrameTransformErrorEventType { Authentication = "authentication", KeyId = "keyID", Syntax = "syntax", } web-sys-0.3.81/src/features/gen_SFrameTransformOptions.rs000064400000000000000000000057601046102023000215470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SFrameTransformOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SFrameTransformOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SFrameTransformOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformRole")] #[doc = "Get the `role` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformOptions`, `SFrameTransformRole`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "role")] pub fn get_role(this: &SFrameTransformOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SFrameTransformRole")] #[doc = "Change the `role` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformOptions`, `SFrameTransformRole`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "role")] pub fn set_role(this: &SFrameTransformOptions, val: SFrameTransformRole); } #[cfg(web_sys_unstable_apis)] impl SFrameTransformOptions { #[doc = "Construct a new `SFrameTransformOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "SFrameTransformRole")] #[deprecated = "Use `set_role()` instead."] pub fn role(&mut self, val: SFrameTransformRole) -> &mut Self { self.set_role(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SFrameTransformOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SFrameTransformRole.rs000064400000000000000000000011771046102023000210130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `SFrameTransformRole` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SFrameTransformRole`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SFrameTransformRole { Encrypt = "encrypt", Decrypt = "decrypt", } web-sys-0.3.81/src/features/gen_SaveFilePickerOptions.rs000064400000000000000000000204471046102023000213310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SaveFilePickerOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SaveFilePickerOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SaveFilePickerOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "excludeAcceptAllOption")] pub fn get_exclude_accept_all_option(this: &SaveFilePickerOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `excludeAcceptAllOption` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "excludeAcceptAllOption")] pub fn set_exclude_accept_all_option(this: &SaveFilePickerOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &SaveFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &SaveFilePickerOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "startIn")] pub fn get_start_in(this: &SaveFilePickerOptions) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `startIn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "startIn")] pub fn set_start_in(this: &SaveFilePickerOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "types")] pub fn get_types(this: &SaveFilePickerOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `types` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "types")] pub fn set_types(this: &SaveFilePickerOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `suggestedName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "suggestedName")] pub fn get_suggested_name(this: &SaveFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `suggestedName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "suggestedName")] pub fn set_suggested_name(this: &SaveFilePickerOptions, val: Option<&str>); } #[cfg(web_sys_unstable_apis)] impl SaveFilePickerOptions { #[doc = "Construct a new `SaveFilePickerOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_exclude_accept_all_option()` instead."] pub fn exclude_accept_all_option(&mut self, val: bool) -> &mut Self { self.set_exclude_accept_all_option(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_start_in()` instead."] pub fn start_in(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_start_in(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_types()` instead."] pub fn types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_types(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_suggested_name()` instead."] pub fn suggested_name(&mut self, val: Option<&str>) -> &mut Self { self.set_suggested_name(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SaveFilePickerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Scheduler.rs000064400000000000000000000046131046102023000170340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Scheduler , typescript_type = "Scheduler")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Scheduler` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduler`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Scheduler; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Scheduler" , js_name = postTask)] #[doc = "The `postTask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler/postTask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduler`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn post_task(this: &Scheduler, callback: &::js_sys::Function) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SchedulerPostTaskOptions")] # [wasm_bindgen (method , structural , js_class = "Scheduler" , js_name = postTask)] #[doc = "The `postTask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler/postTask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn post_task_with_options( this: &Scheduler, callback: &::js_sys::Function, options: &SchedulerPostTaskOptions, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_SchedulerPostTaskOptions.rs000064400000000000000000000133711046102023000221020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SchedulerPostTaskOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SchedulerPostTaskOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SchedulerPostTaskOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "delay")] pub fn get_delay(this: &SchedulerPostTaskOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `delay` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "delay")] pub fn set_delay(this: &SchedulerPostTaskOptions, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Get the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`, `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "priority")] pub fn get_priority(this: &SchedulerPostTaskOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`, `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "priority")] pub fn set_priority(this: &SchedulerPostTaskOptions, val: TaskPriority); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &SchedulerPostTaskOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &SchedulerPostTaskOptions, val: &AbortSignal); } #[cfg(web_sys_unstable_apis)] impl SchedulerPostTaskOptions { #[doc = "Construct a new `SchedulerPostTaskOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_delay()` instead."] pub fn delay(&mut self, val: f64) -> &mut Self { self.set_delay(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[deprecated = "Use `set_priority()` instead."] pub fn priority(&mut self, val: TaskPriority) -> &mut Self { self.set_priority(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SchedulerPostTaskOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Scheduling.rs000064400000000000000000000046041046102023000172030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Scheduling , typescript_type = "Scheduling")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Scheduling` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduling`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Scheduling; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Scheduling" , js_name = isInputPending)] #[doc = "The `isInputPending()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling/isInputPending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduling`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_input_pending(this: &Scheduling) -> bool; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "IsInputPendingOptions")] # [wasm_bindgen (method , structural , js_class = "Scheduling" , js_name = isInputPending)] #[doc = "The `isInputPending()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling/isInputPending)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`, `Scheduling`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_input_pending_with_is_input_pending_options( this: &Scheduling, is_input_pending_options: &IsInputPendingOptions, ) -> bool; } web-sys-0.3.81/src/features/gen_Screen.rs000064400000000000000000000164611046102023000163410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_ScreenColorGamut.rs000064400000000000000000000005711046102023000203310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScreenLuminance.rs000064400000000000000000000036251046102023000201730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ScreenOrientation.rs000064400000000000000000000071451046102023000205540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_ScriptProcessorNode.rs000064400000000000000000000042331046102023000210660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ScrollAreaEvent.rs000064400000000000000000000203461046102023000201500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_ScrollBehavior.rs000064400000000000000000000005731046102023000200350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScrollBoxObject.rs000064400000000000000000000120741046102023000201540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_ScrollIntoViewOptions.rs000064400000000000000000000073411046102023000214160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "ScrollBehavior")] #[doc = "Get the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollIntoViewOptions`*"] #[wasm_bindgen(method, getter = "behavior")] pub fn get_behavior(this: &ScrollIntoViewOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "behavior")] pub fn set_behavior(this: &ScrollIntoViewOptions, val: ScrollBehavior); #[cfg(feature = "ScrollLogicalPosition")] #[doc = "Get the `block` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] #[wasm_bindgen(method, getter = "block")] pub fn get_block(this: &ScrollIntoViewOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "block")] pub fn set_block(this: &ScrollIntoViewOptions, val: ScrollLogicalPosition); #[cfg(feature = "ScrollLogicalPosition")] #[doc = "Get the `inline` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] #[wasm_bindgen(method, getter = "inline")] pub fn get_inline(this: &ScrollIntoViewOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "inline")] pub fn set_inline(this: &ScrollIntoViewOptions, val: ScrollLogicalPosition); } 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")] #[deprecated = "Use `set_behavior()` instead."] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { self.set_behavior(val); self } #[cfg(feature = "ScrollLogicalPosition")] #[deprecated = "Use `set_block()` instead."] pub fn block(&mut self, val: ScrollLogicalPosition) -> &mut Self { self.set_block(val); self } #[cfg(feature = "ScrollLogicalPosition")] #[deprecated = "Use `set_inline()` instead."] pub fn inline(&mut self, val: ScrollLogicalPosition) -> &mut Self { self.set_inline(val); self } } impl Default for ScrollIntoViewOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ScrollLogicalPosition.rs000064400000000000000000000006431046102023000213730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScrollOptions.rs000064400000000000000000000033601046102023000177260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "ScrollBehavior")] #[doc = "Get the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollOptions`*"] #[wasm_bindgen(method, getter = "behavior")] pub fn get_behavior(this: &ScrollOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "behavior")] pub fn set_behavior(this: &ScrollOptions, val: ScrollBehavior); } 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")] #[deprecated = "Use `set_behavior()` instead."] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { self.set_behavior(val); self } } impl Default for ScrollOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ScrollRestoration.rs000064400000000000000000000005531046102023000206050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScrollSetting.rs000064400000000000000000000005231046102023000177060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScrollState.rs000064400000000000000000000005411046102023000173510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ScrollToOptions.rs000064400000000000000000000061411046102023000202310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "ScrollBehavior")] #[doc = "Get the `behavior` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollToOptions`*"] #[wasm_bindgen(method, getter = "behavior")] pub fn get_behavior(this: &ScrollToOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "behavior")] pub fn set_behavior(this: &ScrollToOptions, val: ScrollBehavior); #[doc = "Get the `left` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] #[wasm_bindgen(method, getter = "left")] pub fn get_left(this: &ScrollToOptions) -> Option; #[doc = "Change the `left` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] #[wasm_bindgen(method, setter = "left")] pub fn set_left(this: &ScrollToOptions, val: f64); #[doc = "Get the `top` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] #[wasm_bindgen(method, getter = "top")] pub fn get_top(this: &ScrollToOptions) -> Option; #[doc = "Change the `top` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] #[wasm_bindgen(method, setter = "top")] pub fn set_top(this: &ScrollToOptions, val: f64); } 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")] #[deprecated = "Use `set_behavior()` instead."] pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { self.set_behavior(val); self } #[deprecated = "Use `set_left()` instead."] pub fn left(&mut self, val: f64) -> &mut Self { self.set_left(val); self } #[deprecated = "Use `set_top()` instead."] pub fn top(&mut self, val: f64) -> &mut Self { self.set_top(val); self } } impl Default for ScrollToOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ScrollViewChangeEventInit.rs000064400000000000000000000101261046102023000221370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ScrollViewChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ScrollViewChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ScrollViewChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ScrollViewChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ScrollViewChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ScrollViewChangeEventInit, val: bool); #[cfg(feature = "ScrollState")] #[doc = "Get the `state` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ScrollState`, `ScrollViewChangeEventInit`*"] #[wasm_bindgen(method, getter = "state")] pub fn get_state(this: &ScrollViewChangeEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "state")] pub fn set_state(this: &ScrollViewChangeEventInit, val: ScrollState); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "ScrollState")] #[deprecated = "Use `set_state()` instead."] pub fn state(&mut self, val: ScrollState) -> &mut Self { self.set_state(val); self } } impl Default for ScrollViewChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SecurityPolicyViolationEvent.rs000064400000000000000000000207341046102023000227760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SecurityPolicyViolationEventDisposition.rs000064400000000000000000000006631046102023000252220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SecurityPolicyViolationEventInit.rs000064400000000000000000000333421046102023000236210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SecurityPolicyViolationEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SecurityPolicyViolationEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SecurityPolicyViolationEventInit, val: bool); #[doc = "Get the `blockedURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "blockedURI")] pub fn get_blocked_uri( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `blockedURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "blockedURI")] pub fn set_blocked_uri(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "columnNumber")] pub fn get_column_number(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `columnNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "columnNumber")] pub fn set_column_number(this: &SecurityPolicyViolationEventInit, val: i32); #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[doc = "Get the `disposition` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventDisposition`, `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "disposition")] pub fn get_disposition( this: &SecurityPolicyViolationEventInit, ) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "disposition")] pub fn set_disposition( this: &SecurityPolicyViolationEventInit, val: SecurityPolicyViolationEventDisposition, ); #[doc = "Get the `documentURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "documentURI")] pub fn get_document_uri( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `documentURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "documentURI")] pub fn set_document_uri(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "effectiveDirective")] pub fn get_effective_directive( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "effectiveDirective")] pub fn set_effective_directive(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "lineNumber")] pub fn get_line_number(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `lineNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "lineNumber")] pub fn set_line_number(this: &SecurityPolicyViolationEventInit, val: i32); #[doc = "Get the `originalPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "originalPolicy")] pub fn get_original_policy( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `originalPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "originalPolicy")] pub fn set_original_policy(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "referrer")] pub fn get_referrer(this: &SecurityPolicyViolationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "referrer")] pub fn set_referrer(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `sample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "sample")] pub fn get_sample(this: &SecurityPolicyViolationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `sample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "sample")] pub fn set_sample(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `sourceFile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "sourceFile")] pub fn get_source_file( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `sourceFile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "sourceFile")] pub fn set_source_file(this: &SecurityPolicyViolationEventInit, val: &str); #[doc = "Get the `statusCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "statusCode")] pub fn get_status_code(this: &SecurityPolicyViolationEventInit) -> Option; #[doc = "Change the `statusCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "statusCode")] pub fn set_status_code(this: &SecurityPolicyViolationEventInit, val: u16); #[doc = "Get the `violatedDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "violatedDirective")] pub fn get_violated_directive( this: &SecurityPolicyViolationEventInit, ) -> Option<::alloc::string::String>; #[doc = "Change the `violatedDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, setter = "violatedDirective")] pub fn set_violated_directive(this: &SecurityPolicyViolationEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_blocked_uri()` instead."] pub fn blocked_uri(&mut self, val: &str) -> &mut Self { self.set_blocked_uri(val); self } #[deprecated = "Use `set_column_number()` instead."] pub fn column_number(&mut self, val: i32) -> &mut Self { self.set_column_number(val); self } #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[deprecated = "Use `set_disposition()` instead."] pub fn disposition(&mut self, val: SecurityPolicyViolationEventDisposition) -> &mut Self { self.set_disposition(val); self } #[deprecated = "Use `set_document_uri()` instead."] pub fn document_uri(&mut self, val: &str) -> &mut Self { self.set_document_uri(val); self } #[deprecated = "Use `set_effective_directive()` instead."] pub fn effective_directive(&mut self, val: &str) -> &mut Self { self.set_effective_directive(val); self } #[deprecated = "Use `set_line_number()` instead."] pub fn line_number(&mut self, val: i32) -> &mut Self { self.set_line_number(val); self } #[deprecated = "Use `set_original_policy()` instead."] pub fn original_policy(&mut self, val: &str) -> &mut Self { self.set_original_policy(val); self } #[deprecated = "Use `set_referrer()` instead."] pub fn referrer(&mut self, val: &str) -> &mut Self { self.set_referrer(val); self } #[deprecated = "Use `set_sample()` instead."] pub fn sample(&mut self, val: &str) -> &mut Self { self.set_sample(val); self } #[deprecated = "Use `set_source_file()` instead."] pub fn source_file(&mut self, val: &str) -> &mut Self { self.set_source_file(val); self } #[deprecated = "Use `set_status_code()` instead."] pub fn status_code(&mut self, val: u16) -> &mut Self { self.set_status_code(val); self } #[deprecated = "Use `set_violated_directive()` instead."] pub fn violated_directive(&mut self, val: &str) -> &mut Self { self.set_violated_directive(val); self } } impl Default for SecurityPolicyViolationEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Selection.rs000064400000000000000000000337141046102023000170470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_SelectionMode.rs000064400000000000000000000006151046102023000176460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `SelectionMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SelectionMode`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SelectionMode { Select = "select", Start = "start", End = "end", Preserve = "preserve", } web-sys-0.3.81/src/features/gen_Serial.rs000064400000000000000000000136101046102023000163320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = Serial , typescript_type = "Serial")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Serial` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Serial; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Serial" , 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/Serial/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &Serial) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Serial" , 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/Serial/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &Serial, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Serial" , js_name = ondisconnect)] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &Serial) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Serial" , js_name = ondisconnect)] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &Serial, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Serial" , js_name = getPorts)] #[doc = "The `getPorts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial/getPorts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_ports(this: &Serial) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "Serial" , js_name = requestPort)] #[doc = "The `requestPort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial/requestPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_port(this: &Serial) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SerialPortRequestOptions")] # [wasm_bindgen (method , structural , js_class = "Serial" , js_name = requestPort)] #[doc = "The `requestPort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Serial/requestPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`, `SerialPortRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_port_with_options( this: &Serial, options: &SerialPortRequestOptions, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_SerialInputSignals.rs000064400000000000000000000160511046102023000206750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialInputSignals)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialInputSignals` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialInputSignals; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `clearToSend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clearToSend")] pub fn get_clear_to_send(this: &SerialInputSignals) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clearToSend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "clearToSend")] pub fn set_clear_to_send(this: &SerialInputSignals, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dataCarrierDetect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dataCarrierDetect")] pub fn get_data_carrier_detect(this: &SerialInputSignals) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dataCarrierDetect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dataCarrierDetect")] pub fn set_data_carrier_detect(this: &SerialInputSignals, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dataSetReady` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dataSetReady")] pub fn get_data_set_ready(this: &SerialInputSignals) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dataSetReady` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dataSetReady")] pub fn set_data_set_ready(this: &SerialInputSignals, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `ringIndicator` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "ringIndicator")] pub fn get_ring_indicator(this: &SerialInputSignals) -> bool; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `ringIndicator` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "ringIndicator")] pub fn set_ring_indicator(this: &SerialInputSignals, val: bool); } #[cfg(web_sys_unstable_apis)] impl SerialInputSignals { #[doc = "Construct a new `SerialInputSignals`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialInputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( clear_to_send: bool, data_carrier_detect: bool, data_set_ready: bool, ring_indicator: bool, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_clear_to_send(clear_to_send); ret.set_data_carrier_detect(data_carrier_detect); ret.set_data_set_ready(data_set_ready); ret.set_ring_indicator(ring_indicator); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_clear_to_send()` instead."] pub fn clear_to_send(&mut self, val: bool) -> &mut Self { self.set_clear_to_send(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data_carrier_detect()` instead."] pub fn data_carrier_detect(&mut self, val: bool) -> &mut Self { self.set_data_carrier_detect(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data_set_ready()` instead."] pub fn data_set_ready(&mut self, val: bool) -> &mut Self { self.set_data_set_ready(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_ring_indicator()` instead."] pub fn ring_indicator(&mut self, val: bool) -> &mut Self { self.set_ring_indicator(val); self } } web-sys-0.3.81/src/features/gen_SerialOptions.rs000064400000000000000000000226151046102023000177130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `baudRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "baudRate")] pub fn get_baud_rate(this: &SerialOptions) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `baudRate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "baudRate")] pub fn set_baud_rate(this: &SerialOptions, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bufferSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bufferSize")] pub fn get_buffer_size(this: &SerialOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bufferSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bufferSize")] pub fn set_buffer_size(this: &SerialOptions, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dataBits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dataBits")] pub fn get_data_bits(this: &SerialOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dataBits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dataBits")] pub fn set_data_bits(this: &SerialOptions, val: u8); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FlowControlType")] #[doc = "Get the `flowControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FlowControlType`, `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "flowControl")] pub fn get_flow_control(this: &SerialOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FlowControlType")] #[doc = "Change the `flowControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FlowControlType`, `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "flowControl")] pub fn set_flow_control(this: &SerialOptions, val: FlowControlType); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ParityType")] #[doc = "Get the `parity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ParityType`, `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "parity")] pub fn get_parity(this: &SerialOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ParityType")] #[doc = "Change the `parity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ParityType`, `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "parity")] pub fn set_parity(this: &SerialOptions, val: ParityType); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stopBits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stopBits")] pub fn get_stop_bits(this: &SerialOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stopBits` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stopBits")] pub fn set_stop_bits(this: &SerialOptions, val: u8); } #[cfg(web_sys_unstable_apis)] impl SerialOptions { #[doc = "Construct a new `SerialOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(baud_rate: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_baud_rate(baud_rate); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_baud_rate()` instead."] pub fn baud_rate(&mut self, val: u32) -> &mut Self { self.set_baud_rate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_buffer_size()` instead."] pub fn buffer_size(&mut self, val: u32) -> &mut Self { self.set_buffer_size(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data_bits()` instead."] pub fn data_bits(&mut self, val: u8) -> &mut Self { self.set_data_bits(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "FlowControlType")] #[deprecated = "Use `set_flow_control()` instead."] pub fn flow_control(&mut self, val: FlowControlType) -> &mut Self { self.set_flow_control(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ParityType")] #[deprecated = "Use `set_parity()` instead."] pub fn parity(&mut self, val: ParityType) -> &mut Self { self.set_parity(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stop_bits()` instead."] pub fn stop_bits(&mut self, val: u8) -> &mut Self { self.set_stop_bits(val); self } } web-sys-0.3.81/src/features/gen_SerialOutputSignals.rs000064400000000000000000000127651046102023000211060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialOutputSignals)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialOutputSignals` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialOutputSignals; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `break` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "break")] pub fn get_break(this: &SerialOutputSignals) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `break` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "break")] pub fn set_break(this: &SerialOutputSignals, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `dataTerminalReady` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "dataTerminalReady")] pub fn get_data_terminal_ready(this: &SerialOutputSignals) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `dataTerminalReady` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "dataTerminalReady")] pub fn set_data_terminal_ready(this: &SerialOutputSignals, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requestToSend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requestToSend")] pub fn get_request_to_send(this: &SerialOutputSignals) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requestToSend` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requestToSend")] pub fn set_request_to_send(this: &SerialOutputSignals, val: bool); } #[cfg(web_sys_unstable_apis)] impl SerialOutputSignals { #[doc = "Construct a new `SerialOutputSignals`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_break()` instead."] pub fn break_(&mut self, val: bool) -> &mut Self { self.set_break(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_data_terminal_ready()` instead."] pub fn data_terminal_ready(&mut self, val: bool) -> &mut Self { self.set_data_terminal_ready(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_request_to_send()` instead."] pub fn request_to_send(&mut self, val: bool) -> &mut Self { self.set_request_to_send(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SerialOutputSignals { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SerialPort.rs000064400000000000000000000245641046102023000172110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = SerialPort , typescript_type = "SerialPort")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialPort` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialPort; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "SerialPort" , 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/SerialPort/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &SerialPort) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "SerialPort" , 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/SerialPort/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &SerialPort, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "SerialPort" , js_name = ondisconnect)] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &SerialPort) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "SerialPort" , js_name = ondisconnect)] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &SerialPort, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "SerialPort" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &SerialPort) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "SerialPort" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &SerialPort) -> WritableStream; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &SerialPort) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = forget)] #[doc = "The `forget()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/forget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn forget(this: &SerialPort) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SerialPortInfo")] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = getInfo)] #[doc = "The `getInfo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/getInfo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`, `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_info(this: &SerialPort) -> SerialPortInfo; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = getSignals)] #[doc = "The `getSignals()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/getSignals)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_signals(this: &SerialPort) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SerialOptions")] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOptions`, `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn open(this: &SerialPort, options: &SerialOptions) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = setSignals)] #[doc = "The `setSignals()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/setSignals)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_signals(this: &SerialPort) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SerialOutputSignals")] # [wasm_bindgen (method , structural , js_class = "SerialPort" , js_name = setSignals)] #[doc = "The `setSignals()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SerialPort/setSignals)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialOutputSignals`, `SerialPort`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_signals_with_signals( this: &SerialPort, signals: &SerialOutputSignals, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_SerialPortFilter.rs000064400000000000000000000101441046102023000203440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialPortFilter)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialPortFilter` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialPortFilter; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usbProductId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usbProductId")] pub fn get_usb_product_id(this: &SerialPortFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usbProductId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usbProductId")] pub fn set_usb_product_id(this: &SerialPortFilter, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usbVendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usbVendorId")] pub fn get_usb_vendor_id(this: &SerialPortFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usbVendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usbVendorId")] pub fn set_usb_vendor_id(this: &SerialPortFilter, val: u16); } #[cfg(web_sys_unstable_apis)] impl SerialPortFilter { #[doc = "Construct a new `SerialPortFilter`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_usb_product_id()` instead."] pub fn usb_product_id(&mut self, val: u16) -> &mut Self { self.set_usb_product_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usb_vendor_id()` instead."] pub fn usb_vendor_id(&mut self, val: u16) -> &mut Self { self.set_usb_vendor_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SerialPortFilter { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SerialPortInfo.rs000064400000000000000000000101041046102023000200060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialPortInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialPortInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialPortInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usbProductId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usbProductId")] pub fn get_usb_product_id(this: &SerialPortInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usbProductId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usbProductId")] pub fn set_usb_product_id(this: &SerialPortInfo, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `usbVendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "usbVendorId")] pub fn get_usb_vendor_id(this: &SerialPortInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `usbVendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "usbVendorId")] pub fn set_usb_vendor_id(this: &SerialPortInfo, val: u16); } #[cfg(web_sys_unstable_apis)] impl SerialPortInfo { #[doc = "Construct a new `SerialPortInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_usb_product_id()` instead."] pub fn usb_product_id(&mut self, val: u16) -> &mut Self { self.set_usb_product_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_usb_vendor_id()` instead."] pub fn usb_vendor_id(&mut self, val: u16) -> &mut Self { self.set_usb_vendor_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SerialPortInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SerialPortRequestOptions.rs000064400000000000000000000055671046102023000221400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SerialPortRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SerialPortRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SerialPortRequestOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &SerialPortRequestOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &SerialPortRequestOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl SerialPortRequestOptions { #[doc = "Construct a new `SerialPortRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SerialPortRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SerialPortRequestOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ServerSocketOptions.rs000064400000000000000000000035671046102023000211200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "TcpSocketBinaryType")] #[doc = "Get the `binaryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpSocketBinaryType`*"] #[wasm_bindgen(method, getter = "binaryType")] pub fn get_binary_type(this: &ServerSocketOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "binaryType")] pub fn set_binary_type(this: &ServerSocketOptions, val: TcpSocketBinaryType); } 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")] #[deprecated = "Use `set_binary_type()` instead."] pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { self.set_binary_type(val); self } } impl Default for ServerSocketOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ServiceWorker.rs000064400000000000000000000110511046102023000177020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_ServiceWorkerContainer.rs000064400000000000000000000177671046102023000215710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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; } web-sys-0.3.81/src/features/gen_ServiceWorkerGlobalScope.rs000064400000000000000000000255751046102023000220350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_ServiceWorkerRegistration.rs000064400000000000000000000176511046102023000223110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; # [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>; } web-sys-0.3.81/src/features/gen_ServiceWorkerState.rs000064400000000000000000000007601046102023000207100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ServiceWorkerUpdateViaCache.rs000064400000000000000000000006341046102023000224360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ShadowRoot.rs000064400000000000000000000227061046102023000172120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = "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 = "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; # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = adoptedStyleSheets)] #[doc = "Getter for the `adoptedStyleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn adopted_style_sheets(this: &ShadowRoot) -> ::js_sys::Array; # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = adoptedStyleSheets)] #[doc = "Setter for the `adoptedStyleSheets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/adoptedStyleSheets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] pub fn set_adopted_style_sheets(this: &ShadowRoot, value: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "ShadowRoot" , js_name = pictureInPictureElement)] #[doc = "Getter for the `pictureInPictureElement` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pictureInPictureElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn picture_in_picture_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; } web-sys-0.3.81/src/features/gen_ShadowRootInit.rs000064400000000000000000000033401046102023000200270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "ShadowRootMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`, `ShadowRootMode`*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &ShadowRootInit) -> ShadowRootMode; #[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`*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &ShadowRootInit, val: ShadowRootMode); } 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.set_mode(mode); ret } #[cfg(feature = "ShadowRootMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: ShadowRootMode) -> &mut Self { self.set_mode(val); self } } web-sys-0.3.81/src/features/gen_ShadowRootMode.rs000064400000000000000000000005421046102023000200110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ShareData.rs000064400000000000000000000070561046102023000167560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ShareData)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ShareData` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] pub type ShareData; #[doc = "Get the `files` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "files")] pub fn get_files(this: &ShareData) -> Option<::js_sys::Array>; #[doc = "Change the `files` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, setter = "files")] pub fn set_files(this: &ShareData, val: &::wasm_bindgen::JsValue); #[doc = "Get the `text` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "text")] pub fn get_text(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `text` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, setter = "text")] pub fn set_text(this: &ShareData, val: &str); #[doc = "Get the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "title")] pub fn get_title(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, setter = "title")] pub fn set_title(this: &ShareData, val: &str); #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &ShareData, val: &str); } impl ShareData { #[doc = "Construct a new `ShareData`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_files()` instead."] pub fn files(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_files(val); self } #[deprecated = "Use `set_text()` instead."] pub fn text(&mut self, val: &str) -> &mut Self { self.set_text(val); self } #[deprecated = "Use `set_title()` instead."] pub fn title(&mut self, val: &str) -> &mut Self { self.set_title(val); self } #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: &str) -> &mut Self { self.set_url(val); self } } impl Default for ShareData { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SharedWorker.rs000064400000000000000000000070111046102023000175110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SharedWorkerGlobalScope.rs000064400000000000000000000051671046102023000216360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_SignResponse.rs000064400000000000000000000111241046102023000175300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "clientData")] pub fn get_client_data(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, setter = "clientData")] pub fn set_client_data(this: &SignResponse, val: &str); #[doc = "Get the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "errorCode")] pub fn get_error_code(this: &SignResponse) -> Option; #[doc = "Change the `errorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, setter = "errorCode")] pub fn set_error_code(this: &SignResponse, val: Option); #[doc = "Get the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "errorMessage")] pub fn get_error_message(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, setter = "errorMessage")] pub fn set_error_message(this: &SignResponse, val: Option<&str>); #[doc = "Get the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "keyHandle")] pub fn get_key_handle(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, setter = "keyHandle")] pub fn set_key_handle(this: &SignResponse, val: &str); #[doc = "Get the `signatureData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "signatureData")] pub fn get_signature_data(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `signatureData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, setter = "signatureData")] pub fn set_signature_data(this: &SignResponse, val: &str); } 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 } #[deprecated = "Use `set_client_data()` instead."] pub fn client_data(&mut self, val: &str) -> &mut Self { self.set_client_data(val); self } #[deprecated = "Use `set_error_code()` instead."] pub fn error_code(&mut self, val: Option) -> &mut Self { self.set_error_code(val); self } #[deprecated = "Use `set_error_message()` instead."] pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { self.set_error_message(val); self } #[deprecated = "Use `set_key_handle()` instead."] pub fn key_handle(&mut self, val: &str) -> &mut Self { self.set_key_handle(val); self } #[deprecated = "Use `set_signature_data()` instead."] pub fn signature_data(&mut self, val: &str) -> &mut Self { self.set_signature_data(val); self } } impl Default for SignResponse { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SocketElement.rs000064400000000000000000000116501046102023000176570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "active")] pub fn get_active(this: &SocketElement) -> Option; #[doc = "Change the `active` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "active")] pub fn set_active(this: &SocketElement, val: bool); #[doc = "Get the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "host")] pub fn get_host(this: &SocketElement) -> Option<::alloc::string::String>; #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "host")] pub fn set_host(this: &SocketElement, val: &str); #[doc = "Get the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "port")] pub fn get_port(this: &SocketElement) -> Option; #[doc = "Change the `port` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "port")] pub fn set_port(this: &SocketElement, val: u32); #[doc = "Get the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "received")] pub fn get_received(this: &SocketElement) -> Option; #[doc = "Change the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "received")] pub fn set_received(this: &SocketElement, val: f64); #[doc = "Get the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "sent")] pub fn get_sent(this: &SocketElement) -> Option; #[doc = "Change the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "sent")] pub fn set_sent(this: &SocketElement, val: f64); #[doc = "Get the `tcp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "tcp")] pub fn get_tcp(this: &SocketElement) -> Option; #[doc = "Change the `tcp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, setter = "tcp")] pub fn set_tcp(this: &SocketElement, val: bool); } 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 } #[deprecated = "Use `set_active()` instead."] pub fn active(&mut self, val: bool) -> &mut Self { self.set_active(val); self } #[deprecated = "Use `set_host()` instead."] pub fn host(&mut self, val: &str) -> &mut Self { self.set_host(val); self } #[deprecated = "Use `set_port()` instead."] pub fn port(&mut self, val: u32) -> &mut Self { self.set_port(val); self } #[deprecated = "Use `set_received()` instead."] pub fn received(&mut self, val: f64) -> &mut Self { self.set_received(val); self } #[deprecated = "Use `set_sent()` instead."] pub fn sent(&mut self, val: f64) -> &mut Self { self.set_sent(val); self } #[deprecated = "Use `set_tcp()` instead."] pub fn tcp(&mut self, val: bool) -> &mut Self { self.set_tcp(val); self } } impl Default for SocketElement { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SocketOptions.rs000064400000000000000000000051431046102023000177210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "TcpSocketBinaryType")] #[doc = "Get the `binaryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`, `TcpSocketBinaryType`*"] #[wasm_bindgen(method, getter = "binaryType")] pub fn get_binary_type(this: &SocketOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "binaryType")] pub fn set_binary_type(this: &SocketOptions, val: TcpSocketBinaryType); #[doc = "Get the `useSecureTransport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] #[wasm_bindgen(method, getter = "useSecureTransport")] pub fn get_use_secure_transport(this: &SocketOptions) -> Option; #[doc = "Change the `useSecureTransport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] #[wasm_bindgen(method, setter = "useSecureTransport")] pub fn set_use_secure_transport(this: &SocketOptions, val: bool); } 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")] #[deprecated = "Use `set_binary_type()` instead."] pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { self.set_binary_type(val); self } #[deprecated = "Use `set_use_secure_transport()` instead."] pub fn use_secure_transport(&mut self, val: bool) -> &mut Self { self.set_use_secure_transport(val); self } } impl Default for SocketOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SocketReadyState.rs000064400000000000000000000006711046102023000203340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SocketsDict.rs000064400000000000000000000056611046102023000173410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, getter = "received")] pub fn get_received(this: &SocketsDict) -> Option; #[doc = "Change the `received` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, setter = "received")] pub fn set_received(this: &SocketsDict, val: f64); #[doc = "Get the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, getter = "sent")] pub fn get_sent(this: &SocketsDict) -> Option; #[doc = "Change the `sent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, setter = "sent")] pub fn set_sent(this: &SocketsDict, val: f64); #[doc = "Get the `sockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, getter = "sockets")] pub fn get_sockets(this: &SocketsDict) -> Option<::js_sys::Array>; #[doc = "Change the `sockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] #[wasm_bindgen(method, setter = "sockets")] pub fn set_sockets(this: &SocketsDict, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_received()` instead."] pub fn received(&mut self, val: f64) -> &mut Self { self.set_received(val); self } #[deprecated = "Use `set_sent()` instead."] pub fn sent(&mut self, val: f64) -> &mut Self { self.set_sent(val); self } #[deprecated = "Use `set_sockets()` instead."] pub fn sockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_sockets(val); self } } impl Default for SocketsDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SourceBuffer.rs000064400000000000000000000432761046102023000175200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); #[cfg(feature = "AudioTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , 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/SourceBuffer/audioTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `SourceBuffer`*"] pub fn audio_tracks(this: &SourceBuffer) -> AudioTrackList; #[cfg(feature = "VideoTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , 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/SourceBuffer/videoTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `VideoTrackList`*"] pub fn video_tracks(this: &SourceBuffer) -> VideoTrackList; #[cfg(feature = "TextTrackList")] # [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , 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/SourceBuffer/textTracks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrackList`*"] pub fn text_tracks(this: &SourceBuffer) -> TextTrackList; # [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 = 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_js_u8_array( this: &SourceBuffer, data: &::js_sys::Uint8Array, ) -> 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 = 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_js_u8_array( this: &SourceBuffer, data: &::js_sys::Uint8Array, ) -> 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>; } web-sys-0.3.81/src/features/gen_SourceBufferAppendMode.rs000064400000000000000000000006061046102023000214430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SourceBufferList.rs000064400000000000000000000071061046102023000203440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferList`*"] pub fn get(this: &SourceBufferList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_SpeechGrammar.rs000064400000000000000000000056011046102023000176320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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; } web-sys-0.3.81/src/features/gen_SpeechGrammarList.rs000064400000000000000000000110521046102023000204630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"] pub fn get(this: &SpeechGrammarList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SpeechRecognition.rs000064400000000000000000000471461046102023000205360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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); } web-sys-0.3.81/src/features/gen_SpeechRecognitionAlternative.rs000064400000000000000000000033021046102023000227170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SpeechRecognitionError.rs000064400000000000000000000056531046102023000215450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; #[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; } web-sys-0.3.81/src/features/gen_SpeechRecognitionErrorCode.rs000064400000000000000000000011621046102023000223270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SpeechRecognitionErrorInit.rs000064400000000000000000000117641046102023000223710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SpeechRecognitionErrorInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SpeechRecognitionErrorInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SpeechRecognitionErrorInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SpeechRecognitionErrorInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SpeechRecognitionErrorInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SpeechRecognitionErrorInit, val: bool); #[cfg(feature = "SpeechRecognitionErrorCode")] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorCode`, `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &SpeechRecognitionErrorInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &SpeechRecognitionErrorInit, val: SpeechRecognitionErrorCode); #[doc = "Get the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "message")] pub fn get_message(this: &SpeechRecognitionErrorInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, setter = "message")] pub fn set_message(this: &SpeechRecognitionErrorInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "SpeechRecognitionErrorCode")] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: SpeechRecognitionErrorCode) -> &mut Self { self.set_error(val); self } #[deprecated = "Use `set_message()` instead."] pub fn message(&mut self, val: &str) -> &mut Self { self.set_message(val); self } } impl Default for SpeechRecognitionErrorInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SpeechRecognitionEvent.rs000064400000000000000000000077311046102023000215340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SpeechRecognitionEventInit.rs000064400000000000000000000154601046102023000223560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SpeechRecognitionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SpeechRecognitionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SpeechRecognitionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SpeechRecognitionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SpeechRecognitionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SpeechRecognitionEventInit, val: bool); #[cfg(feature = "Document")] #[doc = "Get the `emma` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`, `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "emma")] pub fn get_emma(this: &SpeechRecognitionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "emma")] pub fn set_emma(this: &SpeechRecognitionEventInit, val: Option<&Document>); #[doc = "Get the `interpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "interpretation")] pub fn get_interpretation(this: &SpeechRecognitionEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `interpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, setter = "interpretation")] pub fn set_interpretation(this: &SpeechRecognitionEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `resultIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, getter = "resultIndex")] pub fn get_result_index(this: &SpeechRecognitionEventInit) -> Option; #[doc = "Change the `resultIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] #[wasm_bindgen(method, setter = "resultIndex")] pub fn set_result_index(this: &SpeechRecognitionEventInit, val: u32); #[cfg(feature = "SpeechRecognitionResultList")] #[doc = "Get the `results` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`, `SpeechRecognitionResultList`*"] #[wasm_bindgen(method, getter = "results")] pub fn get_results(this: &SpeechRecognitionEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "results")] pub fn set_results( this: &SpeechRecognitionEventInit, val: Option<&SpeechRecognitionResultList>, ); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "Document")] #[deprecated = "Use `set_emma()` instead."] pub fn emma(&mut self, val: Option<&Document>) -> &mut Self { self.set_emma(val); self } #[deprecated = "Use `set_interpretation()` instead."] pub fn interpretation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_interpretation(val); self } #[deprecated = "Use `set_result_index()` instead."] pub fn result_index(&mut self, val: u32) -> &mut Self { self.set_result_index(val); self } #[cfg(feature = "SpeechRecognitionResultList")] #[deprecated = "Use `set_results()` instead."] pub fn results(&mut self, val: Option<&SpeechRecognitionResultList>) -> &mut Self { self.set_results(val); self } } impl Default for SpeechRecognitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SpeechRecognitionResult.rs000064400000000000000000000052471046102023000217310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"] pub fn get(this: &SpeechRecognitionResult, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_SpeechRecognitionResultList.rs000064400000000000000000000043431046102023000225610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"] pub fn get(this: &SpeechRecognitionResultList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_SpeechSynthesis.rs000064400000000000000000000121471046102023000202400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SpeechSynthesisErrorCode.rs000064400000000000000000000013701046102023000220410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SpeechSynthesisErrorEvent.rs000064400000000000000000000037251046102023000222560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SpeechSynthesisErrorEventInit.rs000064400000000000000000000211671046102023000231020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SpeechSynthesisErrorEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SpeechSynthesisErrorEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SpeechSynthesisErrorEventInit, val: bool); #[doc = "Get the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "charIndex")] pub fn get_char_index(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "charIndex")] pub fn set_char_index(this: &SpeechSynthesisErrorEventInit, val: u32); #[doc = "Get the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "charLength")] pub fn get_char_length(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "charLength")] pub fn set_char_length(this: &SpeechSynthesisErrorEventInit, val: Option); #[doc = "Get the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "elapsedTime")] pub fn get_elapsed_time(this: &SpeechSynthesisErrorEventInit) -> Option; #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "elapsedTime")] pub fn set_elapsed_time(this: &SpeechSynthesisErrorEventInit, val: f32); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &SpeechSynthesisErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &SpeechSynthesisErrorEventInit, val: &str); #[cfg(feature = "SpeechSynthesisUtterance")] #[doc = "Get the `utterance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`, `SpeechSynthesisUtterance`*"] #[wasm_bindgen(method, getter = "utterance")] pub fn get_utterance(this: &SpeechSynthesisErrorEventInit) -> SpeechSynthesisUtterance; #[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`*"] #[wasm_bindgen(method, setter = "utterance")] pub fn set_utterance(this: &SpeechSynthesisErrorEventInit, val: &SpeechSynthesisUtterance); #[cfg(feature = "SpeechSynthesisErrorCode")] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &SpeechSynthesisErrorEventInit) -> SpeechSynthesisErrorCode; #[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`*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &SpeechSynthesisErrorEventInit, val: SpeechSynthesisErrorCode); } 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.set_utterance(utterance); ret.set_error(error); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_char_index()` instead."] pub fn char_index(&mut self, val: u32) -> &mut Self { self.set_char_index(val); self } #[deprecated = "Use `set_char_length()` instead."] pub fn char_length(&mut self, val: Option) -> &mut Self { self.set_char_length(val); self } #[deprecated = "Use `set_elapsed_time()` instead."] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { self.set_elapsed_time(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "SpeechSynthesisUtterance")] #[deprecated = "Use `set_utterance()` instead."] pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { self.set_utterance(val); self } #[cfg(feature = "SpeechSynthesisErrorCode")] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: SpeechSynthesisErrorCode) -> &mut Self { self.set_error(val); self } } web-sys-0.3.81/src/features/gen_SpeechSynthesisEvent.rs000064400000000000000000000074171046102023000212460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; #[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; } web-sys-0.3.81/src/features/gen_SpeechSynthesisEventInit.rs000064400000000000000000000164431046102023000220710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SpeechSynthesisEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SpeechSynthesisEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SpeechSynthesisEventInit, val: bool); #[doc = "Get the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "charIndex")] pub fn get_char_index(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `charIndex` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "charIndex")] pub fn set_char_index(this: &SpeechSynthesisEventInit, val: u32); #[doc = "Get the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "charLength")] pub fn get_char_length(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `charLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "charLength")] pub fn set_char_length(this: &SpeechSynthesisEventInit, val: Option); #[doc = "Get the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "elapsedTime")] pub fn get_elapsed_time(this: &SpeechSynthesisEventInit) -> Option; #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "elapsedTime")] pub fn set_elapsed_time(this: &SpeechSynthesisEventInit, val: f32); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &SpeechSynthesisEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &SpeechSynthesisEventInit, val: &str); #[cfg(feature = "SpeechSynthesisUtterance")] #[doc = "Get the `utterance` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`, `SpeechSynthesisUtterance`*"] #[wasm_bindgen(method, getter = "utterance")] pub fn get_utterance(this: &SpeechSynthesisEventInit) -> SpeechSynthesisUtterance; #[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`*"] #[wasm_bindgen(method, setter = "utterance")] pub fn set_utterance(this: &SpeechSynthesisEventInit, val: &SpeechSynthesisUtterance); } 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.set_utterance(utterance); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_char_index()` instead."] pub fn char_index(&mut self, val: u32) -> &mut Self { self.set_char_index(val); self } #[deprecated = "Use `set_char_length()` instead."] pub fn char_length(&mut self, val: Option) -> &mut Self { self.set_char_length(val); self } #[deprecated = "Use `set_elapsed_time()` instead."] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { self.set_elapsed_time(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "SpeechSynthesisUtterance")] #[deprecated = "Use `set_utterance()` instead."] pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { self.set_utterance(val); self } } web-sys-0.3.81/src/features/gen_SpeechSynthesisUtterance.rs000064400000000000000000000354351046102023000221200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SpeechSynthesisVoice.rs000064400000000000000000000057721046102023000212340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_StereoPannerNode.rs000064400000000000000000000045551046102023000203360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_StereoPannerOptions.rs000064400000000000000000000106611046102023000210770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &StereoPannerOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &StereoPannerOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `StereoPannerOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &StereoPannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &StereoPannerOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `StereoPannerOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &StereoPannerOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &StereoPannerOptions, val: ChannelInterpretation); #[doc = "Get the `pan` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] #[wasm_bindgen(method, getter = "pan")] pub fn get_pan(this: &StereoPannerOptions) -> Option; #[doc = "Change the `pan` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] #[wasm_bindgen(method, setter = "pan")] pub fn set_pan(this: &StereoPannerOptions, val: f32); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_pan()` instead."] pub fn pan(&mut self, val: f32) -> &mut Self { self.set_pan(val); self } } impl Default for StereoPannerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Storage.rs000064400000000000000000000103551046102023000165220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[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. As in the literal Javascript `this[key] = value`."] #[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. As in the literal Javascript `delete this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] pub fn delete(this: &Storage, key: &str) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_StorageEstimate.rs000064400000000000000000000043551046102023000202210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `quota` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] #[wasm_bindgen(method, getter = "quota")] pub fn get_quota(this: &StorageEstimate) -> Option; #[doc = "Change the `quota` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] #[wasm_bindgen(method, setter = "quota")] pub fn set_quota(this: &StorageEstimate, val: f64); #[doc = "Get the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] #[wasm_bindgen(method, getter = "usage")] pub fn get_usage(this: &StorageEstimate) -> Option; #[doc = "Change the `usage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] #[wasm_bindgen(method, setter = "usage")] pub fn set_usage(this: &StorageEstimate, val: f64); } 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 } #[deprecated = "Use `set_quota()` instead."] pub fn quota(&mut self, val: f64) -> &mut Self { self.set_quota(val); self } #[deprecated = "Use `set_usage()` instead."] pub fn usage(&mut self, val: f64) -> &mut Self { self.set_usage(val); self } } impl Default for StorageEstimate { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StorageEvent.rs000064400000000000000000000215171046102023000175260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; # [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<::alloc::string::String>; #[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>, ); } web-sys-0.3.81/src/features/gen_StorageEventInit.rs000064400000000000000000000155071046102023000203540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &StorageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &StorageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &StorageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &StorageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &StorageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &StorageEventInit, val: bool); #[doc = "Get the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "key")] pub fn get_key(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "key")] pub fn set_key(this: &StorageEventInit, val: Option<&str>); #[doc = "Get the `newValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "newValue")] pub fn get_new_value(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "newValue")] pub fn set_new_value(this: &StorageEventInit, val: Option<&str>); #[doc = "Get the `oldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "oldValue")] pub fn get_old_value(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "oldValue")] pub fn set_old_value(this: &StorageEventInit, val: Option<&str>); #[cfg(feature = "Storage")] #[doc = "Get the `storageArea` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEventInit`*"] #[wasm_bindgen(method, getter = "storageArea")] pub fn get_storage_area(this: &StorageEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "storageArea")] pub fn set_storage_area(this: &StorageEventInit, val: Option<&Storage>); #[doc = "Get the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "url")] pub fn get_url(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, setter = "url")] pub fn set_url(this: &StorageEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_key()` instead."] pub fn key(&mut self, val: Option<&str>) -> &mut Self { self.set_key(val); self } #[deprecated = "Use `set_new_value()` instead."] pub fn new_value(&mut self, val: Option<&str>) -> &mut Self { self.set_new_value(val); self } #[deprecated = "Use `set_old_value()` instead."] pub fn old_value(&mut self, val: Option<&str>) -> &mut Self { self.set_old_value(val); self } #[cfg(feature = "Storage")] #[deprecated = "Use `set_storage_area()` instead."] pub fn storage_area(&mut self, val: Option<&Storage>) -> &mut Self { self.set_storage_area(val); self } #[deprecated = "Use `set_url()` instead."] pub fn url(&mut self, val: &str) -> &mut Self { self.set_url(val); self } } impl Default for StorageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StorageManager.rs000064400000000000000000000045761046102023000200250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 (method , structural , js_class = "StorageManager" , js_name = getDirectory)] #[doc = "The `getDirectory()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/getDirectory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] pub fn get_directory(this: &StorageManager) -> ::js_sys::Promise; # [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>; } web-sys-0.3.81/src/features/gen_StorageType.rs000064400000000000000000000006041046102023000173600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_StreamPipeOptions.rs000064400000000000000000000100341046102023000205350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StreamPipeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `StreamPipeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] pub type StreamPipeOptions; #[doc = "Get the `preventAbort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, getter = "preventAbort")] pub fn get_prevent_abort(this: &StreamPipeOptions) -> Option; #[doc = "Change the `preventAbort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, setter = "preventAbort")] pub fn set_prevent_abort(this: &StreamPipeOptions, val: bool); #[doc = "Get the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, getter = "preventCancel")] pub fn get_prevent_cancel(this: &StreamPipeOptions) -> Option; #[doc = "Change the `preventCancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, setter = "preventCancel")] pub fn set_prevent_cancel(this: &StreamPipeOptions, val: bool); #[doc = "Get the `preventClose` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, getter = "preventClose")] pub fn get_prevent_close(this: &StreamPipeOptions) -> Option; #[doc = "Change the `preventClose` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] #[wasm_bindgen(method, setter = "preventClose")] pub fn set_prevent_close(this: &StreamPipeOptions, val: bool); #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `StreamPipeOptions`*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &StreamPipeOptions) -> Option; #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `StreamPipeOptions`*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &StreamPipeOptions, val: &AbortSignal); } impl StreamPipeOptions { #[doc = "Construct a new `StreamPipeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StreamPipeOptions`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_prevent_abort()` instead."] pub fn prevent_abort(&mut self, val: bool) -> &mut Self { self.set_prevent_abort(val); self } #[deprecated = "Use `set_prevent_cancel()` instead."] pub fn prevent_cancel(&mut self, val: bool) -> &mut Self { self.set_prevent_cancel(val); self } #[deprecated = "Use `set_prevent_close()` instead."] pub fn prevent_close(&mut self, val: bool) -> &mut Self { self.set_prevent_close(val); self } #[cfg(feature = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } impl Default for StreamPipeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StyleRuleChangeEventInit.rs000064400000000000000000000117661046102023000220110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &StyleRuleChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &StyleRuleChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &StyleRuleChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &StyleRuleChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &StyleRuleChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &StyleRuleChangeEventInit, val: bool); #[cfg(feature = "CssRule")] #[doc = "Get the `rule` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`, `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, getter = "rule")] pub fn get_rule(this: &StyleRuleChangeEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "rule")] pub fn set_rule(this: &StyleRuleChangeEventInit, val: Option<&CssRule>); #[cfg(feature = "CssStyleSheet")] #[doc = "Get the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleRuleChangeEventInit`*"] #[wasm_bindgen(method, getter = "stylesheet")] pub fn get_stylesheet(this: &StyleRuleChangeEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "stylesheet")] pub fn set_stylesheet(this: &StyleRuleChangeEventInit, val: Option<&CssStyleSheet>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "CssRule")] #[deprecated = "Use `set_rule()` instead."] pub fn rule(&mut self, val: Option<&CssRule>) -> &mut Self { self.set_rule(val); self } #[cfg(feature = "CssStyleSheet")] #[deprecated = "Use `set_stylesheet()` instead."] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { self.set_stylesheet(val); self } } impl Default for StyleRuleChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StyleSheet.rs000064400000000000000000000103041046102023000172010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; #[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); } web-sys-0.3.81/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs000064400000000000000000000125721046102023000251240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &StyleSheetApplicableStateChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &StyleSheetApplicableStateChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &StyleSheetApplicableStateChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &StyleSheetApplicableStateChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &StyleSheetApplicableStateChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &StyleSheetApplicableStateChangeEventInit, val: bool); #[doc = "Get the `applicable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, getter = "applicable")] pub fn get_applicable(this: &StyleSheetApplicableStateChangeEventInit) -> Option; #[doc = "Change the `applicable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, setter = "applicable")] pub fn set_applicable(this: &StyleSheetApplicableStateChangeEventInit, val: bool); #[cfg(feature = "CssStyleSheet")] #[doc = "Get the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetApplicableStateChangeEventInit`*"] #[wasm_bindgen(method, getter = "stylesheet")] pub fn get_stylesheet(this: &StyleSheetApplicableStateChangeEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "stylesheet")] pub fn set_stylesheet( this: &StyleSheetApplicableStateChangeEventInit, val: Option<&CssStyleSheet>, ); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_applicable()` instead."] pub fn applicable(&mut self, val: bool) -> &mut Self { self.set_applicable(val); self } #[cfg(feature = "CssStyleSheet")] #[deprecated = "Use `set_stylesheet()` instead."] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { self.set_stylesheet(val); self } } impl Default for StyleSheetApplicableStateChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StyleSheetChangeEventInit.rs000064400000000000000000000117271046102023000221470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &StyleSheetChangeEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &StyleSheetChangeEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &StyleSheetChangeEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &StyleSheetChangeEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &StyleSheetChangeEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &StyleSheetChangeEventInit, val: bool); #[doc = "Get the `documentSheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, getter = "documentSheet")] pub fn get_document_sheet(this: &StyleSheetChangeEventInit) -> Option; #[doc = "Change the `documentSheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, setter = "documentSheet")] pub fn set_document_sheet(this: &StyleSheetChangeEventInit, val: bool); #[cfg(feature = "CssStyleSheet")] #[doc = "Get the `stylesheet` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetChangeEventInit`*"] #[wasm_bindgen(method, getter = "stylesheet")] pub fn get_stylesheet(this: &StyleSheetChangeEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "stylesheet")] pub fn set_stylesheet(this: &StyleSheetChangeEventInit, val: Option<&CssStyleSheet>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_document_sheet()` instead."] pub fn document_sheet(&mut self, val: bool) -> &mut Self { self.set_document_sheet(val); self } #[cfg(feature = "CssStyleSheet")] #[deprecated = "Use `set_stylesheet()` instead."] pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { self.set_stylesheet(val); self } } impl Default for StyleSheetChangeEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_StyleSheetList.rs000064400000000000000000000036321046102023000200430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `StyleSheetList`*"] pub fn get(this: &StyleSheetList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_SubmitEvent.rs000064400000000000000000000041551046102023000173640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SubmitEvent , typescript_type = "SubmitEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SubmitEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEvent`*"] pub type SubmitEvent; #[cfg(feature = "HtmlElement")] # [wasm_bindgen (structural , method , getter , js_class = "SubmitEvent" , js_name = submitter)] #[doc = "Getter for the `submitter` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent/submitter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `SubmitEvent`*"] pub fn submitter(this: &SubmitEvent) -> Option; #[wasm_bindgen(catch, constructor, js_class = "SubmitEvent")] #[doc = "The `new SubmitEvent(..)` constructor, creating a new instance of `SubmitEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent/SubmitEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "SubmitEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SubmitEvent")] #[doc = "The `new SubmitEvent(..)` constructor, creating a new instance of `SubmitEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubmitEvent/SubmitEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEvent`, `SubmitEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &SubmitEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_SubmitEventInit.rs000064400000000000000000000076341046102023000202150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SubmitEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SubmitEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] pub type SubmitEventInit; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &SubmitEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &SubmitEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &SubmitEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &SubmitEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &SubmitEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &SubmitEventInit, val: bool); #[cfg(feature = "HtmlElement")] #[doc = "Get the `submitter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `SubmitEventInit`*"] #[wasm_bindgen(method, getter = "submitter")] pub fn get_submitter(this: &SubmitEventInit) -> Option; #[cfg(feature = "HtmlElement")] #[doc = "Change the `submitter` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `SubmitEventInit`*"] #[wasm_bindgen(method, setter = "submitter")] pub fn set_submitter(this: &SubmitEventInit, val: Option<&HtmlElement>); } impl SubmitEventInit { #[doc = "Construct a new `SubmitEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SubmitEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "HtmlElement")] #[deprecated = "Use `set_submitter()` instead."] pub fn submitter(&mut self, val: Option<&HtmlElement>) -> &mut Self { self.set_submitter(val); self } } impl Default for SubmitEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SubtleCrypto.rs000064400000000000000000001304311046102023000175530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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: &[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: &[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_object_and_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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: &[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: &[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_object_and_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array( this: &SubtleCrypto, algorithm: &str, data: &::js_sys::Uint8Array, ) -> 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: &[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: &[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_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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: &[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: &[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_object_and_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, data: &::js_sys::Uint8Array, ) -> 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: &[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_js_u8_array_and_object_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Uint8Array, 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: &[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_js_u8_array_and_str_and_object( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Uint8Array, 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: &[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_js_u8_array_and_object_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Uint8Array, 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: &[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 = 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_js_u8_array_and_str_and_str( this: &SubtleCrypto, format: &str, wrapped_key: &::js_sys::Uint8Array, 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: &[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: &[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_js_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Uint8Array, 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_js_u8_array_and_buffer_source( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Uint8Array, 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: &[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: &[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: &[u8], data: &[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: &[u8], data: &[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_slice( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Uint8Array, data: &[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_slice( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Uint8Array, data: &[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_buffer_source_and_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Object, data: &::js_sys::Uint8Array, ) -> 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_slice_and_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &[u8], data: &::js_sys::Uint8Array, ) -> 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_slice_and_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &[u8], data: &::js_sys::Uint8Array, ) -> 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_js_u8_array_and_js_u8_array( this: &SubtleCrypto, algorithm: &::js_sys::Object, key: &CryptoKey, signature: &::js_sys::Uint8Array, data: &::js_sys::Uint8Array, ) -> 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_js_u8_array_and_js_u8_array( this: &SubtleCrypto, algorithm: &str, key: &CryptoKey, signature: &::js_sys::Uint8Array, data: &::js_sys::Uint8Array, ) -> 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>; } web-sys-0.3.81/src/features/gen_SupportedType.rs000064400000000000000000000007511046102023000177440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_SvcOutputMetadata.rs000064400000000000000000000054771046102023000205440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SvcOutputMetadata)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `SvcOutputMetadata` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type SvcOutputMetadata; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `temporalLayerId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "temporalLayerId")] pub fn get_temporal_layer_id(this: &SvcOutputMetadata) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `temporalLayerId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "temporalLayerId")] pub fn set_temporal_layer_id(this: &SvcOutputMetadata, val: u32); } #[cfg(web_sys_unstable_apis)] impl SvcOutputMetadata { #[doc = "Construct a new `SvcOutputMetadata`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvcOutputMetadata`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_temporal_layer_id()` instead."] pub fn temporal_layer_id(&mut self, val: u32) -> &mut Self { self.set_temporal_layer_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for SvcOutputMetadata { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SvgAngle.rs000064400000000000000000000134601046102023000166240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SvgAnimateElement.rs000064400000000000000000000013201046102023000204560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimateMotionElement.rs000064400000000000000000000013641046102023000216540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimateTransformElement.rs000064400000000000000000000014061046102023000223570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedAngle.rs000064400000000000000000000031241046102023000202630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedBoolean.rs000064400000000000000000000037551046102023000206260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedEnumeration.rs000064400000000000000000000040621046102023000215250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedInteger.rs000064400000000000000000000037521046102023000206410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedLength.rs000064400000000000000000000031501046102023000204550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedLengthList.rs000064400000000000000000000032701046102023000213140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedNumber.rs000064400000000000000000000037301046102023000204700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedNumberList.rs000064400000000000000000000032701046102023000213230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedPreserveAspectRatio.rs000064400000000000000000000035541046102023000231760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedRect.rs000064400000000000000000000031201046102023000201260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimatedString.rs000064400000000000000000000040011046102023000204760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_SvgAnimatedTransformList.rs000064400000000000000000000033641046102023000220520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgAnimationElement.rs000064400000000000000000000152751046102023000210350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgBoundingBoxOptions.rs000064400000000000000000000074411046102023000213720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `clipped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, getter = "clipped")] pub fn get_clipped(this: &SvgBoundingBoxOptions) -> Option; #[doc = "Change the `clipped` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, setter = "clipped")] pub fn set_clipped(this: &SvgBoundingBoxOptions, val: bool); #[doc = "Get the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, getter = "fill")] pub fn get_fill(this: &SvgBoundingBoxOptions) -> Option; #[doc = "Change the `fill` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, setter = "fill")] pub fn set_fill(this: &SvgBoundingBoxOptions, val: bool); #[doc = "Get the `markers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, getter = "markers")] pub fn get_markers(this: &SvgBoundingBoxOptions) -> Option; #[doc = "Change the `markers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, setter = "markers")] pub fn set_markers(this: &SvgBoundingBoxOptions, val: bool); #[doc = "Get the `stroke` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, getter = "stroke")] pub fn get_stroke(this: &SvgBoundingBoxOptions) -> Option; #[doc = "Change the `stroke` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] #[wasm_bindgen(method, setter = "stroke")] pub fn set_stroke(this: &SvgBoundingBoxOptions, val: bool); } 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 } #[deprecated = "Use `set_clipped()` instead."] pub fn clipped(&mut self, val: bool) -> &mut Self { self.set_clipped(val); self } #[deprecated = "Use `set_fill()` instead."] pub fn fill(&mut self, val: bool) -> &mut Self { self.set_fill(val); self } #[deprecated = "Use `set_markers()` instead."] pub fn markers(&mut self, val: bool) -> &mut Self { self.set_markers(val); self } #[deprecated = "Use `set_stroke()` instead."] pub fn stroke(&mut self, val: bool) -> &mut Self { self.set_stroke(val); self } } impl Default for SvgBoundingBoxOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_SvgCircleElement.rs000064400000000000000000000043631046102023000203130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgClipPathElement.rs000064400000000000000000000034761046102023000206220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgComponentTransferFunctionElement.rs000064400000000000000000000155411046102023000242670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgDefsElement.rs000064400000000000000000000012751046102023000177720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgDescElement.rs000064400000000000000000000012361046102023000177640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgElement.rs000064400000000000000000002744401046102023000171760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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 = "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 = 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>); #[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; # [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 = onbeforetoggle)] #[doc = "Getter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onbeforetoggle(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onbeforetoggle)] #[doc = "Setter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onbeforetoggle(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 = onbeforeinput)] #[doc = "Getter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn onbeforeinput(this: &SvgElement) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = onbeforeinput)] #[doc = "Setter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_onbeforeinput(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>); #[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; # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , js_name = nonce)] #[doc = "Getter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn nonce(this: &SvgElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_nonce(this: &SvgElement, value: &str); # [wasm_bindgen (structural , method , getter , js_class = "SVGElement" , 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/SVGElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn autofocus(this: &SvgElement) -> bool; # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGElement" , 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/SVGElement/autofocus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] pub fn set_autofocus(this: &SvgElement, value: bool) -> Result<(), JsValue>; # [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 = 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>; #[cfg(feature = "FocusOptions")] # [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: `FocusOptions`, `SvgElement`*"] pub fn focus_with_options(this: &SvgElement, options: &FocusOptions) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_SvgEllipseElement.rs000064400000000000000000000054221046102023000205040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgFilterElement.rs000064400000000000000000000105351046102023000203350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgForeignObjectElement.rs000064400000000000000000000056131046102023000216310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgGeometryElement.rs000064400000000000000000000104351046102023000207020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInFill)] #[doc = "The `isPointInFill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInFill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] pub fn is_point_in_fill(this: &SvgGeometryElement) -> bool; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInFill)] #[doc = "The `isPointInFill()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInFill)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `SvgGeometryElement`*"] pub fn is_point_in_fill_with_point(this: &SvgGeometryElement, point: &DomPointInit) -> bool; # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] pub fn is_point_in_stroke(this: &SvgGeometryElement) -> bool; #[cfg(feature = "DomPointInit")] # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInStroke)] #[doc = "The `isPointInStroke()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInStroke)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `SvgGeometryElement`*"] pub fn is_point_in_stroke_with_point(this: &SvgGeometryElement, point: &DomPointInit) -> bool; } web-sys-0.3.81/src/features/gen_SvgGradientElement.rs000064400000000000000000000076561046102023000206570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgGraphicsElement.rs000064400000000000000000000162611046102023000206520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgImageElement.rs000064400000000000000000000075221046102023000201340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgLength.rs000064400000000000000000000163001046102023000170130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SvgLengthList.rs000064400000000000000000000120741046102023000176530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] pub fn get(this: &SvgLengthList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SvgLineElement.rs000064400000000000000000000053201046102023000177730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgLinearGradientElement.rs000064400000000000000000000056151046102023000220030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgMarkerElement.rs000064400000000000000000000200171046102023000203250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgMaskElement.rs000064400000000000000000000103771046102023000200070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgMatrix.rs000064400000000000000000000240771046102023000170500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgMetadataElement.rs000064400000000000000000000012661046102023000206310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgNumber.rs000064400000000000000000000026051046102023000170250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgNumberList.rs000064400000000000000000000120741046102023000176620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] pub fn get(this: &SvgNumberList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SvgPathElement.rs000064400000000000000000000044241046102023000200040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPathSeg.rs000064400000000000000000000141651046102023000171340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SvgPathSegArcAbs.rs000064400000000000000000000155611046102023000202110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegArcRel.rs000064400000000000000000000155611046102023000202260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegClosePath.rs000064400000000000000000000012321046102023000207260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoCubicAbs.rs000064400000000000000000000144641046102023000221020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoCubicRel.rs000064400000000000000000000144641046102023000221170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs000064400000000000000000000112261046102023000232650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs000064400000000000000000000112261046102023000233020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs000064400000000000000000000111121046102023000227550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs000064400000000000000000000111121046102023000227720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs000064400000000000000000000054141046102023000241570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs000064400000000000000000000054141046102023000241740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoAbs.rs000064400000000000000000000046541046102023000207370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs000064400000000000000000000032571046102023000230070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoHorizontalRel.rs000064400000000000000000000032571046102023000230240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoRel.rs000064400000000000000000000046541046102023000207540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoVerticalAbs.rs000064400000000000000000000032231046102023000224200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegLinetoVerticalRel.rs000064400000000000000000000032231046102023000224350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegList.rs000064400000000000000000000040241046102023000177610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"] pub fn get(this: &SvgPathSegList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SvgPathSegMovetoAbs.rs000064400000000000000000000046541046102023000207560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPathSegMovetoRel.rs000064400000000000000000000046541046102023000207730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgPatternElement.rs000064400000000000000000000141751046102023000205310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPoint.rs000064400000000000000000000051751046102023000166730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPointList.rs000064400000000000000000000117721046102023000175270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] pub fn get(this: &SvgPointList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SvgPolygonElement.rs000064400000000000000000000034431046102023000205370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPolylineElement.rs000064400000000000000000000034611046102023000207030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgPreserveAspectRatio.rs000064400000000000000000000143651046102023000215350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgRadialGradientElement.rs000064400000000000000000000077231046102023000217670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgRect.rs000064400000000000000000000074141046102023000164750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_SvgRectElement.rs000064400000000000000000000073361046102023000200120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgScriptElement.rs000064400000000000000000000060761046102023000203610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String>; # [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; } web-sys-0.3.81/src/features/gen_SvgSetElement.rs000064400000000000000000000012701046102023000176370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgStopElement.rs000064400000000000000000000022531046102023000200330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgStringList.rs000064400000000000000000000124171046102023000177010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; #[wasm_bindgen(method, structural, js_class = "SVGStringList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] pub fn get(this: &SvgStringList, index: u32) -> Option<::alloc::string::String>; } web-sys-0.3.81/src/features/gen_SvgStyleElement.rs000064400000000000000000000114551046102023000202120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_SvgSwitchElement.rs000064400000000000000000000013111046102023000203410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgSymbolElement.rs000064400000000000000000000076311046102023000203600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTextContentElement.rs000064400000000000000000000171311046102023000213660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTextElement.rs000064400000000000000000000014051046102023000200300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTextPathElement.rs000064400000000000000000000106501046102023000206470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTextPositioningElement.rs000064400000000000000000000070621046102023000222600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTitleElement.rs000064400000000000000000000012441046102023000201660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTransform.rs000064400000000000000000000143701046102023000175520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgTransformList.rs000064400000000000000000000150201046102023000203770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] pub fn get(this: &SvgTransformList, index: u32) -> Result; } web-sys-0.3.81/src/features/gen_SvgUnitTypes.rs000064400000000000000000000024531046102023000175420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgUseElement.rs000064400000000000000000000062601046102023000176440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgViewElement.rs000064400000000000000000000066401046102023000200240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgZoomAndPan.rs000064400000000000000000000043011046102023000175760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgaElement.rs000064400000000000000000000206311046102023000173260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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; } web-sys-0.3.81/src/features/gen_SvgfeBlendElement.rs000064400000000000000000000217441046102023000204530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeColorMatrixElement.rs000064400000000000000000000146721046102023000216740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeComponentTransferElement.rs000064400000000000000000000101661046102023000230720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeCompositeElement.rs000064400000000000000000000216571046102023000213740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeConvolveMatrixElement.rs000064400000000000000000000266521046102023000224120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeDiffuseLightingElement.rs000064400000000000000000000147321046102023000225010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeDisplacementMapElement.rs000064400000000000000000000172321046102023000224720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeDistantLightElement.rs000064400000000000000000000035241046102023000220210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeDropShadowElement.rs000064400000000000000000000152361046102023000215000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_SvgfeFloodElement.rs000064400000000000000000000064011046102023000204630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeFuncAElement.rs000064400000000000000000000013401046102023000204110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeFuncBElement.rs000064400000000000000000000013401046102023000204120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeFuncGElement.rs000064400000000000000000000013401046102023000204170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeFuncRElement.rs000064400000000000000000000013401046102023000204320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeGaussianBlurElement.rs000064400000000000000000000132701046102023000220210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_SvgfeImageElement.rs000064400000000000000000000106101046102023000204370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeMergeElement.rs000064400000000000000000000064011046102023000204570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeMergeNodeElement.rs000064400000000000000000000023451046102023000212700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeMorphologyElement.rs000064400000000000000000000146231046102023000215640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeOffsetElement.rs000064400000000000000000000115061046102023000206500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfePointLightElement.rs000064400000000000000000000044311046102023000215020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeSpecularLightingElement.rs000064400000000000000000000161721046102023000226720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeSpotLightElement.rs000064400000000000000000000121251046102023000213350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeTileElement.rs000064400000000000000000000073601046102023000203220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgfeTurbulenceElement.rs000064400000000000000000000205111046102023000215260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvggElement.rs000064400000000000000000000012531046102023000173330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgmPathElement.rs000064400000000000000000000022551046102023000201610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgsvgElement.rs000064400000000000000000000403541046102023000177110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_SvgtSpanElement.rs000064400000000000000000000014131046102023000201700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_TaskController.rs000064400000000000000000000063421046102023000200650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AbortController , extends = :: js_sys :: Object , js_name = TaskController , typescript_type = "TaskController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskController`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskController; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "TaskController")] #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskController`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskControllerInit")] #[wasm_bindgen(catch, constructor, js_class = "TaskController")] #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskControllerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_init(init: &TaskControllerInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] # [wasm_bindgen (catch , method , structural , js_class = "TaskController" , js_name = setPriority)] #[doc = "The `setPriority()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/setPriority)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_priority(this: &TaskController, priority: TaskPriority) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_TaskControllerInit.rs000064400000000000000000000056541046102023000207160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskControllerInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskControllerInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskControllerInit; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Get the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`, `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "priority")] pub fn get_priority(this: &TaskControllerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`, `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "priority")] pub fn set_priority(this: &TaskControllerInit, val: TaskPriority); } #[cfg(web_sys_unstable_apis)] impl TaskControllerInit { #[doc = "Construct a new `TaskControllerInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "TaskPriority")] #[deprecated = "Use `set_priority()` instead."] pub fn priority(&mut self, val: TaskPriority) -> &mut Self { self.set_priority(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for TaskControllerInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TaskPriority.rs000064400000000000000000000012351046102023000175570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `TaskPriority` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TaskPriority { UserBlocking = "user-blocking", UserVisible = "user-visible", Background = "background", } web-sys-0.3.81/src/features/gen_TaskPriorityChangeEvent.rs000064400000000000000000000053431046102023000216730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = TaskPriorityChangeEvent , typescript_type = "TaskPriorityChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskPriorityChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskPriorityChangeEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] # [wasm_bindgen (structural , method , getter , js_class = "TaskPriorityChangeEvent" , js_name = previousPriority)] #[doc = "Getter for the `previousPriority` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent/previousPriority)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn previous_priority(this: &TaskPriorityChangeEvent) -> TaskPriority; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriorityChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "TaskPriorityChangeEvent")] #[doc = "The `new TaskPriorityChangeEvent(..)` constructor, creating a new instance of `TaskPriorityChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent/TaskPriorityChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEvent`, `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, priority_change_event_init_dict: &TaskPriorityChangeEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_TaskPriorityChangeEventInit.rs000064400000000000000000000161561046102023000225230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskPriorityChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskPriorityChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskPriorityChangeEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TaskPriorityChangeEventInit) -> Option; #[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: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TaskPriorityChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TaskPriorityChangeEventInit) -> Option; #[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: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TaskPriorityChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TaskPriorityChangeEventInit) -> Option; #[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: `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TaskPriorityChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Get the `previousPriority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "previousPriority")] pub fn get_previous_priority(this: &TaskPriorityChangeEventInit) -> TaskPriority; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[doc = "Change the `previousPriority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "previousPriority")] pub fn set_previous_priority(this: &TaskPriorityChangeEventInit, val: TaskPriority); } #[cfg(web_sys_unstable_apis)] impl TaskPriorityChangeEventInit { #[cfg(feature = "TaskPriority")] #[doc = "Construct a new `TaskPriorityChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(previous_priority: TaskPriority) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_previous_priority(previous_priority); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] #[deprecated = "Use `set_previous_priority()` instead."] pub fn previous_priority(&mut self, val: TaskPriority) -> &mut Self { self.set_previous_priority(val); self } } web-sys-0.3.81/src/features/gen_TaskSignal.rs000064400000000000000000000112031046102023000171470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = AbortSignal , extends = EventTarget , extends = :: js_sys :: Object , js_name = TaskSignal , typescript_type = "TaskSignal")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskSignal` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskSignal; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskPriority")] # [wasm_bindgen (structural , method , getter , js_class = "TaskSignal" , js_name = priority)] #[doc = "Getter for the `priority` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/priority)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskSignal`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn priority(this: &TaskSignal) -> TaskPriority; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "TaskSignal" , js_name = onprioritychange)] #[doc = "Getter for the `onprioritychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onprioritychange(this: &TaskSignal) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "TaskSignal" , js_name = onprioritychange)] #[doc = "Setter for the `onprioritychange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onprioritychange(this: &TaskSignal, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = TaskSignal , js_class = "TaskSignal" , js_name = any)] #[doc = "The `any()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn any(signals: &::wasm_bindgen::JsValue) -> TaskSignal; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "TaskSignalAnyInit")] # [wasm_bindgen (static_method_of = TaskSignal , js_class = "TaskSignal" , js_name = any)] #[doc = "The `any()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignal`, `TaskSignalAnyInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn any_with_init(signals: &::wasm_bindgen::JsValue, init: &TaskSignalAnyInit) -> TaskSignal; } web-sys-0.3.81/src/features/gen_TaskSignalAnyInit.rs000064400000000000000000000054541046102023000204560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskSignalAnyInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TaskSignalAnyInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type TaskSignalAnyInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "priority")] pub fn get_priority(this: &TaskSignalAnyInit) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `priority` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "priority")] pub fn set_priority(this: &TaskSignalAnyInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl TaskSignalAnyInit { #[doc = "Construct a new `TaskSignalAnyInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_priority()` instead."] pub fn priority(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_priority(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for TaskSignalAnyInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TcpReadyState.rs000064400000000000000000000006271046102023000176330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_TcpServerSocket.rs000064400000000000000000000121171046102023000202020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_TcpServerSocketEvent.rs000064400000000000000000000045061046102023000212070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_TcpServerSocketEventInit.rs000064400000000000000000000101111046102023000220200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TcpServerSocketEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TcpServerSocketEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TcpServerSocketEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TcpServerSocketEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TcpServerSocketEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TcpServerSocketEventInit, val: bool); #[cfg(feature = "TcpSocket")] #[doc = "Get the `socket` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`, `TcpSocket`*"] #[wasm_bindgen(method, getter = "socket")] pub fn get_socket(this: &TcpServerSocketEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "socket")] pub fn set_socket(this: &TcpServerSocketEventInit, val: Option<&TcpSocket>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(feature = "TcpSocket")] #[deprecated = "Use `set_socket()` instead."] pub fn socket(&mut self, val: Option<&TcpSocket>) -> &mut Self { self.set_socket(val); self } } impl Default for TcpServerSocketEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TcpSocket.rs000064400000000000000000000305461046102023000170210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>; } web-sys-0.3.81/src/features/gen_TcpSocketBinaryType.rs000064400000000000000000000005771046102023000210310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_TcpSocketErrorEvent.rs000064400000000000000000000053561046102023000210360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_TcpSocketErrorEventInit.rs000064400000000000000000000112231046102023000216500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TcpSocketErrorEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TcpSocketErrorEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TcpSocketErrorEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TcpSocketErrorEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TcpSocketErrorEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TcpSocketErrorEventInit, val: bool); #[doc = "Get the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "message")] pub fn get_message(this: &TcpSocketErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, setter = "message")] pub fn set_message(this: &TcpSocketErrorEventInit, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &TcpSocketErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &TcpSocketErrorEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_message()` instead."] pub fn message(&mut self, val: &str) -> &mut Self { self.set_message(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } } impl Default for TcpSocketErrorEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TcpSocketEvent.rs000064400000000000000000000041731046102023000200200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_TcpSocketEventInit.rs000064400000000000000000000074711046102023000206500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TcpSocketEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TcpSocketEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TcpSocketEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TcpSocketEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TcpSocketEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TcpSocketEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &TcpSocketEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &TcpSocketEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } } impl Default for TcpSocketEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Text.rs000064400000000000000000000405421046102023000160430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; #[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>; } web-sys-0.3.81/src/features/gen_TextDecodeOptions.rs000064400000000000000000000031271046102023000205210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `stream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] #[wasm_bindgen(method, getter = "stream")] pub fn get_stream(this: &TextDecodeOptions) -> Option; #[doc = "Change the `stream` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] #[wasm_bindgen(method, setter = "stream")] pub fn set_stream(this: &TextDecodeOptions, val: bool); } 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 } #[deprecated = "Use `set_stream()` instead."] pub fn stream(&mut self, val: bool) -> &mut Self { self.set_stream(val); self } } impl Default for TextDecodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TextDecoder.rs000064400000000000000000000152701046102023000173310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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: &[u8], ) -> Result<::alloc::string::String, JsValue>; # [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_js_u8_array( this: &TextDecoder, input: &::js_sys::Uint8Array, ) -> Result<::alloc::string::String, JsValue>; #[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<::alloc::string::String, JsValue>; #[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: &[u8], options: &TextDecodeOptions, ) -> Result<::alloc::string::String, JsValue>; #[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_js_u8_array_and_options( this: &TextDecoder, input: &::js_sys::Uint8Array, options: &TextDecodeOptions, ) -> Result<::alloc::string::String, JsValue>; } web-sys-0.3.81/src/features/gen_TextDecoderOptions.rs000064400000000000000000000031321046102023000206770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `fatal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] #[wasm_bindgen(method, getter = "fatal")] pub fn get_fatal(this: &TextDecoderOptions) -> Option; #[doc = "Change the `fatal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] #[wasm_bindgen(method, setter = "fatal")] pub fn set_fatal(this: &TextDecoderOptions, val: bool); } 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 } #[deprecated = "Use `set_fatal()` instead."] pub fn fatal(&mut self, val: bool) -> &mut Self { self.set_fatal(val); self } } impl Default for TextDecoderOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TextEncoder.rs000064400000000000000000000044541046102023000173450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::vec::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) -> ::alloc::vec::Vec; } web-sys-0.3.81/src/features/gen_TextMetrics.rs000064400000000000000000000076661046102023000174040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxLeft)] #[doc = "Getter for the `actualBoundingBoxLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_left(this: &TextMetrics) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxRight)] #[doc = "Getter for the `actualBoundingBoxRight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxRight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_right(this: &TextMetrics) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxAscent)] #[doc = "Getter for the `fontBoundingBoxAscent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxAscent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn font_bounding_box_ascent(this: &TextMetrics) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = fontBoundingBoxDescent)] #[doc = "Getter for the `fontBoundingBoxDescent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/fontBoundingBoxDescent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn font_bounding_box_descent(this: &TextMetrics) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxAscent)] #[doc = "Getter for the `actualBoundingBoxAscent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxAscent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_ascent(this: &TextMetrics) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "TextMetrics" , js_name = actualBoundingBoxDescent)] #[doc = "Getter for the `actualBoundingBoxDescent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/actualBoundingBoxDescent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] pub fn actual_bounding_box_descent(this: &TextMetrics) -> f64; } web-sys-0.3.81/src/features/gen_TextTrack.rs000064400000000000000000000163061046102023000170310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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 = "SourceBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = sourceBuffer)] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/sourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrack`*"] pub fn source_buffer(this: &TextTrack) -> Option; #[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>; } web-sys-0.3.81/src/features/gen_TextTrackCue.rs000064400000000000000000000147121046102023000174650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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>); } web-sys-0.3.81/src/features/gen_TextTrackCueList.rs000064400000000000000000000036751046102023000203270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"] pub fn get(this: &TextTrackCueList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_TextTrackKind.rs000064400000000000000000000007061046102023000176340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_TextTrackList.rs000064400000000000000000000114641046102023000176650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"] pub fn get(this: &TextTrackList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_TextTrackMode.rs000064400000000000000000000006001046102023000176240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_TimeEvent.rs000064400000000000000000000056641046102023000170250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ); } web-sys-0.3.81/src/features/gen_TimeRanges.rs000064400000000000000000000034741046102023000171600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ToggleEvent.rs000064400000000000000000000050141046102023000173350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ToggleEvent , typescript_type = "ToggleEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ToggleEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] pub type ToggleEvent; # [wasm_bindgen (structural , method , getter , js_class = "ToggleEvent" , js_name = oldState)] #[doc = "Getter for the `oldState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] pub fn old_state(this: &ToggleEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ToggleEvent" , js_name = newState)] #[doc = "Getter for the `newState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] pub fn new_state(this: &ToggleEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "ToggleEvent")] #[doc = "The `new ToggleEvent(..)` constructor, creating a new instance of `ToggleEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/ToggleEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] pub fn new(type_: &str) -> Result; #[cfg(feature = "ToggleEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ToggleEvent")] #[doc = "The `new ToggleEvent(..)` constructor, creating a new instance of `ToggleEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/ToggleEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`, `ToggleEventInit`*"] pub fn new_with_event_init_dict( type_: &str, event_init_dict: &ToggleEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_ToggleEventInit.rs000064400000000000000000000107521046102023000201660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ToggleEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ToggleEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] pub type ToggleEventInit; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ToggleEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ToggleEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ToggleEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ToggleEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ToggleEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ToggleEventInit, val: bool); #[doc = "Get the `newState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "newState")] pub fn get_new_state(this: &ToggleEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, setter = "newState")] pub fn set_new_state(this: &ToggleEventInit, val: &str); #[doc = "Get the `oldState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "oldState")] pub fn get_old_state(this: &ToggleEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, setter = "oldState")] pub fn set_old_state(this: &ToggleEventInit, val: &str); } impl ToggleEventInit { #[doc = "Construct a new `ToggleEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_new_state()` instead."] pub fn new_state(&mut self, val: &str) -> &mut Self { self.set_new_state(val); self } #[deprecated = "Use `set_old_state()` instead."] pub fn old_state(&mut self, val: &str) -> &mut Self { self.set_old_state(val); self } } impl Default for ToggleEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TokenBinding.rs000064400000000000000000000042441046102023000174710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TokenBinding)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TokenBinding` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] pub type TokenBinding; #[doc = "Get the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, getter = "id")] pub fn get_id(this: &TokenBinding) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, setter = "id")] pub fn set_id(this: &TokenBinding, val: &str); #[doc = "Get the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, getter = "status")] pub fn get_status(this: &TokenBinding) -> ::alloc::string::String; #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, setter = "status")] pub fn set_status(this: &TokenBinding, val: &str); } impl TokenBinding { #[doc = "Construct a new `TokenBinding`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] pub fn new(status: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_status(status); ret } #[deprecated = "Use `set_id()` instead."] pub fn id(&mut self, val: &str) -> &mut Self { self.set_id(val); self } #[deprecated = "Use `set_status()` instead."] pub fn status(&mut self, val: &str) -> &mut Self { self.set_status(val); self } } web-sys-0.3.81/src/features/gen_TokenBindingStatus.rs000064400000000000000000000005721046102023000206750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `TokenBindingStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBindingStatus`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum TokenBindingStatus { Present = "present", Supported = "supported", } web-sys-0.3.81/src/features/gen_Touch.rs000064400000000000000000000137101046102023000161760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_TouchEvent.rs000064400000000000000000000323531046102023000172040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>, ); } web-sys-0.3.81/src/features/gen_TouchEventInit.rs000064400000000000000000000411711046102023000200260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TouchEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TouchEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TouchEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TouchEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TouchEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TouchEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &TouchEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &TouchEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &TouchEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &TouchEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &TouchEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &TouchEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &TouchEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &TouchEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &TouchEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &TouchEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &TouchEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &TouchEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &TouchEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &TouchEventInit, val: bool); #[doc = "Get the `changedTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "changedTouches")] pub fn get_changed_touches(this: &TouchEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `changedTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "changedTouches")] pub fn set_changed_touches(this: &TouchEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `targetTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "targetTouches")] pub fn get_target_touches(this: &TouchEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `targetTouches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "targetTouches")] pub fn set_target_touches(this: &TouchEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `touches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, getter = "touches")] pub fn get_touches(this: &TouchEventInit) -> Option<::js_sys::Array>; #[doc = "Change the `touches` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] #[wasm_bindgen(method, setter = "touches")] pub fn set_touches(this: &TouchEventInit, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_changed_touches()` instead."] pub fn changed_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_changed_touches(val); self } #[deprecated = "Use `set_target_touches()` instead."] pub fn target_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_target_touches(val); self } #[deprecated = "Use `set_touches()` instead."] pub fn touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_touches(val); self } } impl Default for TouchEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TouchInit.rs000064400000000000000000000223301046102023000170200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "clientX")] pub fn get_client_x(this: &TouchInit) -> Option; #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "clientX")] pub fn set_client_x(this: &TouchInit, val: i32); #[doc = "Get the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "clientY")] pub fn get_client_y(this: &TouchInit) -> Option; #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "clientY")] pub fn set_client_y(this: &TouchInit, val: i32); #[doc = "Get the `force` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "force")] pub fn get_force(this: &TouchInit) -> Option; #[doc = "Change the `force` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "force")] pub fn set_force(this: &TouchInit, val: f32); #[doc = "Get the `identifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "identifier")] pub fn get_identifier(this: &TouchInit) -> i32; #[doc = "Change the `identifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "identifier")] pub fn set_identifier(this: &TouchInit, val: i32); #[doc = "Get the `pageX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "pageX")] pub fn get_page_x(this: &TouchInit) -> Option; #[doc = "Change the `pageX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "pageX")] pub fn set_page_x(this: &TouchInit, val: i32); #[doc = "Get the `pageY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "pageY")] pub fn get_page_y(this: &TouchInit) -> Option; #[doc = "Change the `pageY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "pageY")] pub fn set_page_y(this: &TouchInit, val: i32); #[doc = "Get the `radiusX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "radiusX")] pub fn get_radius_x(this: &TouchInit) -> Option; #[doc = "Change the `radiusX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "radiusX")] pub fn set_radius_x(this: &TouchInit, val: f32); #[doc = "Get the `radiusY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "radiusY")] pub fn get_radius_y(this: &TouchInit) -> Option; #[doc = "Change the `radiusY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "radiusY")] pub fn set_radius_y(this: &TouchInit, val: f32); #[doc = "Get the `rotationAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "rotationAngle")] pub fn get_rotation_angle(this: &TouchInit) -> Option; #[doc = "Change the `rotationAngle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "rotationAngle")] pub fn set_rotation_angle(this: &TouchInit, val: f32); #[doc = "Get the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "screenX")] pub fn get_screen_x(this: &TouchInit) -> Option; #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "screenX")] pub fn set_screen_x(this: &TouchInit, val: i32); #[doc = "Get the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, getter = "screenY")] pub fn get_screen_y(this: &TouchInit) -> Option; #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] #[wasm_bindgen(method, setter = "screenY")] pub fn set_screen_y(this: &TouchInit, val: i32); #[cfg(feature = "EventTarget")] #[doc = "Get the `target` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `TouchInit`*"] #[wasm_bindgen(method, getter = "target")] pub fn get_target(this: &TouchInit) -> EventTarget; #[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`*"] #[wasm_bindgen(method, setter = "target")] pub fn set_target(this: &TouchInit, val: &EventTarget); } 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.set_identifier(identifier); ret.set_target(target); ret } #[deprecated = "Use `set_client_x()` instead."] pub fn client_x(&mut self, val: i32) -> &mut Self { self.set_client_x(val); self } #[deprecated = "Use `set_client_y()` instead."] pub fn client_y(&mut self, val: i32) -> &mut Self { self.set_client_y(val); self } #[deprecated = "Use `set_force()` instead."] pub fn force(&mut self, val: f32) -> &mut Self { self.set_force(val); self } #[deprecated = "Use `set_identifier()` instead."] pub fn identifier(&mut self, val: i32) -> &mut Self { self.set_identifier(val); self } #[deprecated = "Use `set_page_x()` instead."] pub fn page_x(&mut self, val: i32) -> &mut Self { self.set_page_x(val); self } #[deprecated = "Use `set_page_y()` instead."] pub fn page_y(&mut self, val: i32) -> &mut Self { self.set_page_y(val); self } #[deprecated = "Use `set_radius_x()` instead."] pub fn radius_x(&mut self, val: f32) -> &mut Self { self.set_radius_x(val); self } #[deprecated = "Use `set_radius_y()` instead."] pub fn radius_y(&mut self, val: f32) -> &mut Self { self.set_radius_y(val); self } #[deprecated = "Use `set_rotation_angle()` instead."] pub fn rotation_angle(&mut self, val: f32) -> &mut Self { self.set_rotation_angle(val); self } #[deprecated = "Use `set_screen_x()` instead."] pub fn screen_x(&mut self, val: i32) -> &mut Self { self.set_screen_x(val); self } #[deprecated = "Use `set_screen_y()` instead."] pub fn screen_y(&mut self, val: i32) -> &mut Self { self.set_screen_y(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_target()` instead."] pub fn target(&mut self, val: &EventTarget) -> &mut Self { self.set_target(val); self } } web-sys-0.3.81/src/features/gen_TouchList.rs000064400000000000000000000034471046102023000170400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchList`*"] pub fn get(this: &TouchList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_TrackEvent.rs000064400000000000000000000040241046102023000171600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_TrackEventInit.rs000064400000000000000000000073451046102023000200150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TrackEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TrackEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TrackEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TrackEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TrackEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TrackEventInit, val: bool); #[doc = "Get the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, getter = "track")] pub fn get_track(this: &TrackEventInit) -> Option<::js_sys::Object>; #[doc = "Change the `track` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] #[wasm_bindgen(method, setter = "track")] pub fn set_track(this: &TrackEventInit, val: Option<&::js_sys::Object>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_track()` instead."] pub fn track(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { self.set_track(val); self } } impl Default for TrackEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TransformStream.rs000064400000000000000000000077221046102023000202510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransformStream , typescript_type = "TransformStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransformStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] pub type TransformStream; #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `TransformStream`*"] pub fn readable(this: &TransformStream) -> ReadableStream; #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "TransformStream" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStream`, `WritableStream`*"] pub fn writable(this: &TransformStream) -> WritableStream; #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStream`*"] pub fn new_with_transformer(transformer: &::js_sys::Object) -> Result; #[cfg(feature = "QueuingStrategy")] #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `TransformStream`*"] pub fn new_with_transformer_and_writable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, ) -> Result; #[cfg(feature = "QueuingStrategy")] #[wasm_bindgen(catch, constructor, js_class = "TransformStream")] #[doc = "The `new TransformStream(..)` constructor, creating a new instance of `TransformStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `TransformStream`*"] pub fn new_with_transformer_and_writable_strategy_and_readable_strategy( transformer: &::js_sys::Object, writable_strategy: &QueuingStrategy, readable_strategy: &QueuingStrategy, ) -> Result; } web-sys-0.3.81/src/features/gen_TransformStreamDefaultController.rs000064400000000000000000000074221046102023000236170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TransformStreamDefaultController , typescript_type = "TransformStreamDefaultController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `TransformStreamDefaultController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub type TransformStreamDefaultController; # [wasm_bindgen (structural , method , getter , js_class = "TransformStreamDefaultController" , js_name = desiredSize)] #[doc = "Getter for the `desiredSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/desiredSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn desired_size(this: &TransformStreamDefaultController) -> Option; # [wasm_bindgen (catch , method , structural , js_class = "TransformStreamDefaultController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn enqueue(this: &TransformStreamDefaultController) -> Result<(), JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TransformStreamDefaultController" , js_name = enqueue)] #[doc = "The `enqueue()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/enqueue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn enqueue_with_chunk( this: &TransformStreamDefaultController, chunk: &::wasm_bindgen::JsValue, ) -> Result<(), JsValue>; # [wasm_bindgen (method , structural , js_class = "TransformStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn error(this: &TransformStreamDefaultController); # [wasm_bindgen (method , structural , js_class = "TransformStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn error_with_reason( this: &TransformStreamDefaultController, reason: &::wasm_bindgen::JsValue, ); # [wasm_bindgen (method , structural , js_class = "TransformStreamDefaultController" , js_name = terminate)] #[doc = "The `terminate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController/terminate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransformStreamDefaultController`*"] pub fn terminate(this: &TransformStreamDefaultController); } web-sys-0.3.81/src/features/gen_Transformer.rs000064400000000000000000000111201046102023000174070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Transformer)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Transformer` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] pub type Transformer; #[doc = "Get the `flush` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, getter = "flush")] pub fn get_flush(this: &Transformer) -> Option<::js_sys::Function>; #[doc = "Change the `flush` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, setter = "flush")] pub fn set_flush(this: &Transformer, val: &::js_sys::Function); #[doc = "Get the `readableType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, getter = "readableType")] pub fn get_readable_type(this: &Transformer) -> ::wasm_bindgen::JsValue; #[doc = "Change the `readableType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, setter = "readableType")] pub fn set_readable_type(this: &Transformer, val: &::wasm_bindgen::JsValue); #[doc = "Get the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, getter = "start")] pub fn get_start(this: &Transformer) -> Option<::js_sys::Function>; #[doc = "Change the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, setter = "start")] pub fn set_start(this: &Transformer, val: &::js_sys::Function); #[doc = "Get the `transform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, getter = "transform")] pub fn get_transform(this: &Transformer) -> Option<::js_sys::Function>; #[doc = "Change the `transform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, setter = "transform")] pub fn set_transform(this: &Transformer, val: &::js_sys::Function); #[doc = "Get the `writableType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, getter = "writableType")] pub fn get_writable_type(this: &Transformer) -> ::wasm_bindgen::JsValue; #[doc = "Change the `writableType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] #[wasm_bindgen(method, setter = "writableType")] pub fn set_writable_type(this: &Transformer, val: &::wasm_bindgen::JsValue); } impl Transformer { #[doc = "Construct a new `Transformer`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Transformer`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_flush()` instead."] pub fn flush(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_flush(val); self } #[deprecated = "Use `set_readable_type()` instead."] pub fn readable_type(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_readable_type(val); self } #[deprecated = "Use `set_start()` instead."] pub fn start(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_start(val); self } #[deprecated = "Use `set_transform()` instead."] pub fn transform(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_transform(val); self } #[deprecated = "Use `set_writable_type()` instead."] pub fn writable_type(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_writable_type(val); self } } impl Default for Transformer { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TransitionEvent.rs000064400000000000000000000062051046102023000202510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_TransitionEventInit.rs000064400000000000000000000126601046102023000210770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &TransitionEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &TransitionEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &TransitionEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &TransitionEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &TransitionEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &TransitionEventInit, val: bool); #[doc = "Get the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "elapsedTime")] pub fn get_elapsed_time(this: &TransitionEventInit) -> Option; #[doc = "Change the `elapsedTime` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "elapsedTime")] pub fn set_elapsed_time(this: &TransitionEventInit, val: f32); #[doc = "Get the `propertyName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "propertyName")] pub fn get_property_name(this: &TransitionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `propertyName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "propertyName")] pub fn set_property_name(this: &TransitionEventInit, val: &str); #[doc = "Get the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "pseudoElement")] pub fn get_pseudo_element(this: &TransitionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, setter = "pseudoElement")] pub fn set_pseudo_element(this: &TransitionEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_elapsed_time()` instead."] pub fn elapsed_time(&mut self, val: f32) -> &mut Self { self.set_elapsed_time(val); self } #[deprecated = "Use `set_property_name()` instead."] pub fn property_name(&mut self, val: &str) -> &mut Self { self.set_property_name(val); self } #[deprecated = "Use `set_pseudo_element()` instead."] pub fn pseudo_element(&mut self, val: &str) -> &mut Self { self.set_pseudo_element(val); self } } impl Default for TransitionEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Transport.rs000064400000000000000000000005531046102023000171110ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_TreeBoxObject.rs000064400000000000000000000261621046102023000176200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_TreeCellInfo.rs000064400000000000000000000043411046102023000174270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `childElt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] #[wasm_bindgen(method, getter = "childElt")] pub fn get_child_elt(this: &TreeCellInfo) -> Option<::alloc::string::String>; #[doc = "Change the `childElt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] #[wasm_bindgen(method, setter = "childElt")] pub fn set_child_elt(this: &TreeCellInfo, val: &str); #[doc = "Get the `row` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] #[wasm_bindgen(method, getter = "row")] pub fn get_row(this: &TreeCellInfo) -> Option; #[doc = "Change the `row` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] #[wasm_bindgen(method, setter = "row")] pub fn set_row(this: &TreeCellInfo, val: i32); } 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 } #[deprecated = "Use `set_child_elt()` instead."] pub fn child_elt(&mut self, val: &str) -> &mut Self { self.set_child_elt(val); self } #[deprecated = "Use `set_row()` instead."] pub fn row(&mut self, val: i32) -> &mut Self { self.set_row(val); self } } impl Default for TreeCellInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_TreeView.rs000064400000000000000000000217401046102023000166500ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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; } web-sys-0.3.81/src/features/gen_TreeWalker.rs000064400000000000000000000143761046102023000171720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_U2f.rs000064400000000000000000000077671046102023000155670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_U2fClientData.rs000064400000000000000000000057341046102023000175100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "challenge")] pub fn get_challenge(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, setter = "challenge")] pub fn set_challenge(this: &U2fClientData, val: &str); #[doc = "Get the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "origin")] pub fn get_origin(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, setter = "origin")] pub fn set_origin(this: &U2fClientData, val: &str); #[doc = "Get the `typ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "typ")] pub fn get_typ(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `typ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, setter = "typ")] pub fn set_typ(this: &U2fClientData, val: &str); } 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 } #[deprecated = "Use `set_challenge()` instead."] pub fn challenge(&mut self, val: &str) -> &mut Self { self.set_challenge(val); self } #[deprecated = "Use `set_origin()` instead."] pub fn origin(&mut self, val: &str) -> &mut Self { self.set_origin(val); self } #[deprecated = "Use `set_typ()` instead."] pub fn typ(&mut self, val: &str) -> &mut Self { self.set_typ(val); self } } impl Default for U2fClientData { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_ULongRange.rs000064400000000000000000000075271046102023000171260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ULongRange)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ULongRange` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ULongRange; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "max")] pub fn get_max(this: &ULongRange) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `max` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "max")] pub fn set_max(this: &ULongRange, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "min")] pub fn get_min(this: &ULongRange) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `min` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "min")] pub fn set_min(this: &ULongRange, val: u32); } #[cfg(web_sys_unstable_apis)] impl ULongRange { #[doc = "Construct a new `ULongRange`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ULongRange`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_max()` instead."] pub fn max(&mut self, val: u32) -> &mut Self { self.set_max(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_min()` instead."] pub fn min(&mut self, val: u32) -> &mut Self { self.set_min(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for ULongRange { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UaDataValues.rs000064400000000000000000000350151046102023000174350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UADataValues)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UaDataValues` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UaDataValues; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `architecture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "architecture")] pub fn get_architecture(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `architecture` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "architecture")] pub fn set_architecture(this: &UaDataValues, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bitness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bitness")] pub fn get_bitness(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bitness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bitness")] pub fn set_bitness(this: &UaDataValues, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `brands` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "brands")] pub fn get_brands(this: &UaDataValues) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `brands` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "brands")] pub fn set_brands(this: &UaDataValues, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `formFactors` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "formFactors")] pub fn get_form_factors(this: &UaDataValues) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `formFactors` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "formFactors")] pub fn set_form_factors(this: &UaDataValues, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `fullVersionList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "fullVersionList")] pub fn get_full_version_list(this: &UaDataValues) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `fullVersionList` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "fullVersionList")] pub fn set_full_version_list(this: &UaDataValues, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mobile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mobile")] pub fn get_mobile(this: &UaDataValues) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mobile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mobile")] pub fn set_mobile(this: &UaDataValues, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `model` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "model")] pub fn get_model(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `model` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "model")] pub fn set_model(this: &UaDataValues, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `platform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platform")] pub fn get_platform(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "platform")] pub fn set_platform(this: &UaDataValues, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `platformVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platformVersion")] pub fn get_platform_version(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platformVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "platformVersion")] pub fn set_platform_version(this: &UaDataValues, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `wow64` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "wow64")] pub fn get_wow64(this: &UaDataValues) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `wow64` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "wow64")] pub fn set_wow64(this: &UaDataValues, val: bool); } #[cfg(web_sys_unstable_apis)] impl UaDataValues { #[doc = "Construct a new `UaDataValues`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaDataValues`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_architecture()` instead."] pub fn architecture(&mut self, val: &str) -> &mut Self { self.set_architecture(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bitness()` instead."] pub fn bitness(&mut self, val: &str) -> &mut Self { self.set_bitness(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_brands()` instead."] pub fn brands(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_brands(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_form_factors()` instead."] pub fn form_factors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_form_factors(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_full_version_list()` instead."] pub fn full_version_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_full_version_list(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mobile()` instead."] pub fn mobile(&mut self, val: bool) -> &mut Self { self.set_mobile(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_model()` instead."] pub fn model(&mut self, val: &str) -> &mut Self { self.set_model(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_platform()` instead."] pub fn platform(&mut self, val: &str) -> &mut Self { self.set_platform(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_platform_version()` instead."] pub fn platform_version(&mut self, val: &str) -> &mut Self { self.set_platform_version(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_wow64()` instead."] pub fn wow64(&mut self, val: bool) -> &mut Self { self.set_wow64(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for UaDataValues { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UaLowEntropyJson.rs000064400000000000000000000125431046102023000203610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UALowEntropyJSON)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UaLowEntropyJson` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UaLowEntropyJson; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `brands` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "brands")] pub fn get_brands(this: &UaLowEntropyJson) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `brands` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "brands")] pub fn set_brands(this: &UaLowEntropyJson, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `mobile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mobile")] pub fn get_mobile(this: &UaLowEntropyJson) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mobile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mobile")] pub fn set_mobile(this: &UaLowEntropyJson, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `platform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platform")] pub fn get_platform(this: &UaLowEntropyJson) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "platform")] pub fn set_platform(this: &UaLowEntropyJson, val: &str); } #[cfg(web_sys_unstable_apis)] impl UaLowEntropyJson { #[doc = "Construct a new `UaLowEntropyJson`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UaLowEntropyJson`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_brands()` instead."] pub fn brands(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_brands(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_mobile()` instead."] pub fn mobile(&mut self, val: bool) -> &mut Self { self.set_mobile(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_platform()` instead."] pub fn platform(&mut self, val: &str) -> &mut Self { self.set_platform(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for UaLowEntropyJson { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UdpMessageEventInit.rs000064400000000000000000000125721046102023000210040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &UdpMessageEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &UdpMessageEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &UdpMessageEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &UdpMessageEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &UdpMessageEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &UdpMessageEventInit, val: bool); #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &UdpMessageEventInit) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &UdpMessageEventInit, val: &::wasm_bindgen::JsValue); #[doc = "Get the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "remoteAddress")] pub fn get_remote_address(this: &UdpMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "remoteAddress")] pub fn set_remote_address(this: &UdpMessageEventInit, val: &str); #[doc = "Get the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "remotePort")] pub fn get_remote_port(this: &UdpMessageEventInit) -> Option; #[doc = "Change the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, setter = "remotePort")] pub fn set_remote_port(this: &UdpMessageEventInit, val: u16); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_data(val); self } #[deprecated = "Use `set_remote_address()` instead."] pub fn remote_address(&mut self, val: &str) -> &mut Self { self.set_remote_address(val); self } #[deprecated = "Use `set_remote_port()` instead."] pub fn remote_port(&mut self, val: u16) -> &mut Self { self.set_remote_port(val); self } } impl Default for UdpMessageEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UdpOptions.rs000064400000000000000000000122621046102023000172210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `addressReuse` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "addressReuse")] pub fn get_address_reuse(this: &UdpOptions) -> Option; #[doc = "Change the `addressReuse` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "addressReuse")] pub fn set_address_reuse(this: &UdpOptions, val: bool); #[doc = "Get the `localAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "localAddress")] pub fn get_local_address(this: &UdpOptions) -> Option<::alloc::string::String>; #[doc = "Change the `localAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "localAddress")] pub fn set_local_address(this: &UdpOptions, val: &str); #[doc = "Get the `localPort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "localPort")] pub fn get_local_port(this: &UdpOptions) -> Option; #[doc = "Change the `localPort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "localPort")] pub fn set_local_port(this: &UdpOptions, val: u16); #[doc = "Get the `loopback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "loopback")] pub fn get_loopback(this: &UdpOptions) -> Option; #[doc = "Change the `loopback` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "loopback")] pub fn set_loopback(this: &UdpOptions, val: bool); #[doc = "Get the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "remoteAddress")] pub fn get_remote_address(this: &UdpOptions) -> Option<::alloc::string::String>; #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "remoteAddress")] pub fn set_remote_address(this: &UdpOptions, val: &str); #[doc = "Get the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "remotePort")] pub fn get_remote_port(this: &UdpOptions) -> Option; #[doc = "Change the `remotePort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, setter = "remotePort")] pub fn set_remote_port(this: &UdpOptions, val: u16); } 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 } #[deprecated = "Use `set_address_reuse()` instead."] pub fn address_reuse(&mut self, val: bool) -> &mut Self { self.set_address_reuse(val); self } #[deprecated = "Use `set_local_address()` instead."] pub fn local_address(&mut self, val: &str) -> &mut Self { self.set_local_address(val); self } #[deprecated = "Use `set_local_port()` instead."] pub fn local_port(&mut self, val: u16) -> &mut Self { self.set_local_port(val); self } #[deprecated = "Use `set_loopback()` instead."] pub fn loopback(&mut self, val: bool) -> &mut Self { self.set_loopback(val); self } #[deprecated = "Use `set_remote_address()` instead."] pub fn remote_address(&mut self, val: &str) -> &mut Self { self.set_remote_address(val); self } #[deprecated = "Use `set_remote_port()` instead."] pub fn remote_port(&mut self, val: u16) -> &mut Self { self.set_remote_port(val); self } } impl Default for UdpOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UiEvent.rs000064400000000000000000000205711046102023000164760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_UiEventInit.rs000064400000000000000000000106321046102023000173170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &UiEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &UiEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &UiEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &UiEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &UiEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &UiEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &UiEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &UiEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UiEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &UiEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &UiEventInit, val: Option<&Window>); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } } impl Default for UiEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UnderlyingSink.rs000064400000000000000000000107511046102023000200630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UnderlyingSink)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UnderlyingSink` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] pub type UnderlyingSink; #[doc = "Get the `abort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, getter = "abort")] pub fn get_abort(this: &UnderlyingSink) -> Option<::js_sys::Function>; #[doc = "Change the `abort` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, setter = "abort")] pub fn set_abort(this: &UnderlyingSink, val: &::js_sys::Function); #[doc = "Get the `close` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, getter = "close")] pub fn get_close(this: &UnderlyingSink) -> Option<::js_sys::Function>; #[doc = "Change the `close` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, setter = "close")] pub fn set_close(this: &UnderlyingSink, val: &::js_sys::Function); #[doc = "Get the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, getter = "start")] pub fn get_start(this: &UnderlyingSink) -> Option<::js_sys::Function>; #[doc = "Change the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, setter = "start")] pub fn set_start(this: &UnderlyingSink, val: &::js_sys::Function); #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &UnderlyingSink) -> ::wasm_bindgen::JsValue; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &UnderlyingSink, val: &::wasm_bindgen::JsValue); #[doc = "Get the `write` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, getter = "write")] pub fn get_write(this: &UnderlyingSink) -> Option<::js_sys::Function>; #[doc = "Change the `write` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] #[wasm_bindgen(method, setter = "write")] pub fn set_write(this: &UnderlyingSink, val: &::js_sys::Function); } impl UnderlyingSink { #[doc = "Construct a new `UnderlyingSink`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSink`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_abort()` instead."] pub fn abort(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_abort(val); self } #[deprecated = "Use `set_close()` instead."] pub fn close(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_close(val); self } #[deprecated = "Use `set_start()` instead."] pub fn start(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_start(val); self } #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_type(val); self } #[deprecated = "Use `set_write()` instead."] pub fn write(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_write(val); self } } impl Default for UnderlyingSink { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UnderlyingSource.rs000064400000000000000000000114651046102023000204220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UnderlyingSource)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UnderlyingSource` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] pub type UnderlyingSource; #[doc = "Get the `autoAllocateChunkSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, getter = "autoAllocateChunkSize")] pub fn get_auto_allocate_chunk_size(this: &UnderlyingSource) -> Option; #[doc = "Change the `autoAllocateChunkSize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, setter = "autoAllocateChunkSize")] pub fn set_auto_allocate_chunk_size(this: &UnderlyingSource, val: f64); #[doc = "Get the `cancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, getter = "cancel")] pub fn get_cancel(this: &UnderlyingSource) -> Option<::js_sys::Function>; #[doc = "Change the `cancel` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, setter = "cancel")] pub fn set_cancel(this: &UnderlyingSource, val: &::js_sys::Function); #[doc = "Get the `pull` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, getter = "pull")] pub fn get_pull(this: &UnderlyingSource) -> Option<::js_sys::Function>; #[doc = "Change the `pull` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, setter = "pull")] pub fn set_pull(this: &UnderlyingSource, val: &::js_sys::Function); #[doc = "Get the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, getter = "start")] pub fn get_start(this: &UnderlyingSource) -> Option<::js_sys::Function>; #[doc = "Change the `start` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] #[wasm_bindgen(method, setter = "start")] pub fn set_start(this: &UnderlyingSource, val: &::js_sys::Function); #[cfg(feature = "ReadableStreamType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamType`, `UnderlyingSource`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &UnderlyingSource) -> Option; #[cfg(feature = "ReadableStreamType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStreamType`, `UnderlyingSource`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &UnderlyingSource, val: ReadableStreamType); } impl UnderlyingSource { #[doc = "Construct a new `UnderlyingSource`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UnderlyingSource`*"] pub fn new() -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret } #[deprecated = "Use `set_auto_allocate_chunk_size()` instead."] pub fn auto_allocate_chunk_size(&mut self, val: f64) -> &mut Self { self.set_auto_allocate_chunk_size(val); self } #[deprecated = "Use `set_cancel()` instead."] pub fn cancel(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_cancel(val); self } #[deprecated = "Use `set_pull()` instead."] pub fn pull(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_pull(val); self } #[deprecated = "Use `set_start()` instead."] pub fn start(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_start(val); self } #[cfg(feature = "ReadableStreamType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: ReadableStreamType) -> &mut Self { self.set_type(val); self } } impl Default for UnderlyingSource { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_Url.rs000064400000000000000000000304261046102023000156610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Url`*"] pub fn create_object_url_with_blob(blob: &Blob) -> Result<::alloc::string::String, JsValue>; #[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_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `Url`*"] pub fn create_object_url_with_source( source: &MediaSource, ) -> Result<::alloc::string::String, JsValue>; # [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_static)"] #[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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_UrlSearchParams.rs000064400000000000000000000164611046102023000201560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_record_from_str_to_str( init: &::js_sys::Object, ) -> 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 = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn entries(this: &UrlSearchParams) -> ::js_sys::Iterator; # [wasm_bindgen (catch , method , structural , js_class = "URLSearchParams" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn for_each(this: &UrlSearchParams, callback: &::js_sys::Function) -> Result<(), JsValue>; # [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<::alloc::string::String>; # [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 = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn keys(this: &UrlSearchParams) -> ::js_sys::Iterator; # [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>; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] pub fn values(this: &UrlSearchParams) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_Usb.rs000064400000000000000000000121361046102023000156460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = USB , typescript_type = "USB")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `Usb` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type Usb; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USB" , 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/USB/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onconnect(this: &Usb) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "USB" , 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/USB/onconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onconnect(this: &Usb, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USB" , js_name = ondisconnect)] #[doc = "Getter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondisconnect(this: &Usb) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "USB" , js_name = ondisconnect)] #[doc = "Setter for the `ondisconnect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/ondisconnect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondisconnect(this: &Usb, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USB" , js_name = getDevices)] #[doc = "The `getDevices()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/getDevices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_devices(this: &Usb) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDeviceRequestOptions")] # [wasm_bindgen (method , structural , js_class = "USB" , js_name = requestDevice)] #[doc = "The `requestDevice()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USB/requestDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`, `UsbDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_device(this: &Usb, options: &UsbDeviceRequestOptions) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_UsbAlternateInterface.rs000064400000000000000000000147011046102023000213270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBAlternateInterface , typescript_type = "USBAlternateInterface")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbAlternateInterface` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbAlternateInterface; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = alternateSetting)] #[doc = "Getter for the `alternateSetting` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/alternateSetting)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternate_setting(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceClass)] #[doc = "Getter for the `interfaceClass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceClass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_class(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceSubclass)] #[doc = "Getter for the `interfaceSubclass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceSubclass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_subclass(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceProtocol)] #[doc = "Getter for the `interfaceProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceProtocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_protocol(this: &UsbAlternateInterface) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = interfaceName)] #[doc = "Getter for the `interfaceName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/interfaceName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_name(this: &UsbAlternateInterface) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = endpoints)] #[doc = "Getter for the `endpoints` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/endpoints)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn endpoints(this: &UsbAlternateInterface) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbInterface")] #[wasm_bindgen(catch, constructor, js_class = "USBAlternateInterface")] #[doc = "The `new UsbAlternateInterface(..)` constructor, creating a new instance of `UsbAlternateInterface`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBAlternateInterface/USBAlternateInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`, `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( device_interface: &UsbInterface, alternate_setting: u8, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbConfiguration.rs000064400000000000000000000077521046102023000204060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBConfiguration , typescript_type = "USBConfiguration")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConfiguration` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbConfiguration; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = configurationValue)] #[doc = "Getter for the `configurationValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/configurationValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration_value(this: &UsbConfiguration) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = configurationName)] #[doc = "Getter for the `configurationName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/configurationName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration_name(this: &UsbConfiguration) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = interfaces)] #[doc = "Getter for the `interfaces` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/interfaces)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interfaces(this: &UsbConfiguration) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] #[wasm_bindgen(catch, constructor, js_class = "USBConfiguration")] #[doc = "The `new UsbConfiguration(..)` constructor, creating a new instance of `UsbConfiguration`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConfiguration/USBConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(device: &UsbDevice, configuration_value: u8) -> Result; } web-sys-0.3.81/src/features/gen_UsbConnectionEvent.rs000064400000000000000000000050751046102023000206740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = USBConnectionEvent , typescript_type = "USBConnectionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConnectionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbConnectionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] # [wasm_bindgen (structural , method , getter , js_class = "USBConnectionEvent" , js_name = device)] #[doc = "Getter for the `device` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConnectionEvent/device)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEvent`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device(this: &UsbConnectionEvent) -> UsbDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbConnectionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "USBConnectionEvent")] #[doc = "The `new UsbConnectionEvent(..)` constructor, creating a new instance of `UsbConnectionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBConnectionEvent/USBConnectionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEvent`, `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &UsbConnectionEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbConnectionEventInit.rs000064400000000000000000000155351046102023000215220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBConnectionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbConnectionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbConnectionEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &UsbConnectionEventInit) -> Option; #[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: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &UsbConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &UsbConnectionEventInit) -> Option; #[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: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &UsbConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &UsbConnectionEventInit) -> Option; #[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: `UsbConnectionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &UsbConnectionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] #[doc = "Get the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "device")] pub fn get_device(this: &UsbConnectionEventInit) -> UsbDevice; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] #[doc = "Change the `device` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "device")] pub fn set_device(this: &UsbConnectionEventInit, val: &UsbDevice); } #[cfg(web_sys_unstable_apis)] impl UsbConnectionEventInit { #[cfg(feature = "UsbDevice")] #[doc = "Construct a new `UsbConnectionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConnectionEventInit`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(device: &UsbDevice) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_device(device); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDevice")] #[deprecated = "Use `set_device()` instead."] pub fn device(&mut self, val: &UsbDevice) -> &mut Self { self.set_device(val); self } } web-sys-0.3.81/src/features/gen_UsbControlTransferParameters.rs000064400000000000000000000214261046102023000227420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBControlTransferParameters)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbControlTransferParameters` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbControlTransferParameters; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `index` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "index")] pub fn get_index(this: &UsbControlTransferParameters) -> u16; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `index` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "index")] pub fn set_index(this: &UsbControlTransferParameters, val: u16); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRecipient")] #[doc = "Get the `recipient` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbRecipient`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "recipient")] pub fn get_recipient(this: &UsbControlTransferParameters) -> UsbRecipient; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRecipient")] #[doc = "Change the `recipient` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbRecipient`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "recipient")] pub fn set_recipient(this: &UsbControlTransferParameters, val: UsbRecipient); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "request")] pub fn get_request(this: &UsbControlTransferParameters) -> u8; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `request` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "request")] pub fn set_request(this: &UsbControlTransferParameters, val: u8); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRequestType")] #[doc = "Get the `requestType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbRequestType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requestType")] pub fn get_request_type(this: &UsbControlTransferParameters) -> UsbRequestType; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRequestType")] #[doc = "Change the `requestType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbRequestType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requestType")] pub fn set_request_type(this: &UsbControlTransferParameters, val: UsbRequestType); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &UsbControlTransferParameters) -> u16; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &UsbControlTransferParameters, val: u16); } #[cfg(web_sys_unstable_apis)] impl UsbControlTransferParameters { #[cfg(all(feature = "UsbRecipient", feature = "UsbRequestType",))] #[doc = "Construct a new `UsbControlTransferParameters`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbRecipient`, `UsbRequestType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( index: u16, recipient: UsbRecipient, request: u8, request_type: UsbRequestType, value: u16, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_index(index); ret.set_recipient(recipient); ret.set_request(request); ret.set_request_type(request_type); ret.set_value(value); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_index()` instead."] pub fn index(&mut self, val: u16) -> &mut Self { self.set_index(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRecipient")] #[deprecated = "Use `set_recipient()` instead."] pub fn recipient(&mut self, val: UsbRecipient) -> &mut Self { self.set_recipient(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_request()` instead."] pub fn request(&mut self, val: u8) -> &mut Self { self.set_request(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbRequestType")] #[deprecated = "Use `set_request_type()` instead."] pub fn request_type(&mut self, val: UsbRequestType) -> &mut Self { self.set_request_type(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: u16) -> &mut Self { self.set_value(val); self } } web-sys-0.3.81/src/features/gen_UsbDevice.rs000064400000000000000000000757051046102023000170010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDevice , typescript_type = "USBDevice")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDevice` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDevice; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionMajor)] #[doc = "Getter for the `usbVersionMajor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionMajor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_major(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionMinor)] #[doc = "Getter for the `usbVersionMinor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionMinor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_minor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = usbVersionSubminor)] #[doc = "Getter for the `usbVersionSubminor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/usbVersionSubminor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb_version_subminor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceClass)] #[doc = "Getter for the `deviceClass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceClass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_class(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceSubclass)] #[doc = "Getter for the `deviceSubclass` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceSubclass)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_subclass(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceProtocol)] #[doc = "Getter for the `deviceProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceProtocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_protocol(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = vendorId)] #[doc = "Getter for the `vendorId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/vendorId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn vendor_id(this: &UsbDevice) -> u16; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = productId)] #[doc = "Getter for the `productId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/productId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_id(this: &UsbDevice) -> u16; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionMajor)] #[doc = "Getter for the `deviceVersionMajor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionMajor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_major(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionMinor)] #[doc = "Getter for the `deviceVersionMinor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionMinor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_minor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = deviceVersionSubminor)] #[doc = "Getter for the `deviceVersionSubminor` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/deviceVersionSubminor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_version_subminor(this: &UsbDevice) -> u8; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = manufacturerName)] #[doc = "Getter for the `manufacturerName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/manufacturerName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn manufacturer_name(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = productName)] #[doc = "Getter for the `productName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/productName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn product_name(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = serialNumber)] #[doc = "Getter for the `serialNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/serialNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial_number(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbConfiguration")] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = configuration)] #[doc = "Getter for the `configuration` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/configuration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configuration(this: &UsbDevice) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = configurations)] #[doc = "Getter for the `configurations` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/configurations)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configurations(this: &UsbDevice) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = opened)] #[doc = "Getter for the `opened` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/opened)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn opened(this: &UsbDevice) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = claimInterface)] #[doc = "The `claimInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/claimInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn claim_interface(this: &UsbDevice, interface_number: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDirection")] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = clearHalt)] #[doc = "The `clearHalt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/clearHalt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`, `UsbDirection`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clear_halt( this: &UsbDevice, direction: UsbDirection, endpoint_number: u8, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferIn)] #[doc = "The `controlTransferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferIn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_in( this: &UsbDevice, setup: &UsbControlTransferParameters, length: u16, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out( this: &UsbDevice, setup: &UsbControlTransferParameters, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out_with_buffer_source( this: &UsbDevice, setup: &UsbControlTransferParameters, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out_with_u8_slice( this: &UsbDevice, setup: &UsbControlTransferParameters, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbControlTransferParameters")] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = controlTransferOut)] #[doc = "The `controlTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/controlTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbControlTransferParameters`, `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn control_transfer_out_with_u8_array( this: &UsbDevice, setup: &UsbControlTransferParameters, data: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = forget)] #[doc = "The `forget()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/forget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn forget(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = isochronousTransferIn)] #[doc = "The `isochronousTransferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferIn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn isochronous_transfer_in( this: &UsbDevice, endpoint_number: u8, packet_lengths: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = isochronousTransferOut)] #[doc = "The `isochronousTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn isochronous_transfer_out_with_buffer_source( this: &UsbDevice, endpoint_number: u8, data: &::js_sys::Object, packet_lengths: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = isochronousTransferOut)] #[doc = "The `isochronousTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn isochronous_transfer_out_with_u8_slice( this: &UsbDevice, endpoint_number: u8, data: &mut [u8], packet_lengths: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = isochronousTransferOut)] #[doc = "The `isochronousTransferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/isochronousTransferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn isochronous_transfer_out_with_u8_array( this: &UsbDevice, endpoint_number: u8, data: &::js_sys::Uint8Array, packet_lengths: &::wasm_bindgen::JsValue, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/open)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn open(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = releaseInterface)] #[doc = "The `releaseInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/releaseInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release_interface(this: &UsbDevice, interface_number: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &UsbDevice) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = selectAlternateInterface)] #[doc = "The `selectAlternateInterface()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/selectAlternateInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn select_alternate_interface( this: &UsbDevice, interface_number: u8, alternate_setting: u8, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = selectConfiguration)] #[doc = "The `selectConfiguration()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/selectConfiguration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn select_configuration(this: &UsbDevice, configuration_value: u8) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "USBDevice" , js_name = transferIn)] #[doc = "The `transferIn()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferIn)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_in(this: &UsbDevice, endpoint_number: u8, length: u32) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = transferOut)] #[doc = "The `transferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_out_with_buffer_source( this: &UsbDevice, endpoint_number: u8, data: &::js_sys::Object, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = transferOut)] #[doc = "The `transferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_out_with_u8_slice( this: &UsbDevice, endpoint_number: u8, data: &mut [u8], ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "USBDevice" , js_name = transferOut)] #[doc = "The `transferOut()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferOut)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDevice`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer_out_with_u8_array( this: &UsbDevice, endpoint_number: u8, data: &::js_sys::Uint8Array, ) -> Result<::js_sys::Promise, JsValue>; } web-sys-0.3.81/src/features/gen_UsbDeviceFilter.rs000064400000000000000000000224661046102023000201430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDeviceFilter)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDeviceFilter` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDeviceFilter; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `classCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "classCode")] pub fn get_class_code(this: &UsbDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `classCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "classCode")] pub fn set_class_code(this: &UsbDeviceFilter, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "productId")] pub fn get_product_id(this: &UsbDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `productId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "productId")] pub fn set_product_id(this: &UsbDeviceFilter, val: u16); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `protocolCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "protocolCode")] pub fn get_protocol_code(this: &UsbDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `protocolCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "protocolCode")] pub fn set_protocol_code(this: &UsbDeviceFilter, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `serialNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serialNumber")] pub fn get_serial_number(this: &UsbDeviceFilter) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serialNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "serialNumber")] pub fn set_serial_number(this: &UsbDeviceFilter, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `subclassCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "subclassCode")] pub fn get_subclass_code(this: &UsbDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `subclassCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "subclassCode")] pub fn set_subclass_code(this: &UsbDeviceFilter, val: u8); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "vendorId")] pub fn get_vendor_id(this: &UsbDeviceFilter) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `vendorId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "vendorId")] pub fn set_vendor_id(this: &UsbDeviceFilter, val: u16); } #[cfg(web_sys_unstable_apis)] impl UsbDeviceFilter { #[doc = "Construct a new `UsbDeviceFilter`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceFilter`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_class_code()` instead."] pub fn class_code(&mut self, val: u8) -> &mut Self { self.set_class_code(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_product_id()` instead."] pub fn product_id(&mut self, val: u16) -> &mut Self { self.set_product_id(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_protocol_code()` instead."] pub fn protocol_code(&mut self, val: u8) -> &mut Self { self.set_protocol_code(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_serial_number()` instead."] pub fn serial_number(&mut self, val: &str) -> &mut Self { self.set_serial_number(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_subclass_code()` instead."] pub fn subclass_code(&mut self, val: u8) -> &mut Self { self.set_subclass_code(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_vendor_id()` instead."] pub fn vendor_id(&mut self, val: u16) -> &mut Self { self.set_vendor_id(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for UsbDeviceFilter { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UsbDeviceRequestOptions.rs000064400000000000000000000054461046102023000217210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBDeviceRequestOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbDeviceRequestOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbDeviceRequestOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &UsbDeviceRequestOptions) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &UsbDeviceRequestOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl UsbDeviceRequestOptions { #[doc = "Construct a new `UsbDeviceRequestOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDeviceRequestOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(filters: &::wasm_bindgen::JsValue) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_filters(filters); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } } web-sys-0.3.81/src/features/gen_UsbDirection.rs000064400000000000000000000011301046102023000174770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `UsbDirection` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDirection`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbDirection { In = "in", Out = "out", } web-sys-0.3.81/src/features/gen_UsbEndpoint.rs000064400000000000000000000113501046102023000173440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBEndpoint , typescript_type = "USBEndpoint")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbEndpoint` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbEndpoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbEndpoint; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = endpointNumber)] #[doc = "Getter for the `endpointNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/endpointNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbEndpoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn endpoint_number(this: &UsbEndpoint) -> u8; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbDirection")] # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , 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/USBEndpoint/direction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbDirection`, `UsbEndpoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn direction(this: &UsbEndpoint) -> UsbDirection; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbEndpointType")] # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , 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/USBEndpoint/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbEndpoint`, `UsbEndpointType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &UsbEndpoint) -> UsbEndpointType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBEndpoint" , js_name = packetSize)] #[doc = "Getter for the `packetSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/packetSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbEndpoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packet_size(this: &UsbEndpoint) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "UsbAlternateInterface", feature = "UsbDirection",))] #[wasm_bindgen(catch, constructor, js_class = "USBEndpoint")] #[doc = "The `new UsbEndpoint(..)` constructor, creating a new instance of `UsbEndpoint`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBEndpoint/USBEndpoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`, `UsbDirection`, `UsbEndpoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( alternate: &UsbAlternateInterface, endpoint_number: u8, direction: UsbDirection, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbEndpointType.rs000064400000000000000000000012221046102023000202030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `UsbEndpointType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbEndpointType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbEndpointType { Bulk = "bulk", Interrupt = "interrupt", Isochronous = "isochronous", } web-sys-0.3.81/src/features/gen_UsbInTransferResult.rs000064400000000000000000000102721046102023000210400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBInTransferResult , typescript_type = "USBInTransferResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbInTransferResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbInTransferResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBInTransferResult" , 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/USBInTransferResult/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &UsbInTransferResult) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] # [wasm_bindgen (structural , method , getter , js_class = "USBInTransferResult" , 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/USBInTransferResult/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbInTransferResult) -> UsbTransferStatus; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBInTransferResult")] #[doc = "The `new UsbInTransferResult(..)` constructor, creating a new instance of `UsbInTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInTransferResult/USBInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(status: UsbTransferStatus) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBInTransferResult")] #[doc = "The `new UsbInTransferResult(..)` constructor, creating a new instance of `UsbInTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInTransferResult/USBInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_data( status: UsbTransferStatus, data: Option<&::js_sys::DataView>, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbInterface.rs000064400000000000000000000112311046102023000174620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBInterface , typescript_type = "USBInterface")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbInterface` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbInterface; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = interfaceNumber)] #[doc = "Getter for the `interfaceNumber` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/interfaceNumber)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn interface_number(this: &UsbInterface) -> u8; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbAlternateInterface")] # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = alternate)] #[doc = "Getter for the `alternate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/alternate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbAlternateInterface`, `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternate(this: &UsbInterface) -> UsbAlternateInterface; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = alternates)] #[doc = "Getter for the `alternates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/alternates)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn alternates(this: &UsbInterface) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBInterface" , js_name = claimed)] #[doc = "Getter for the `claimed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/claimed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn claimed(this: &UsbInterface) -> bool; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbConfiguration")] #[wasm_bindgen(catch, constructor, js_class = "USBInterface")] #[doc = "The `new UsbInterface(..)` constructor, creating a new instance of `UsbInterface`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBInterface/USBInterface)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbConfiguration`, `UsbInterface`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( configuration: &UsbConfiguration, interface_number: u8, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbIsochronousInTransferPacket.rs000064400000000000000000000107561046102023000232340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousInTransferPacket , typescript_type = "USBIsochronousInTransferPacket")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousInTransferPacket` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousInTransferPacket; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferPacket" , 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/USBIsochronousInTransferPacket/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &UsbIsochronousInTransferPacket) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferPacket" , 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/USBIsochronousInTransferPacket/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbIsochronousInTransferPacket) -> UsbTransferStatus; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferPacket")] #[doc = "The `new UsbIsochronousInTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousInTransferPacket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferPacket/USBIsochronousInTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(status: UsbTransferStatus) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferPacket")] #[doc = "The `new UsbIsochronousInTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousInTransferPacket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferPacket/USBIsochronousInTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_data( status: UsbTransferStatus, data: Option<&::js_sys::DataView>, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbIsochronousInTransferResult.rs000064400000000000000000000105221046102023000232720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousInTransferResult , typescript_type = "USBIsochronousInTransferResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousInTransferResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousInTransferResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferResult" , 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/USBIsochronousInTransferResult/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn data(this: &UsbIsochronousInTransferResult) -> Option<::js_sys::DataView>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousInTransferResult" , js_name = packets)] #[doc = "Getter for the `packets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/packets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packets(this: &UsbIsochronousInTransferResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferResult")] #[doc = "The `new UsbIsochronousInTransferResult(..)` constructor, creating a new instance of `UsbIsochronousInTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/USBIsochronousInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( packets: &::wasm_bindgen::JsValue, ) -> Result; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousInTransferResult")] #[doc = "The `new UsbIsochronousInTransferResult(..)` constructor, creating a new instance of `UsbIsochronousInTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousInTransferResult/USBIsochronousInTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousInTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_data( packets: &::wasm_bindgen::JsValue, data: Option<&::js_sys::DataView>, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbIsochronousOutTransferPacket.rs000064400000000000000000000110161046102023000234230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousOutTransferPacket , typescript_type = "USBIsochronousOutTransferPacket")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousOutTransferPacket` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousOutTransferPacket; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferPacket" , js_name = bytesWritten)] #[doc = "Getter for the `bytesWritten` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/bytesWritten)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bytes_written(this: &UsbIsochronousOutTransferPacket) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferPacket" , 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/USBIsochronousOutTransferPacket/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbIsochronousOutTransferPacket) -> UsbTransferStatus; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferPacket")] #[doc = "The `new UsbIsochronousOutTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousOutTransferPacket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/USBIsochronousOutTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(status: UsbTransferStatus) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferPacket")] #[doc = "The `new UsbIsochronousOutTransferPacket(..)` constructor, creating a new instance of `UsbIsochronousOutTransferPacket`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferPacket/USBIsochronousOutTransferPacket)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferPacket`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_bytes_written( status: UsbTransferStatus, bytes_written: u32, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbIsochronousOutTransferResult.rs000064400000000000000000000051761046102023000235040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBIsochronousOutTransferResult , typescript_type = "USBIsochronousOutTransferResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbIsochronousOutTransferResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbIsochronousOutTransferResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBIsochronousOutTransferResult" , js_name = packets)] #[doc = "Getter for the `packets` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult/packets)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn packets(this: &UsbIsochronousOutTransferResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "USBIsochronousOutTransferResult")] #[doc = "The `new UsbIsochronousOutTransferResult(..)` constructor, creating a new instance of `UsbIsochronousOutTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBIsochronousOutTransferResult/USBIsochronousOutTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbIsochronousOutTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( packets: &::wasm_bindgen::JsValue, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbOutTransferResult.rs000064400000000000000000000103321046102023000212360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBOutTransferResult , typescript_type = "USBOutTransferResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbOutTransferResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbOutTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbOutTransferResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBOutTransferResult" , js_name = bytesWritten)] #[doc = "Getter for the `bytesWritten` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult/bytesWritten)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbOutTransferResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bytes_written(this: &UsbOutTransferResult) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] # [wasm_bindgen (structural , method , getter , js_class = "USBOutTransferResult" , 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/USBOutTransferResult/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbOutTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn status(this: &UsbOutTransferResult) -> UsbTransferStatus; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBOutTransferResult")] #[doc = "The `new UsbOutTransferResult(..)` constructor, creating a new instance of `UsbOutTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult/USBOutTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbOutTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(status: UsbTransferStatus) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbTransferStatus")] #[wasm_bindgen(catch, constructor, js_class = "USBOutTransferResult")] #[doc = "The `new UsbOutTransferResult(..)` constructor, creating a new instance of `UsbOutTransferResult`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBOutTransferResult/USBOutTransferResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbOutTransferResult`, `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_bytes_written( status: UsbTransferStatus, bytes_written: u32, ) -> Result; } web-sys-0.3.81/src/features/gen_UsbPermissionDescriptor.rs000064400000000000000000000104451046102023000217570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &UsbPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &UsbPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "filters")] pub fn get_filters(this: &UsbPermissionDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `filters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "filters")] pub fn set_filters(this: &UsbPermissionDescriptor, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl UsbPermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `UsbPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `UsbPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_filters()` instead."] pub fn filters(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_filters(val); self } } web-sys-0.3.81/src/features/gen_UsbPermissionResult.rs000064400000000000000000000046651046102023000211260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = USBPermissionResult , typescript_type = "USBPermissionResult")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionResult` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBPermissionResult)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionResult; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBPermissionResult" , js_name = devices)] #[doc = "Getter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBPermissionResult/devices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn devices(this: &UsbPermissionResult) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "USBPermissionResult" , js_name = devices)] #[doc = "Setter for the `devices` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/USBPermissionResult/devices)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionResult`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_devices(this: &UsbPermissionResult, value: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_UsbPermissionStorage.rs000064400000000000000000000056131046102023000212460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = USBPermissionStorage)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UsbPermissionStorage` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type UsbPermissionStorage; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowedDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowedDevices")] pub fn get_allowed_devices(this: &UsbPermissionStorage) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowedDevices` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowedDevices")] pub fn set_allowed_devices(this: &UsbPermissionStorage, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl UsbPermissionStorage { #[doc = "Construct a new `UsbPermissionStorage`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbPermissionStorage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_allowed_devices()` instead."] pub fn allowed_devices(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_allowed_devices(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for UsbPermissionStorage { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UsbRecipient.rs000064400000000000000000000012341046102023000175060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `UsbRecipient` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbRecipient`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbRecipient { Device = "device", Interface = "interface", Endpoint = "endpoint", Other = "other", } web-sys-0.3.81/src/features/gen_UsbRequestType.rs000064400000000000000000000012051046102023000200540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `UsbRequestType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbRequestType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbRequestType { Standard = "standard", Class = "class", Vendor = "vendor", } web-sys-0.3.81/src/features/gen_UsbTransferStatus.rs000064400000000000000000000012021046102023000205470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `UsbTransferStatus` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UsbTransferStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum UsbTransferStatus { Ok = "ok", Stall = "stall", Babble = "babble", } web-sys-0.3.81/src/features/gen_UserActivation.rs000064400000000000000000000027631046102023000200620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = UserActivation , typescript_type = "UserActivation")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `UserActivation` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] pub type UserActivation; # [wasm_bindgen (structural , method , getter , js_class = "UserActivation" , js_name = hasBeenActive)] #[doc = "Getter for the `hasBeenActive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/hasBeenActive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] pub fn has_been_active(this: &UserActivation) -> bool; # [wasm_bindgen (structural , method , getter , js_class = "UserActivation" , js_name = isActive)] #[doc = "Getter for the `isActive` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/isActive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserActivation`*"] pub fn is_active(this: &UserActivation) -> bool; } web-sys-0.3.81/src/features/gen_UserProximityEvent.rs000064400000000000000000000043241046102023000207620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_UserProximityEventInit.rs000064400000000000000000000075461046102023000216170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &UserProximityEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &UserProximityEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &UserProximityEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &UserProximityEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &UserProximityEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &UserProximityEventInit, val: bool); #[doc = "Get the `near` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, getter = "near")] pub fn get_near(this: &UserProximityEventInit) -> Option; #[doc = "Change the `near` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] #[wasm_bindgen(method, setter = "near")] pub fn set_near(this: &UserProximityEventInit, val: bool); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_near()` instead."] pub fn near(&mut self, val: bool) -> &mut Self { self.set_near(val); self } } impl Default for UserProximityEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_UserVerificationRequirement.rs000064400000000000000000000006701046102023000226170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_ValidityState.rs000064400000000000000000000130711046102023000177020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_ValueEvent.rs000064400000000000000000000061331046102023000171730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = ValueEvent , typescript_type = "ValueEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValueEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValueEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ValueEvent; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ValueEvent" , 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/ValueEvent/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn value(this: &ValueEvent) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "ValueEvent")] #[doc = "The `new ValueEvent(..)` constructor, creating a new instance of `ValueEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValueEvent/ValueEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(type_: &str) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ValueEventInit")] #[wasm_bindgen(catch, constructor, js_class = "ValueEvent")] #[doc = "The `new ValueEvent(..)` constructor, creating a new instance of `ValueEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValueEvent/ValueEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEvent`, `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_init_dict( type_: &str, init_dict: &ValueEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_ValueEventInit.rs000064400000000000000000000151341046102023000200200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ValueEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ValueEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ValueEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &ValueEventInit) -> Option; #[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: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &ValueEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &ValueEventInit) -> Option; #[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: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &ValueEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &ValueEventInit) -> Option; #[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: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &ValueEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &ValueEventInit) -> ::wasm_bindgen::JsValue; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &ValueEventInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl ValueEventInit { #[doc = "Construct a new `ValueEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ValueEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_value(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for ValueEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoColorPrimaries.rs000064400000000000000000000012301046102023000210270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `VideoColorPrimaries` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorPrimaries`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VideoColorPrimaries { Bt709 = "bt709", Bt470bg = "bt470bg", Smpte170m = "smpte170m", } web-sys-0.3.81/src/features/gen_VideoColorSpace.rs000064400000000000000000000146051046102023000201410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoColorSpace , typescript_type = "VideoColorSpace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoColorSpace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoColorSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorPrimaries")] # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = primaries)] #[doc = "Getter for the `primaries` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/primaries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorPrimaries`, `VideoColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn primaries(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoTransferCharacteristics")] # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = transfer)] #[doc = "Getter for the `transfer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/transfer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoTransferCharacteristics`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transfer(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoMatrixCoefficients")] # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , 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/VideoColorSpace/matrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoMatrixCoefficients`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn matrix(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoColorSpace" , js_name = fullRange)] #[doc = "Getter for the `fullRange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/fullRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn full_range(this: &VideoColorSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "VideoColorSpace")] #[doc = "The `new VideoColorSpace(..)` constructor, creating a new instance of `VideoColorSpace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/VideoColorSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoColorSpace")] #[doc = "The `new VideoColorSpace(..)` constructor, creating a new instance of `VideoColorSpace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/VideoColorSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_init(init: &VideoColorSpaceInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] # [wasm_bindgen (method , structural , js_class = "VideoColorSpace" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoColorSpace/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn to_json(this: &VideoColorSpace) -> VideoColorSpaceInit; } web-sys-0.3.81/src/features/gen_VideoColorSpaceInit.rs000064400000000000000000000166751046102023000207760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoColorSpaceInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoColorSpaceInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoColorSpaceInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `fullRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "fullRange")] pub fn get_full_range(this: &VideoColorSpaceInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `fullRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "fullRange")] pub fn set_full_range(this: &VideoColorSpaceInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoMatrixCoefficients")] #[doc = "Get the `matrix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoMatrixCoefficients`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "matrix")] pub fn get_matrix(this: &VideoColorSpaceInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoMatrixCoefficients")] #[doc = "Change the `matrix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoMatrixCoefficients`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "matrix")] pub fn set_matrix(this: &VideoColorSpaceInit, val: VideoMatrixCoefficients); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorPrimaries")] #[doc = "Get the `primaries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorPrimaries`, `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "primaries")] pub fn get_primaries(this: &VideoColorSpaceInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorPrimaries")] #[doc = "Change the `primaries` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorPrimaries`, `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "primaries")] pub fn set_primaries(this: &VideoColorSpaceInit, val: VideoColorPrimaries); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoTransferCharacteristics")] #[doc = "Get the `transfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoTransferCharacteristics`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "transfer")] pub fn get_transfer(this: &VideoColorSpaceInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoTransferCharacteristics")] #[doc = "Change the `transfer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoTransferCharacteristics`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "transfer")] pub fn set_transfer(this: &VideoColorSpaceInit, val: VideoTransferCharacteristics); } #[cfg(web_sys_unstable_apis)] impl VideoColorSpaceInit { #[doc = "Construct a new `VideoColorSpaceInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_full_range()` instead."] pub fn full_range(&mut self, val: bool) -> &mut Self { self.set_full_range(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoMatrixCoefficients")] #[deprecated = "Use `set_matrix()` instead."] pub fn matrix(&mut self, val: VideoMatrixCoefficients) -> &mut Self { self.set_matrix(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorPrimaries")] #[deprecated = "Use `set_primaries()` instead."] pub fn primaries(&mut self, val: VideoColorPrimaries) -> &mut Self { self.set_primaries(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoTransferCharacteristics")] #[deprecated = "Use `set_transfer()` instead."] pub fn transfer(&mut self, val: VideoTransferCharacteristics) -> &mut Self { self.set_transfer(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoColorSpaceInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoConfiguration.rs000064400000000000000000000110251046102023000207070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "bitrate")] pub fn get_bitrate(this: &VideoConfiguration) -> Option; #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, setter = "bitrate")] pub fn set_bitrate(this: &VideoConfiguration, val: f64); #[doc = "Get the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "contentType")] pub fn get_content_type(this: &VideoConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, setter = "contentType")] pub fn set_content_type(this: &VideoConfiguration, val: &str); #[doc = "Get the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "framerate")] pub fn get_framerate(this: &VideoConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, setter = "framerate")] pub fn set_framerate(this: &VideoConfiguration, val: &str); #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &VideoConfiguration) -> Option; #[doc = "Change the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &VideoConfiguration, val: u32); #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &VideoConfiguration) -> Option; #[doc = "Change the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &VideoConfiguration, val: u32); } 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 } #[deprecated = "Use `set_bitrate()` instead."] pub fn bitrate(&mut self, val: f64) -> &mut Self { self.set_bitrate(val); self } #[deprecated = "Use `set_content_type()` instead."] pub fn content_type(&mut self, val: &str) -> &mut Self { self.set_content_type(val); self } #[deprecated = "Use `set_framerate()` instead."] pub fn framerate(&mut self, val: &str) -> &mut Self { self.set_framerate(val); self } #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: u32) -> &mut Self { self.set_height(val); self } #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: u32) -> &mut Self { self.set_width(val); self } } impl Default for VideoConfiguration { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoDecoder.rs000064400000000000000000000171111046102023000174470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoder , typescript_type = "VideoDecoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoDecoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] # [wasm_bindgen (structural , method , getter , js_class = "VideoDecoder" , 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/VideoDecoder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CodecState`, `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &VideoDecoder) -> CodecState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoDecoder" , js_name = decodeQueueSize)] #[doc = "Getter for the `decodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/decodeQueueSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode_queue_size(this: &VideoDecoder) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoDecoder")] #[doc = "The `new VideoDecoder(..)` constructor, creating a new instance of `VideoDecoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/VideoDecoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`, `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &VideoDecoderInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoDecoder" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &VideoDecoder) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] # [wasm_bindgen (catch , method , structural , js_class = "VideoDecoder" , js_name = configure)] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/configure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure(this: &VideoDecoder, config: &VideoDecoderConfig) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "EncodedVideoChunk")] # [wasm_bindgen (catch , method , structural , js_class = "VideoDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunk`, `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn decode(this: &VideoDecoder, chunk: &EncodedVideoChunk) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoDecoder" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn flush(this: &VideoDecoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] # [wasm_bindgen (static_method_of = VideoDecoder , js_class = "VideoDecoder" , js_name = isConfigSupported)] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/isConfigSupported_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &VideoDecoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoDecoder" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &VideoDecoder) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_VideoDecoderConfig.rs000064400000000000000000000340441046102023000206010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderConfig)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderConfig` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoDecoderConfig; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] pub fn get_codec(this: &VideoDecoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codec")] pub fn set_codec(this: &VideoDecoderConfig, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codedHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codedHeight")] pub fn get_coded_height(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codedHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codedHeight")] pub fn set_coded_height(this: &VideoDecoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codedWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codedWidth")] pub fn get_coded_width(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codedWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codedWidth")] pub fn set_coded_width(this: &VideoDecoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[doc = "Get the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorSpace")] pub fn get_color_space(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorSpace")] pub fn set_color_space(this: &VideoDecoderConfig, val: &VideoColorSpaceInit); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &VideoDecoderConfig) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &VideoDecoderConfig, val: &::js_sys::Object); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayAspectHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayAspectHeight")] pub fn get_display_aspect_height(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayAspectHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayAspectHeight")] pub fn set_display_aspect_height(this: &VideoDecoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayAspectWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayAspectWidth")] pub fn get_display_aspect_width(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayAspectWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayAspectWidth")] pub fn set_display_aspect_width(this: &VideoDecoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[doc = "Get the `hardwareAcceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HardwareAcceleration`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hardwareAcceleration")] pub fn get_hardware_acceleration(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[doc = "Change the `hardwareAcceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HardwareAcceleration`, `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hardwareAcceleration")] pub fn set_hardware_acceleration(this: &VideoDecoderConfig, val: HardwareAcceleration); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `optimizeForLatency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "optimizeForLatency")] pub fn get_optimize_for_latency(this: &VideoDecoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `optimizeForLatency` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "optimizeForLatency")] pub fn set_optimize_for_latency(this: &VideoDecoderConfig, val: bool); } #[cfg(web_sys_unstable_apis)] impl VideoDecoderConfig { #[doc = "Construct a new `VideoDecoderConfig`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(codec: &str) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_codec(codec); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_codec()` instead."] pub fn codec(&mut self, val: &str) -> &mut Self { self.set_codec(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_coded_height()` instead."] pub fn coded_height(&mut self, val: u32) -> &mut Self { self.set_coded_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_coded_width()` instead."] pub fn coded_width(&mut self, val: u32) -> &mut Self { self.set_coded_width(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[deprecated = "Use `set_color_space()` instead."] pub fn color_space(&mut self, val: &VideoColorSpaceInit) -> &mut Self { self.set_color_space(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_description(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_aspect_height()` instead."] pub fn display_aspect_height(&mut self, val: u32) -> &mut Self { self.set_display_aspect_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_aspect_width()` instead."] pub fn display_aspect_width(&mut self, val: u32) -> &mut Self { self.set_display_aspect_width(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[deprecated = "Use `set_hardware_acceleration()` instead."] pub fn hardware_acceleration(&mut self, val: HardwareAcceleration) -> &mut Self { self.set_hardware_acceleration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_optimize_for_latency()` instead."] pub fn optimize_for_latency(&mut self, val: bool) -> &mut Self { self.set_optimize_for_latency(val); self } } web-sys-0.3.81/src/features/gen_VideoDecoderInit.rs000064400000000000000000000100561046102023000202740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoDecoderInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &VideoDecoderInit) -> ::js_sys::Function; #[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: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &VideoDecoderInit, val: &::js_sys::Function); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "output")] pub fn get_output(this: &VideoDecoderInit) -> ::js_sys::Function; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "output")] pub fn set_output(this: &VideoDecoderInit, val: &::js_sys::Function); } #[cfg(web_sys_unstable_apis)] impl VideoDecoderInit { #[doc = "Construct a new `VideoDecoderInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error(error); ret.set_output(output); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_error(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_output()` instead."] pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_output(val); self } } web-sys-0.3.81/src/features/gen_VideoDecoderSupport.rs000064400000000000000000000104271046102023000210470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoDecoderSupport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoDecoderSupport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoDecoderSupport; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] #[doc = "Get the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`, `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "config")] pub fn get_config(this: &VideoDecoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoDecoderConfig")] #[doc = "Change the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderConfig`, `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "config")] pub fn set_config(this: &VideoDecoderSupport, val: &VideoDecoderConfig); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "supported")] pub fn get_supported(this: &VideoDecoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "supported")] pub fn set_supported(this: &VideoDecoderSupport, val: bool); } #[cfg(web_sys_unstable_apis)] impl VideoDecoderSupport { #[doc = "Construct a new `VideoDecoderSupport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoDecoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "VideoDecoderConfig")] #[deprecated = "Use `set_config()` instead."] pub fn config(&mut self, val: &VideoDecoderConfig) -> &mut Self { self.set_config(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_supported()` instead."] pub fn supported(&mut self, val: bool) -> &mut Self { self.set_supported(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoDecoderSupport { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoEncoder.rs000064400000000000000000000207321046102023000174640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoder , typescript_type = "VideoEncoder")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoder` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoEncoder; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "CodecState")] # [wasm_bindgen (structural , method , getter , js_class = "VideoEncoder" , 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/VideoEncoder/state)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CodecState`, `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn state(this: &VideoEncoder) -> CodecState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoEncoder" , js_name = encodeQueueSize)] #[doc = "Getter for the `encodeQueueSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encodeQueueSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode_queue_size(this: &VideoEncoder) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoEncoder")] #[doc = "The `new VideoEncoder(..)` constructor, creating a new instance of `VideoEncoder`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/VideoEncoder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`, `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(init: &VideoEncoderInit) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoEncoder" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &VideoEncoder) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] # [wasm_bindgen (catch , method , structural , js_class = "VideoEncoder" , js_name = configure)] #[doc = "The `configure()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/configure)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn configure(this: &VideoEncoder, config: &VideoEncoderConfig) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [wasm_bindgen (catch , method , structural , js_class = "VideoEncoder" , js_name = encode)] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode(this: &VideoEncoder, frame: &VideoFrame) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "VideoEncoderEncodeOptions", feature = "VideoFrame",))] # [wasm_bindgen (catch , method , structural , js_class = "VideoEncoder" , js_name = encode)] #[doc = "The `encode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/encode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`, `VideoEncoderEncodeOptions`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn encode_with_options( this: &VideoEncoder, frame: &VideoFrame, options: &VideoEncoderEncodeOptions, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoEncoder" , js_name = flush)] #[doc = "The `flush()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/flush)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn flush(this: &VideoEncoder) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] # [wasm_bindgen (static_method_of = VideoEncoder , js_class = "VideoEncoder" , js_name = isConfigSupported)] #[doc = "The `isConfigSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/isConfigSupported_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_config_supported(config: &VideoEncoderConfig) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoEncoder" , js_name = reset)] #[doc = "The `reset()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder/reset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoder`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reset(this: &VideoEncoder) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_VideoEncoderConfig.rs000064400000000000000000000407541046102023000206200ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderConfig)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderConfig` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoEncoderConfig; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AlphaOption")] #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlphaOption`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AlphaOption")] #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlphaOption`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &VideoEncoderConfig, val: AlphaOption); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bitrate")] pub fn get_bitrate(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bitrate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bitrate")] pub fn set_bitrate(this: &VideoEncoderConfig, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] pub fn get_codec(this: &VideoEncoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codec")] pub fn set_codec(this: &VideoEncoderConfig, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayHeight")] pub fn get_display_height(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayHeight")] pub fn set_display_height(this: &VideoEncoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayWidth")] pub fn get_display_width(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayWidth")] pub fn set_display_width(this: &VideoEncoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "framerate")] pub fn get_framerate(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "framerate")] pub fn set_framerate(this: &VideoEncoderConfig, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[doc = "Get the `hardwareAcceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HardwareAcceleration`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "hardwareAcceleration")] pub fn get_hardware_acceleration(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[doc = "Change the `hardwareAcceleration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HardwareAcceleration`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "hardwareAcceleration")] pub fn set_hardware_acceleration(this: &VideoEncoderConfig, val: HardwareAcceleration); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `height` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "height")] pub fn get_height(this: &VideoEncoderConfig) -> u32; #[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: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "height")] pub fn set_height(this: &VideoEncoderConfig, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LatencyMode")] #[doc = "Get the `latencyMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LatencyMode`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "latencyMode")] pub fn get_latency_mode(this: &VideoEncoderConfig) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LatencyMode")] #[doc = "Change the `latencyMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LatencyMode`, `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "latencyMode")] pub fn set_latency_mode(this: &VideoEncoderConfig, val: LatencyMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `scalabilityMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scalabilityMode")] pub fn get_scalability_mode(this: &VideoEncoderConfig) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scalabilityMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "scalabilityMode")] pub fn set_scalability_mode(this: &VideoEncoderConfig, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `width` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "width")] pub fn get_width(this: &VideoEncoderConfig) -> u32; #[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: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "width")] pub fn set_width(this: &VideoEncoderConfig, val: u32); } #[cfg(web_sys_unstable_apis)] impl VideoEncoderConfig { #[doc = "Construct a new `VideoEncoderConfig`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(codec: &str, height: u32, width: u32) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_codec(codec); ret.set_height(height); ret.set_width(width); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AlphaOption")] #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: AlphaOption) -> &mut Self { self.set_alpha(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bitrate()` instead."] pub fn bitrate(&mut self, val: f64) -> &mut Self { self.set_bitrate(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_codec()` instead."] pub fn codec(&mut self, val: &str) -> &mut Self { self.set_codec(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_height()` instead."] pub fn display_height(&mut self, val: u32) -> &mut Self { self.set_display_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_width()` instead."] pub fn display_width(&mut self, val: u32) -> &mut Self { self.set_display_width(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_framerate()` instead."] pub fn framerate(&mut self, val: f64) -> &mut Self { self.set_framerate(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HardwareAcceleration")] #[deprecated = "Use `set_hardware_acceleration()` instead."] pub fn hardware_acceleration(&mut self, val: HardwareAcceleration) -> &mut Self { self.set_hardware_acceleration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_height()` instead."] pub fn height(&mut self, val: u32) -> &mut Self { self.set_height(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LatencyMode")] #[deprecated = "Use `set_latency_mode()` instead."] pub fn latency_mode(&mut self, val: LatencyMode) -> &mut Self { self.set_latency_mode(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_scalability_mode()` instead."] pub fn scalability_mode(&mut self, val: &str) -> &mut Self { self.set_scalability_mode(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_width()` instead."] pub fn width(&mut self, val: u32) -> &mut Self { self.set_width(val); self } } web-sys-0.3.81/src/features/gen_VideoEncoderEncodeOptions.rs000064400000000000000000000055361046102023000221630ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderEncodeOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderEncodeOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderEncodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoEncoderEncodeOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `keyFrame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderEncodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "keyFrame")] pub fn get_key_frame(this: &VideoEncoderEncodeOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `keyFrame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderEncodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "keyFrame")] pub fn set_key_frame(this: &VideoEncoderEncodeOptions, val: bool); } #[cfg(web_sys_unstable_apis)] impl VideoEncoderEncodeOptions { #[doc = "Construct a new `VideoEncoderEncodeOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderEncodeOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_key_frame()` instead."] pub fn key_frame(&mut self, val: bool) -> &mut Self { self.set_key_frame(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoEncoderEncodeOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoEncoderInit.rs000064400000000000000000000100561046102023000203060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoEncoderInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "error")] pub fn get_error(this: &VideoEncoderInit) -> ::js_sys::Function; #[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: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "error")] pub fn set_error(this: &VideoEncoderInit, val: &::js_sys::Function); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "output")] pub fn get_output(this: &VideoEncoderInit) -> ::js_sys::Function; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `output` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "output")] pub fn set_output(this: &VideoEncoderInit, val: &::js_sys::Function); } #[cfg(web_sys_unstable_apis)] impl VideoEncoderInit { #[doc = "Construct a new `VideoEncoderInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(error: &::js_sys::Function, output: &::js_sys::Function) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_error(error); ret.set_output(output); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_error()` instead."] pub fn error(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_error(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_output()` instead."] pub fn output(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_output(val); self } } web-sys-0.3.81/src/features/gen_VideoEncoderSupport.rs000064400000000000000000000104271046102023000210610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoEncoderSupport)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoEncoderSupport` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoEncoderSupport; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] #[doc = "Get the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`, `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "config")] pub fn get_config(this: &VideoEncoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoEncoderConfig")] #[doc = "Change the `config` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderConfig`, `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "config")] pub fn set_config(this: &VideoEncoderSupport, val: &VideoEncoderConfig); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "supported")] pub fn get_supported(this: &VideoEncoderSupport) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `supported` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "supported")] pub fn set_supported(this: &VideoEncoderSupport, val: bool); } #[cfg(web_sys_unstable_apis)] impl VideoEncoderSupport { #[doc = "Construct a new `VideoEncoderSupport`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoEncoderSupport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "VideoEncoderConfig")] #[deprecated = "Use `set_config()` instead."] pub fn config(&mut self, val: &VideoEncoderConfig) -> &mut Self { self.set_config(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_supported()` instead."] pub fn supported(&mut self, val: bool) -> &mut Self { self.set_supported(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoEncoderSupport { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoFacingModeEnum.rs000064400000000000000000000006431046102023000207250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_VideoFrame.rs000064400000000000000000000751101046102023000171370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrame , typescript_type = "VideoFrame")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrame` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoPixelFormat")] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = format)] #[doc = "Getter for the `format` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/format)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoPixelFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn format(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedWidth)] #[doc = "Getter for the `codedWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn coded_width(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedHeight)] #[doc = "Getter for the `codedHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn coded_height(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = codedRect)] #[doc = "Getter for the `codedRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/codedRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn coded_rect(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = visibleRect)] #[doc = "Getter for the `visibleRect` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/visibleRect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visible_rect(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayWidth)] #[doc = "Getter for the `displayWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn display_width(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = displayHeight)] #[doc = "Getter for the `displayHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/displayHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn display_height(this: &VideoFrame) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , 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/VideoFrame/duration)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn duration(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , 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/VideoFrame/timestamp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn timestamp(this: &VideoFrame) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpace")] # [wasm_bindgen (structural , method , getter , js_class = "VideoFrame" , js_name = colorSpace)] #[doc = "Getter for the `colorSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/colorSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpace`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn color_space(this: &VideoFrame) -> VideoColorSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HtmlImageElement")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_image_element(image: &HtmlImageElement) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SvgImageElement")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_svg_image_element(image: &SvgImageElement) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HtmlCanvasElement")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_canvas_element(image: &HtmlCanvasElement) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "HtmlVideoElement")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_video_element(image: &HtmlVideoElement) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ImageBitmap")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_image_bitmap(image: &ImageBitmap) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "OffscreenCanvas")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_offscreen_canvas(image: &OffscreenCanvas) -> Result; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_video_frame(image: &VideoFrame) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "HtmlImageElement", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_image_element_and_video_frame_init( image: &HtmlImageElement, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "SvgImageElement", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_svg_image_element_and_video_frame_init( image: &SvgImageElement, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "HtmlCanvasElement", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_canvas_element_and_video_frame_init( image: &HtmlCanvasElement, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "HtmlVideoElement", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_html_video_element_and_video_frame_init( image: &HtmlVideoElement, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "ImageBitmap", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_image_bitmap_and_video_frame_init( image: &ImageBitmap, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "OffscreenCanvas", feature = "VideoFrameInit",))] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`, `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_offscreen_canvas_and_video_frame_init( image: &OffscreenCanvas, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_video_frame_and_video_frame_init( image: &VideoFrame, init: &VideoFrameInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameBufferInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_buffer_source_and_video_frame_buffer_init( data: &::js_sys::Object, init: &VideoFrameBufferInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameBufferInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_u8_slice_and_video_frame_buffer_init( data: &mut [u8], init: &VideoFrameBufferInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameBufferInit")] #[wasm_bindgen(catch, constructor, js_class = "VideoFrame")] #[doc = "The `new VideoFrame(..)` constructor, creating a new instance of `VideoFrame`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/VideoFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_u8_array_and_video_frame_buffer_init( data: &::js_sys::Uint8Array, init: &VideoFrameBufferInit, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoFrame" , js_name = allocationSize)] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allocation_size(this: &VideoFrame) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] # [wasm_bindgen (catch , method , structural , js_class = "VideoFrame" , js_name = allocationSize)] #[doc = "The `allocationSize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/allocationSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn allocation_size_with_options( this: &VideoFrame, options: &VideoFrameCopyToOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "VideoFrame" , js_name = clone)] #[doc = "The `clone()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/clone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn clone(this: &VideoFrame) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &VideoFrame); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source( this: &VideoFrame, destination: &::js_sys::Object, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_slice(this: &VideoFrame, destination: &mut [u8]) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_array( this: &VideoFrame, destination: &::js_sys::Uint8Array, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_buffer_source_and_options( this: &VideoFrame, destination: &::js_sys::Object, options: &VideoFrameCopyToOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_slice_and_options( this: &VideoFrame, destination: &mut [u8], options: &VideoFrameCopyToOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrameCopyToOptions")] # [wasm_bindgen (method , structural , js_class = "VideoFrame" , js_name = copyTo)] #[doc = "The `copyTo()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoFrame/copyTo)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn copy_to_with_u8_array_and_options( this: &VideoFrame, destination: &::js_sys::Uint8Array, options: &VideoFrameCopyToOptions, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_VideoFrameBufferInit.rs000064400000000000000000000367571046102023000211330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameBufferInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameBufferInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoFrameBufferInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codedHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codedHeight")] pub fn get_coded_height(this: &VideoFrameBufferInit) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codedHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codedHeight")] pub fn set_coded_height(this: &VideoFrameBufferInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `codedWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codedWidth")] pub fn get_coded_width(this: &VideoFrameBufferInit) -> u32; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codedWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "codedWidth")] pub fn set_coded_width(this: &VideoFrameBufferInit, val: u32); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[doc = "Get the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorSpace")] pub fn get_color_space(this: &VideoFrameBufferInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoColorSpaceInit`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorSpace")] pub fn set_color_space(this: &VideoFrameBufferInit, val: &VideoColorSpaceInit); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayHeight")] pub fn get_display_height(this: &VideoFrameBufferInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayHeight")] pub fn set_display_height(this: &VideoFrameBufferInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayWidth")] pub fn get_display_width(this: &VideoFrameBufferInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayWidth")] pub fn set_display_width(this: &VideoFrameBufferInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &VideoFrameBufferInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &VideoFrameBufferInit, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoPixelFormat")] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &VideoFrameBufferInit) -> VideoPixelFormat; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoPixelFormat")] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &VideoFrameBufferInit, val: VideoPixelFormat); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &VideoFrameBufferInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &VideoFrameBufferInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &VideoFrameBufferInit) -> f64; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &VideoFrameBufferInit, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Get the `visibleRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "visibleRect")] pub fn get_visible_rect(this: &VideoFrameBufferInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Change the `visibleRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameBufferInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "visibleRect")] pub fn set_visible_rect(this: &VideoFrameBufferInit, val: &DomRectInit); } #[cfg(web_sys_unstable_apis)] impl VideoFrameBufferInit { #[cfg(feature = "VideoPixelFormat")] #[doc = "Construct a new `VideoFrameBufferInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameBufferInit`, `VideoPixelFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( coded_height: u32, coded_width: u32, format: VideoPixelFormat, timestamp: f64, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_coded_height(coded_height); ret.set_coded_width(coded_width); ret.set_format(format); ret.set_timestamp(timestamp); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_coded_height()` instead."] pub fn coded_height(&mut self, val: u32) -> &mut Self { self.set_coded_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_coded_width()` instead."] pub fn coded_width(&mut self, val: u32) -> &mut Self { self.set_coded_width(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoColorSpaceInit")] #[deprecated = "Use `set_color_space()` instead."] pub fn color_space(&mut self, val: &VideoColorSpaceInit) -> &mut Self { self.set_color_space(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_height()` instead."] pub fn display_height(&mut self, val: u32) -> &mut Self { self.set_display_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_width()` instead."] pub fn display_width(&mut self, val: u32) -> &mut Self { self.set_display_width(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoPixelFormat")] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: VideoPixelFormat) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_visible_rect()` instead."] pub fn visible_rect(&mut self, val: &DomRectInit) -> &mut Self { self.set_visible_rect(val); self } } web-sys-0.3.81/src/features/gen_VideoFrameCopyToOptions.rs000064400000000000000000000157341046102023000216570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameCopyToOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameCopyToOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoFrameCopyToOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "colorSpace")] pub fn get_color_space(this: &VideoFrameCopyToOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `colorSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "colorSpace")] pub fn set_color_space(this: &VideoFrameCopyToOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "format")] pub fn get_format(this: &VideoFrameCopyToOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `format` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "format")] pub fn set_format(this: &VideoFrameCopyToOptions, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layout")] pub fn get_layout(this: &VideoFrameCopyToOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layout` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layout")] pub fn set_layout(this: &VideoFrameCopyToOptions, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Get the `rect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rect")] pub fn get_rect(this: &VideoFrameCopyToOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Change the `rect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rect")] pub fn set_rect(this: &VideoFrameCopyToOptions, val: &DomRectInit); } #[cfg(web_sys_unstable_apis)] impl VideoFrameCopyToOptions { #[doc = "Construct a new `VideoFrameCopyToOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameCopyToOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_color_space()` instead."] pub fn color_space(&mut self, val: &str) -> &mut Self { self.set_color_space(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_format()` instead."] pub fn format(&mut self, val: &str) -> &mut Self { self.set_format(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layout()` instead."] pub fn layout(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_layout(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_rect()` instead."] pub fn rect(&mut self, val: &DomRectInit) -> &mut Self { self.set_rect(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoFrameCopyToOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoFrameInit.rs000064400000000000000000000230341046102023000177610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VideoFrameInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VideoFrameInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type VideoFrameInit; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AlphaOption")] #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlphaOption`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AlphaOption")] #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AlphaOption`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &VideoFrameInit, val: AlphaOption); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayHeight")] pub fn get_display_height(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayHeight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayHeight")] pub fn set_display_height(this: &VideoFrameInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayWidth")] pub fn get_display_width(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayWidth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "displayWidth")] pub fn set_display_width(this: &VideoFrameInit, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "duration")] pub fn get_duration(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `duration` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "duration")] pub fn set_duration(this: &VideoFrameInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &VideoFrameInit, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Get the `visibleRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "visibleRect")] pub fn get_visible_rect(this: &VideoFrameInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[doc = "Change the `visibleRect` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "visibleRect")] pub fn set_visible_rect(this: &VideoFrameInit, val: &DomRectInit); } #[cfg(web_sys_unstable_apis)] impl VideoFrameInit { #[doc = "Construct a new `VideoFrameInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoFrameInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AlphaOption")] #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: AlphaOption) -> &mut Self { self.set_alpha(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_height()` instead."] pub fn display_height(&mut self, val: u32) -> &mut Self { self.set_display_height(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_display_width()` instead."] pub fn display_width(&mut self, val: u32) -> &mut Self { self.set_display_width(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_duration()` instead."] pub fn duration(&mut self, val: f64) -> &mut Self { self.set_duration(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomRectInit")] #[deprecated = "Use `set_visible_rect()` instead."] pub fn visible_rect(&mut self, val: &DomRectInit) -> &mut Self { self.set_visible_rect(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for VideoFrameInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VideoMatrixCoefficients.rs000064400000000000000000000012651046102023000216730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `VideoMatrixCoefficients` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoMatrixCoefficients`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VideoMatrixCoefficients { Rgb = "rgb", Bt709 = "bt709", Bt470bg = "bt470bg", Smpte170m = "smpte170m", } web-sys-0.3.81/src/features/gen_VideoPixelFormat.rs000064400000000000000000000013611046102023000203340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `VideoPixelFormat` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoPixelFormat`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VideoPixelFormat { I420 = "I420", I420a = "I420A", I422 = "I422", I444 = "I444", Nv12 = "NV12", Rgba = "RGBA", Rgbx = "RGBX", Bgra = "BGRA", Bgrx = "BGRX", } web-sys-0.3.81/src/features/gen_VideoPlaybackQuality.rs000064400000000000000000000051751046102023000212100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_VideoStreamTrack.rs000064400000000000000000000012131046102023000203160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_VideoTrack.rs000064400000000000000000000072701046102023000171530ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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); #[cfg(feature = "SourceBuffer")] # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = sourceBuffer)] #[doc = "Getter for the `sourceBuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/sourceBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `VideoTrack`*"] pub fn source_buffer(this: &VideoTrack) -> Option; } web-sys-0.3.81/src/features/gen_VideoTrackList.rs000064400000000000000000000125001046102023000177770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"] pub fn get(this: &VideoTrackList, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_VideoTransferCharacteristics.rs000064400000000000000000000012731046102023000227240ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `VideoTransferCharacteristics` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTransferCharacteristics`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum VideoTransferCharacteristics { Bt709 = "bt709", Smpte170m = "smpte170m", Iec6196621 = "iec61966-2-1", } web-sys-0.3.81/src/features/gen_ViewTransition.rs000064400000000000000000000074551046102023000201120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ViewTransition , typescript_type = "ViewTransition")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `ViewTransition` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type ViewTransition; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , js_name = updateCallbackDone)] #[doc = "Getter for the `updateCallbackDone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/updateCallbackDone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_callback_done(this: &ViewTransition) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , 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/ViewTransition/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ready(this: &ViewTransition) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , 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/ViewTransition/finished)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn finished(this: &ViewTransition) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "ViewTransition" , js_name = skipTransition)] #[doc = "The `skipTransition()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn skip_transition(this: &ViewTransition) -> Result<(), JsValue>; } web-sys-0.3.81/src/features/gen_VisibilityState.rs000064400000000000000000000005531046102023000202450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_VisualViewport.rs000064400000000000000000000150661046102023000201250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VisualViewport , typescript_type = "VisualViewport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `VisualViewport` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub type VisualViewport; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/offsetLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn offset_left(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/offsetTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn offset_top(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = pageLeft)] #[doc = "Getter for the `pageLeft` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageLeft)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn page_left(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = pageTop)] #[doc = "Getter for the `pageTop` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/pageTop)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn page_top(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn width(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn height(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/scale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn scale(this: &VisualViewport) -> f64; # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn onresize(this: &VisualViewport) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , 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/VisualViewport/onresize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn set_onresize(this: &VisualViewport, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , 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/VisualViewport/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn onscroll(this: &VisualViewport) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , 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/VisualViewport/onscroll)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn set_onscroll(this: &VisualViewport, value: Option<&::js_sys::Function>); # [wasm_bindgen (structural , method , getter , js_class = "VisualViewport" , js_name = onscrollend)] #[doc = "Getter for the `onscrollend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscrollend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn onscrollend(this: &VisualViewport) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "VisualViewport" , js_name = onscrollend)] #[doc = "Setter for the `onscrollend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport/onscrollend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`*"] pub fn set_onscrollend(this: &VisualViewport, value: Option<&::js_sys::Function>); } web-sys-0.3.81/src/features/gen_VoidCallback.rs000064400000000000000000000031711046102023000174320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] #[wasm_bindgen(method, getter = "handleEvent")] pub fn get_handle_event(this: &VoidCallback) -> Option<::js_sys::Function>; #[doc = "Change the `handleEvent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] #[wasm_bindgen(method, setter = "handleEvent")] pub fn set_handle_event(this: &VoidCallback, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_handle_event()` instead."] pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_handle_event(val); self } } impl Default for VoidCallback { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VrDisplay.rs000064400000000000000000000245001046102023000170300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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); } web-sys-0.3.81/src/features/gen_VrDisplayCapabilities.rs000064400000000000000000000061121046102023000213410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_VrEye.rs000064400000000000000000000005051046102023000161440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_VrEyeParameters.rs000064400000000000000000000050211046102023000201660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec, 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; } web-sys-0.3.81/src/features/gen_VrFieldOfView.rs000064400000000000000000000046041046102023000175710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_VrFrameData.rs000064400000000000000000000077201046102023000172540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec, 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<::alloc::vec::Vec, 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<::alloc::vec::Vec, 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<::alloc::vec::Vec, 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; } web-sys-0.3.81/src/features/gen_VrLayer.rs000064400000000000000000000063151046102023000165030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `leftBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] #[wasm_bindgen(method, getter = "leftBounds")] pub fn get_left_bounds(this: &VrLayer) -> Option<::js_sys::Array>; #[doc = "Change the `leftBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] #[wasm_bindgen(method, setter = "leftBounds")] pub fn set_left_bounds(this: &VrLayer, val: &::wasm_bindgen::JsValue); #[doc = "Get the `rightBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] #[wasm_bindgen(method, getter = "rightBounds")] pub fn get_right_bounds(this: &VrLayer) -> Option<::js_sys::Array>; #[doc = "Change the `rightBounds` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] #[wasm_bindgen(method, setter = "rightBounds")] pub fn set_right_bounds(this: &VrLayer, val: &::wasm_bindgen::JsValue); #[cfg(feature = "HtmlCanvasElement")] #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VrLayer`*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &VrLayer) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &VrLayer, val: Option<&HtmlCanvasElement>); } 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 } #[deprecated = "Use `set_left_bounds()` instead."] pub fn left_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_left_bounds(val); self } #[deprecated = "Use `set_right_bounds()` instead."] pub fn right_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_right_bounds(val); self } #[cfg(feature = "HtmlCanvasElement")] #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: Option<&HtmlCanvasElement>) -> &mut Self { self.set_source(val); self } } impl Default for VrLayer { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_VrMockController.rs000064400000000000000000001575531046102023000203770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, 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 = "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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, 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 = "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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, 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 = "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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( 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<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockController, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); } web-sys-0.3.81/src/features/gen_VrMockDisplay.rs000064400000000000000000001561141046102023000176510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = 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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, 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 = 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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, 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 = 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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, 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 = 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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&mut [f32]>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( 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<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&mut [f32]>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_slice_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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_with_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array_and_opt_f32_array( this: &VrMockDisplay, position: Option<&::js_sys::Float32Array>, linear_velocity: Option<&::js_sys::Float32Array>, linear_acceleration: Option<&::js_sys::Float32Array>, orientation: Option<&::js_sys::Float32Array>, angular_velocity: Option<&::js_sys::Float32Array>, angular_acceleration: Option<&::js_sys::Float32Array>, ); # [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); } web-sys-0.3.81/src/features/gen_VrPose.rs000064400000000000000000000067321046102023000163400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_VrServiceTest.rs000064400000000000000000000031151046102023000176620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_VrStageParameters.rs000064400000000000000000000041101046102023000205050ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec, 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; } web-sys-0.3.81/src/features/gen_VrSubmitFrameResult.rs000064400000000000000000000041021046102023000210340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String>; #[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; } web-sys-0.3.81/src/features/gen_VttCue.rs000064400000000000000000000307151046102023000163320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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`*"] #[deprecated] pub fn set_line(this: &VttCue, value: &::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_f64(this: &VttCue, value: f64); #[cfg(feature = "AutoKeyword")] # [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: `AutoKeyword`, `VttCue`*"] pub fn set_line_auto_keyword(this: &VttCue, value: AutoKeyword); #[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`*"] #[deprecated] pub fn set_position(this: &VttCue, value: &::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_f64(this: &VttCue, value: f64); #[cfg(feature = "AutoKeyword")] # [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: `AutoKeyword`, `VttCue`*"] pub fn set_position_auto_keyword(this: &VttCue, value: AutoKeyword); #[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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_VttRegion.rs000064400000000000000000000201351046102023000170340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_WakeLock.rs000064400000000000000000000030621046102023000166130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WakeLock , typescript_type = "WakeLock")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WakeLock` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLock`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WakeLock; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLockType")] # [wasm_bindgen (method , structural , js_class = "WakeLock" , js_name = request)] #[doc = "The `request()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLock/request)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLock`, `WakeLockType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request(this: &WakeLock, type_: WakeLockType) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WakeLockSentinel.rs000064400000000000000000000111301046102023000203100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = WakeLockSentinel , typescript_type = "WakeLockSentinel")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WakeLockSentinel` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WakeLockSentinel; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , js_name = released)] #[doc = "Getter for the `released` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/released)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn released(this: &WakeLockSentinel) -> bool; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WakeLockType")] # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , 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/WakeLockSentinel/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`, `WakeLockType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn type_(this: &WakeLockSentinel) -> WakeLockType; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WakeLockSentinel" , js_name = onrelease)] #[doc = "Getter for the `onrelease` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/onrelease)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onrelease(this: &WakeLockSentinel) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "WakeLockSentinel" , js_name = onrelease)] #[doc = "Setter for the `onrelease` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/onrelease)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onrelease(this: &WakeLockSentinel, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WakeLockSentinel" , js_name = release)] #[doc = "The `release()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WakeLockSentinel/release)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockSentinel`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn release(this: &WakeLockSentinel) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WakeLockType.rs000064400000000000000000000011171046102023000174540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `WakeLockType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WakeLockType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WakeLockType { Screen = "screen", } web-sys-0.3.81/src/features/gen_WatchAdvertisementsOptions.rs000064400000000000000000000057641046102023000224660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WatchAdvertisementsOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WatchAdvertisementsOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WatchAdvertisementsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WatchAdvertisementsOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Get the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `WatchAdvertisementsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signal")] pub fn get_signal(this: &WatchAdvertisementsOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "AbortSignal")] #[doc = "Change the `signal` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `WatchAdvertisementsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "signal")] pub fn set_signal(this: &WatchAdvertisementsOptions, val: &AbortSignal); } #[cfg(web_sys_unstable_apis)] impl WatchAdvertisementsOptions { #[doc = "Construct a new `WatchAdvertisementsOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WatchAdvertisementsOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "AbortSignal")] #[deprecated = "Use `set_signal()` instead."] pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { self.set_signal(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WatchAdvertisementsOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WaveShaperNode.rs000064400000000000000000000114121046102023000177640ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::vec::Vec>; # [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`*"] #[deprecated] pub fn set_curve(this: &WaveShaperNode, value: Option<&mut [f32]>); # [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_opt_f32_slice(this: &WaveShaperNode, value: Option<&mut [f32]>); # [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_opt_f32_array(this: &WaveShaperNode, value: Option<&::js_sys::Float32Array>); #[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; } web-sys-0.3.81/src/features/gen_WaveShaperOptions.rs000064400000000000000000000125621046102023000205410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] #[wasm_bindgen(method, getter = "channelCount")] pub fn get_channel_count(this: &WaveShaperOptions) -> Option; #[doc = "Change the `channelCount` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] #[wasm_bindgen(method, setter = "channelCount")] pub fn set_channel_count(this: &WaveShaperOptions, val: u32); #[cfg(feature = "ChannelCountMode")] #[doc = "Get the `channelCountMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `WaveShaperOptions`*"] #[wasm_bindgen(method, getter = "channelCountMode")] pub fn get_channel_count_mode(this: &WaveShaperOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelCountMode")] pub fn set_channel_count_mode(this: &WaveShaperOptions, val: ChannelCountMode); #[cfg(feature = "ChannelInterpretation")] #[doc = "Get the `channelInterpretation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `WaveShaperOptions`*"] #[wasm_bindgen(method, getter = "channelInterpretation")] pub fn get_channel_interpretation(this: &WaveShaperOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "channelInterpretation")] pub fn set_channel_interpretation(this: &WaveShaperOptions, val: ChannelInterpretation); #[doc = "Get the `curve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] #[wasm_bindgen(method, getter = "curve")] pub fn get_curve(this: &WaveShaperOptions) -> Option<::js_sys::Array>; #[doc = "Change the `curve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] #[wasm_bindgen(method, setter = "curve")] pub fn set_curve(this: &WaveShaperOptions, val: &::wasm_bindgen::JsValue); #[cfg(feature = "OverSampleType")] #[doc = "Get the `oversample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperOptions`*"] #[wasm_bindgen(method, getter = "oversample")] pub fn get_oversample(this: &WaveShaperOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "oversample")] pub fn set_oversample(this: &WaveShaperOptions, val: OverSampleType); } 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 } #[deprecated = "Use `set_channel_count()` instead."] pub fn channel_count(&mut self, val: u32) -> &mut Self { self.set_channel_count(val); self } #[cfg(feature = "ChannelCountMode")] #[deprecated = "Use `set_channel_count_mode()` instead."] pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { self.set_channel_count_mode(val); self } #[cfg(feature = "ChannelInterpretation")] #[deprecated = "Use `set_channel_interpretation()` instead."] pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { self.set_channel_interpretation(val); self } #[deprecated = "Use `set_curve()` instead."] pub fn curve(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_curve(val); self } #[cfg(feature = "OverSampleType")] #[deprecated = "Use `set_oversample()` instead."] pub fn oversample(&mut self, val: OverSampleType) -> &mut Self { self.set_oversample(val); self } } impl Default for WaveShaperOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebGl2RenderingContext.rs000064400000000000000000020262371046102023000214130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Uint8Array, 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_js_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Uint8Array, 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 = 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_js_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_data: &::js_sys::Uint8Array, 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, offset: i32, src_data: &::js_sys::Uint8Array, ); # [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_js_u8_array( this: &WebGl2RenderingContext, target: u32, offset: f64, src_data: &::js_sys::Uint8Array, ); # [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_js_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &::js_sys::Uint8Array, 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_js_u8_array_and_src_offset( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &::js_sys::Uint8Array, 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 = 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_js_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: i32, src_data: &::js_sys::Uint8Array, 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_js_u8_array_and_src_offset_and_length( this: &WebGl2RenderingContext, target: u32, dst_byte_offset: f64, src_data: &::js_sys::Uint8Array, 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_js_f32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Float32Array, ); # [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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Int32Array, ); # [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_js_i32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Int32Array, 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_js_u32_array( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Uint32Array, ); # [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_js_u32_array_and_src_offset( this: &WebGl2RenderingContext, buffer: u32, drawbuffer: i32, values: &::js_sys::Uint32Array, 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Uint8Array, ); # [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_js_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Uint8Array, 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 = 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_js_u8_array_and_u32_and_src_length_override( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, src_data: &::js_sys::Uint8Array, 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &::js_sys::Uint8Array, ); # [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_js_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, depth: i32, border: i32, src_data: &::js_sys::Uint8Array, 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 = 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_js_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: &::js_sys::Uint8Array, 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &::js_sys::Uint8Array, ); # [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_js_u8_array_and_u32( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, src_data: &::js_sys::Uint8Array, 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 = 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_js_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: &::js_sys::Uint8Array, 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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, src_data: &::js_sys::Uint8Array, ); # [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_js_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: &::js_sys::Uint8Array, 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 = 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_js_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: &::js_sys::Uint8Array, 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<::alloc::string::String>; #[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_js_u8_array( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Uint8Array, ); # [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_js_u8_array( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Uint8Array, ); # [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_js_u8_array_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Uint8Array, 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_js_u8_array_and_dst_offset( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Uint8Array, 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, ); # [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_js_u8_array_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: i32, dst_data: &::js_sys::Uint8Array, 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_js_u8_array_and_dst_offset_and_length( this: &WebGl2RenderingContext, target: u32, src_byte_offset: f64, dst_data: &::js_sys::Uint8Array, 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_opt_js_u8_array( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: Option<&::js_sys::Uint8Array>, ) -> 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 (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_js_u8_array_and_dst_offset( this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, dst_data: &::js_sys::Uint8Array, 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>; # [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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Uint8Array>, ) -> 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_image_2d_with_u32_and_u32_and_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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 = 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_js_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: &::js_sys::Uint8Array, 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_image_3d_with_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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_opt_js_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<&::js_sys::Uint8Array>, ) -> 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 (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_js_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: &::js_sys::Uint8Array, 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>; # [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_js_u8_array( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Uint8Array>, ) -> 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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 = 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_js_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: &::js_sys::Uint8Array, 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_sub_image_3d_with_video_frame( this: &WebGl2RenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, source: &VideoFrame, ) -> 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_js_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<&::js_sys::Uint8Array>, ) -> 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>; # [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_js_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<&::js_sys::Uint8Array>, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, ); #[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_js_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, ); #[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_js_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, ); #[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_js_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_i32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_i32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, 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_js_u32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, ); #[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_js_u32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_u32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Uint32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array_and_src_offset( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_f32_array_and_src_offset_and_src_length( this: &WebGl2RenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, 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_js_i32_array( this: &WebGl2RenderingContext, index: u32, values: &::js_sys::Int32Array, ); # [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_js_u32_array( this: &WebGl2RenderingContext, index: u32, values: &::js_sys::Uint32Array, ); # [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<::alloc::string::String>; #[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<::alloc::string::String>; #[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<::alloc::string::String>; # [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); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = makeXRCompatible)] #[doc = "The `makeXRCompatible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/makeXRCompatible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn make_xr_compatible(this: &WebGl2RenderingContext) -> ::js_sys::Promise; # [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_js_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGl2RenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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; } web-sys-0.3.81/src/features/gen_WebGlActiveInfo.rs000064400000000000000000000036311046102023000200650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_WebGlBuffer.rs000064400000000000000000000010701046102023000172420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlContextAttributes.rs000064400000000000000000000215271046102023000215350ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &WebGlContextAttributes, val: bool); #[doc = "Get the `antialias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "antialias")] pub fn get_antialias(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `antialias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "antialias")] pub fn set_antialias(this: &WebGlContextAttributes, val: bool); #[doc = "Get the `depth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "depth")] pub fn get_depth(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `depth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "depth")] pub fn set_depth(this: &WebGlContextAttributes, val: bool); #[doc = "Get the `failIfMajorPerformanceCaveat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "failIfMajorPerformanceCaveat")] pub fn get_fail_if_major_performance_caveat(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `failIfMajorPerformanceCaveat` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "failIfMajorPerformanceCaveat")] pub fn set_fail_if_major_performance_caveat(this: &WebGlContextAttributes, val: bool); #[cfg(feature = "WebGlPowerPreference")] #[doc = "Get the `powerPreference` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlPowerPreference`*"] #[wasm_bindgen(method, getter = "powerPreference")] pub fn get_power_preference(this: &WebGlContextAttributes) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "powerPreference")] pub fn set_power_preference(this: &WebGlContextAttributes, val: WebGlPowerPreference); #[doc = "Get the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "premultipliedAlpha")] pub fn get_premultiplied_alpha(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `premultipliedAlpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "premultipliedAlpha")] pub fn set_premultiplied_alpha(this: &WebGlContextAttributes, val: bool); #[doc = "Get the `preserveDrawingBuffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "preserveDrawingBuffer")] pub fn get_preserve_drawing_buffer(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `preserveDrawingBuffer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "preserveDrawingBuffer")] pub fn set_preserve_drawing_buffer(this: &WebGlContextAttributes, val: bool); #[doc = "Get the `stencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, getter = "stencil")] pub fn get_stencil(this: &WebGlContextAttributes) -> Option; #[doc = "Change the `stencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[wasm_bindgen(method, setter = "stencil")] pub fn set_stencil(this: &WebGlContextAttributes, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `xrCompatible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "xrCompatible")] pub fn get_xr_compatible(this: &WebGlContextAttributes) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `xrCompatible` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "xrCompatible")] pub fn set_xr_compatible(this: &WebGlContextAttributes, val: bool); } 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 } #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: bool) -> &mut Self { self.set_alpha(val); self } #[deprecated = "Use `set_antialias()` instead."] pub fn antialias(&mut self, val: bool) -> &mut Self { self.set_antialias(val); self } #[deprecated = "Use `set_depth()` instead."] pub fn depth(&mut self, val: bool) -> &mut Self { self.set_depth(val); self } #[deprecated = "Use `set_fail_if_major_performance_caveat()` instead."] pub fn fail_if_major_performance_caveat(&mut self, val: bool) -> &mut Self { self.set_fail_if_major_performance_caveat(val); self } #[cfg(feature = "WebGlPowerPreference")] #[deprecated = "Use `set_power_preference()` instead."] pub fn power_preference(&mut self, val: WebGlPowerPreference) -> &mut Self { self.set_power_preference(val); self } #[deprecated = "Use `set_premultiplied_alpha()` instead."] pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self { self.set_premultiplied_alpha(val); self } #[deprecated = "Use `set_preserve_drawing_buffer()` instead."] pub fn preserve_drawing_buffer(&mut self, val: bool) -> &mut Self { self.set_preserve_drawing_buffer(val); self } #[deprecated = "Use `set_stencil()` instead."] pub fn stencil(&mut self, val: bool) -> &mut Self { self.set_stencil(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_xr_compatible()` instead."] pub fn xr_compatible(&mut self, val: bool) -> &mut Self { self.set_xr_compatible(val); self } } impl Default for WebGlContextAttributes { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebGlContextEvent.rs000064400000000000000000000043471046102023000204710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } web-sys-0.3.81/src/features/gen_WebGlContextEventInit.rs000064400000000000000000000076671046102023000213250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &WebGlContextEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &WebGlContextEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &WebGlContextEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &WebGlContextEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &WebGlContextEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &WebGlContextEventInit, val: bool); #[doc = "Get the `statusMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, getter = "statusMessage")] pub fn get_status_message(this: &WebGlContextEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `statusMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, setter = "statusMessage")] pub fn set_status_message(this: &WebGlContextEventInit, val: &str); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_status_message()` instead."] pub fn status_message(&mut self, val: &str) -> &mut Self { self.set_status_message(val); self } } impl Default for WebGlContextEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebGlFramebuffer.rs000064400000000000000000000011261046102023000202570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlPowerPreference.rs000064400000000000000000000006511046102023000211300ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_WebGlProgram.rs000064400000000000000000000010761046102023000174460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlQuery.rs000064400000000000000000000010621046102023000171370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlRenderbuffer.rs000064400000000000000000000011341046102023000204430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlRenderingContext.rs000064400000000000000000005746171046102023000213410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = 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_js_u8_array( this: &WebGlRenderingContext, target: u32, data: &::js_sys::Uint8Array, 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 = 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_js_u8_array( this: &WebGlRenderingContext, target: u32, offset: i32, data: &::js_sys::Uint8Array, ); # [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_js_u8_array( this: &WebGlRenderingContext, target: u32, offset: f64, data: &::js_sys::Uint8Array, ); # [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 = 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_js_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, data: &::js_sys::Uint8Array, ); # [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 (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_js_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data: &::js_sys::Uint8Array, ); # [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 = 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_js_u8_array( this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Uint8Array>, ) -> 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>; # [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_js_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Uint8Array>, ) -> 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>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGlRenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_image_2d_with_u32_and_u32_and_video_frame( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, video_frame: &VideoFrame, ) -> 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>; # [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_js_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Uint8Array>, ) -> 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(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WebGlRenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn tex_sub_image_2d_with_u32_and_u32_and_video_frame( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, video_frame: &VideoFrame, ) -> 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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Float32Array, ); #[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_js_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::js_sys::Int32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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_js_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::js_sys::Float32Array, ); #[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<::alloc::string::String>; #[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<::alloc::string::String>; #[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<::alloc::string::String>; # [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); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = makeXRCompatible)] #[doc = "The `makeXRCompatible()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/makeXRCompatible)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn make_xr_compatible(this: &WebGlRenderingContext) -> ::js_sys::Promise; # [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_js_f32_array( this: &WebGlRenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGlRenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGlRenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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_js_f32_array( this: &WebGlRenderingContext, indx: u32, values: &::js_sys::Float32Array, ); # [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; } web-sys-0.3.81/src/features/gen_WebGlSampler.rs000064400000000000000000000010761046102023000174420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlShader.rs000064400000000000000000000010701046102023000172370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlShaderPrecisionFormat.rs000064400000000000000000000042001046102023000222620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlSync.rs000064400000000000000000000010541046102023000167470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlTexture.rs000064400000000000000000000010761046102023000174770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlTransformFeedback.rs000064400000000000000000000011721046102023000214140ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlUniformLocation.rs000064400000000000000000000011561046102023000211460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebGlVertexArrayObject.rs000064400000000000000000000011721046102023000214370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebKitCssMatrix.rs000064400000000000000000000327051046102023000201440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebSocket.rs000064400000000000000000000331341046102023000170040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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>; # [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_js_u8_array( this: &WebSocket, data: &::js_sys::Uint8Array, ) -> 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; } web-sys-0.3.81/src/features/gen_WebSocketDict.rs000064400000000000000000000031761046102023000176130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `websockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] #[wasm_bindgen(method, getter = "websockets")] pub fn get_websockets(this: &WebSocketDict) -> Option<::js_sys::Array>; #[doc = "Change the `websockets` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] #[wasm_bindgen(method, setter = "websockets")] pub fn set_websockets(this: &WebSocketDict, val: &::wasm_bindgen::JsValue); } 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 } #[deprecated = "Use `set_websockets()` instead."] pub fn websockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_websockets(val); self } } impl Default for WebSocketDict { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebSocketElement.rs000064400000000000000000000123571046102023000203220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "encrypted")] pub fn get_encrypted(this: &WebSocketElement) -> Option; #[doc = "Change the `encrypted` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "encrypted")] pub fn set_encrypted(this: &WebSocketElement, val: bool); #[doc = "Get the `hostport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "hostport")] pub fn get_hostport(this: &WebSocketElement) -> Option<::alloc::string::String>; #[doc = "Change the `hostport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "hostport")] pub fn set_hostport(this: &WebSocketElement, val: &str); #[doc = "Get the `msgreceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "msgreceived")] pub fn get_msgreceived(this: &WebSocketElement) -> Option; #[doc = "Change the `msgreceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "msgreceived")] pub fn set_msgreceived(this: &WebSocketElement, val: u32); #[doc = "Get the `msgsent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "msgsent")] pub fn get_msgsent(this: &WebSocketElement) -> Option; #[doc = "Change the `msgsent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "msgsent")] pub fn set_msgsent(this: &WebSocketElement, val: u32); #[doc = "Get the `receivedsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "receivedsize")] pub fn get_receivedsize(this: &WebSocketElement) -> Option; #[doc = "Change the `receivedsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "receivedsize")] pub fn set_receivedsize(this: &WebSocketElement, val: f64); #[doc = "Get the `sentsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "sentsize")] pub fn get_sentsize(this: &WebSocketElement) -> Option; #[doc = "Change the `sentsize` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, setter = "sentsize")] pub fn set_sentsize(this: &WebSocketElement, val: f64); } 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 } #[deprecated = "Use `set_encrypted()` instead."] pub fn encrypted(&mut self, val: bool) -> &mut Self { self.set_encrypted(val); self } #[deprecated = "Use `set_hostport()` instead."] pub fn hostport(&mut self, val: &str) -> &mut Self { self.set_hostport(val); self } #[deprecated = "Use `set_msgreceived()` instead."] pub fn msgreceived(&mut self, val: u32) -> &mut Self { self.set_msgreceived(val); self } #[deprecated = "Use `set_msgsent()` instead."] pub fn msgsent(&mut self, val: u32) -> &mut Self { self.set_msgsent(val); self } #[deprecated = "Use `set_receivedsize()` instead."] pub fn receivedsize(&mut self, val: f64) -> &mut Self { self.set_receivedsize(val); self } #[deprecated = "Use `set_sentsize()` instead."] pub fn sentsize(&mut self, val: f64) -> &mut Self { self.set_sentsize(val); self } } impl Default for WebSocketElement { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransport.rs000064400000000000000000000344411046102023000175520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransport , typescript_type = "WebTransport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransport` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransport; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , 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/WebTransport/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ready(this: &WebTransport) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportReliabilityMode")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = reliability)] #[doc = "Getter for the `reliability` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/reliability)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportReliabilityMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reliability(this: &WebTransport) -> WebTransportReliabilityMode; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportCongestionControl")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = congestionControl)] #[doc = "Getter for the `congestionControl` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/congestionControl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportCongestionControl`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn congestion_control(this: &WebTransport) -> WebTransportCongestionControl; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , 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/WebTransport/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn closed(this: &WebTransport) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = draining)] #[doc = "Getter for the `draining` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/draining)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn draining(this: &WebTransport) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportDatagramDuplexStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = datagrams)] #[doc = "Getter for the `datagrams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/datagrams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn datagrams(this: &WebTransport) -> WebTransportDatagramDuplexStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = incomingBidirectionalStreams)] #[doc = "Getter for the `incomingBidirectionalStreams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/incomingBidirectionalStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn incoming_bidirectional_streams(this: &WebTransport) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransport" , js_name = incomingUnidirectionalStreams)] #[doc = "Getter for the `incomingUnidirectionalStreams` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/incomingUnidirectionalStreams)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn incoming_unidirectional_streams(this: &WebTransport) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "WebTransport")] #[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/WebTransport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(url: &str) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportOptions")] #[wasm_bindgen(catch, constructor, js_class = "WebTransport")] #[doc = "The `new WebTransport(..)` constructor, creating a new instance of `WebTransport`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/WebTransport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_options( url: &str, options: &WebTransportOptions, ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close(this: &WebTransport); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportCloseInfo")] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn close_with_close_info(this: &WebTransport, close_info: &WebTransportCloseInfo); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)] #[doc = "The `createBidirectionalStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_bidirectional_stream(this: &WebTransport) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportSendStreamOptions")] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createBidirectionalStream)] #[doc = "The `createBidirectionalStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createBidirectionalStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_bidirectional_stream_with_options( this: &WebTransport, options: &WebTransportSendStreamOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)] #[doc = "The `createUnidirectionalStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_unidirectional_stream(this: &WebTransport) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportSendStreamOptions")] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = createUnidirectionalStream)] #[doc = "The `createUnidirectionalStream()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/createUnidirectionalStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`, `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_unidirectional_stream_with_options( this: &WebTransport, options: &WebTransportSendStreamOptions, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransport" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_stats(this: &WebTransport) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WebTransportBidirectionalStream.rs000064400000000000000000000053071046102023000234160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportBidirectionalStream , typescript_type = "WebTransportBidirectionalStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportBidirectionalStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportBidirectionalStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportBidirectionalStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportBidirectionalStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportReceiveStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportBidirectionalStream" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportBidirectionalStream/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportBidirectionalStream`, `WebTransportReceiveStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &WebTransportBidirectionalStream) -> WebTransportReceiveStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportSendStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportBidirectionalStream" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportBidirectionalStream/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportBidirectionalStream`, `WebTransportSendStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &WebTransportBidirectionalStream) -> WebTransportSendStream; } web-sys-0.3.81/src/features/gen_WebTransportCloseInfo.rs000064400000000000000000000101631046102023000213470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportCloseInfo)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportCloseInfo` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportCloseInfo; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `closeCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "closeCode")] pub fn get_close_code(this: &WebTransportCloseInfo) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `closeCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "closeCode")] pub fn set_close_code(this: &WebTransportCloseInfo, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reason")] pub fn get_reason(this: &WebTransportCloseInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "reason")] pub fn set_reason(this: &WebTransportCloseInfo, val: &str); } #[cfg(web_sys_unstable_apis)] impl WebTransportCloseInfo { #[doc = "Construct a new `WebTransportCloseInfo`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCloseInfo`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_close_code()` instead."] pub fn close_code(&mut self, val: u32) -> &mut Self { self.set_close_code(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_reason()` instead."] pub fn reason(&mut self, val: &str) -> &mut Self { self.set_reason(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportCloseInfo { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportCongestionControl.rs000064400000000000000000000013031046102023000231330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `WebTransportCongestionControl` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCongestionControl`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WebTransportCongestionControl { Default = "default", Throughput = "throughput", LowLatency = "low-latency", } web-sys-0.3.81/src/features/gen_WebTransportDatagramDuplexStream.rs000064400000000000000000000241701046102023000235470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportDatagramDuplexStream , typescript_type = "WebTransportDatagramDuplexStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportDatagramDuplexStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportDatagramDuplexStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "ReadableStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = readable)] #[doc = "Getter for the `readable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/readable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn readable(this: &WebTransportDatagramDuplexStream) -> ReadableStream; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WritableStream")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = writable)] #[doc = "Getter for the `writable` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/writable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`, `WritableStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn writable(this: &WebTransportDatagramDuplexStream) -> WritableStream; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = maxDatagramSize)] #[doc = "Getter for the `maxDatagramSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn max_datagram_size(this: &WebTransportDatagramDuplexStream) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)] #[doc = "Getter for the `incomingMaxAge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn incoming_max_age(this: &WebTransportDatagramDuplexStream) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingMaxAge)] #[doc = "Setter for the `incomingMaxAge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_incoming_max_age(this: &WebTransportDatagramDuplexStream, value: f64); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)] #[doc = "Getter for the `outgoingMaxAge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn outgoing_max_age(this: &WebTransportDatagramDuplexStream) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingMaxAge)] #[doc = "Setter for the `outgoingMaxAge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_outgoing_max_age(this: &WebTransportDatagramDuplexStream, value: f64); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)] #[doc = "Getter for the `incomingHighWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn incoming_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = incomingHighWaterMark)] #[doc = "Setter for the `incomingHighWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_incoming_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)] #[doc = "Getter for the `outgoingHighWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "WebTransportDatagramDuplexStream" , js_name = outgoingHighWaterMark)] #[doc = "Setter for the `outgoingHighWaterMark` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramDuplexStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_outgoing_high_water_mark(this: &WebTransportDatagramDuplexStream, value: f64); } web-sys-0.3.81/src/features/gen_WebTransportDatagramStats.rs000064400000000000000000000157611046102023000222360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportDatagramStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportDatagramStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportDatagramStats; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `droppedIncoming` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "droppedIncoming")] pub fn get_dropped_incoming(this: &WebTransportDatagramStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `droppedIncoming` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "droppedIncoming")] pub fn set_dropped_incoming(this: &WebTransportDatagramStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `expiredOutgoing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "expiredOutgoing")] pub fn get_expired_outgoing(this: &WebTransportDatagramStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `expiredOutgoing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "expiredOutgoing")] pub fn set_expired_outgoing(this: &WebTransportDatagramStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `lostOutgoing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "lostOutgoing")] pub fn get_lost_outgoing(this: &WebTransportDatagramStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `lostOutgoing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "lostOutgoing")] pub fn set_lost_outgoing(this: &WebTransportDatagramStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &WebTransportDatagramStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &WebTransportDatagramStats, val: f64); } #[cfg(web_sys_unstable_apis)] impl WebTransportDatagramStats { #[doc = "Construct a new `WebTransportDatagramStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_dropped_incoming()` instead."] pub fn dropped_incoming(&mut self, val: f64) -> &mut Self { self.set_dropped_incoming(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_expired_outgoing()` instead."] pub fn expired_outgoing(&mut self, val: f64) -> &mut Self { self.set_expired_outgoing(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_lost_outgoing()` instead."] pub fn lost_outgoing(&mut self, val: f64) -> &mut Self { self.set_lost_outgoing(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportDatagramStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportError.rs000064400000000000000000000116371046102023000205660ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = DomException , extends = :: js_sys :: Object , js_name = WebTransportError , typescript_type = "WebTransportError")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportError` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportError; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportErrorSource")] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportError" , 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/WebTransportError/source)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`, `WebTransportErrorSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn source(this: &WebTransportError) -> WebTransportErrorSource; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WebTransportError" , js_name = streamErrorCode)] #[doc = "Getter for the `streamErrorCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/streamErrorCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn stream_error_code(this: &WebTransportError) -> Option; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_message(message: &str) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportErrorOptions")] #[wasm_bindgen(catch, constructor, js_class = "WebTransportError")] #[doc = "The `new WebTransportError(..)` constructor, creating a new instance of `WebTransportError`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportError/WebTransportError)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportError`, `WebTransportErrorOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_message_and_options( message: &str, options: &WebTransportErrorOptions, ) -> Result; } web-sys-0.3.81/src/features/gen_WebTransportErrorOptions.rs000064400000000000000000000107271046102023000221410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportErrorOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportErrorOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportErrorOptions; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportErrorSource")] #[doc = "Get the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`, `WebTransportErrorSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "source")] pub fn get_source(this: &WebTransportErrorOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportErrorSource")] #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`, `WebTransportErrorSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "source")] pub fn set_source(this: &WebTransportErrorOptions, val: WebTransportErrorSource); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `streamErrorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "streamErrorCode")] pub fn get_stream_error_code(this: &WebTransportErrorOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `streamErrorCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "streamErrorCode")] pub fn set_stream_error_code(this: &WebTransportErrorOptions, val: Option); } #[cfg(web_sys_unstable_apis)] impl WebTransportErrorOptions { #[doc = "Construct a new `WebTransportErrorOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "WebTransportErrorSource")] #[deprecated = "Use `set_source()` instead."] pub fn source(&mut self, val: WebTransportErrorSource) -> &mut Self { self.set_source(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stream_error_code()` instead."] pub fn stream_error_code(&mut self, val: Option) -> &mut Self { self.set_stream_error_code(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportErrorOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportErrorSource.rs000064400000000000000000000012111046102023000217320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `WebTransportErrorSource` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportErrorSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WebTransportErrorSource { Stream = "stream", Session = "session", } web-sys-0.3.81/src/features/gen_WebTransportHash.rs000064400000000000000000000100761046102023000203540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportHash)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportHash` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportHash; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `algorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "algorithm")] pub fn get_algorithm(this: &WebTransportHash) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `algorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "algorithm")] pub fn set_algorithm(this: &WebTransportHash, val: &str); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "value")] pub fn get_value(this: &WebTransportHash) -> Option<::js_sys::Object>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "value")] pub fn set_value(this: &WebTransportHash, val: &::js_sys::Object); } #[cfg(web_sys_unstable_apis)] impl WebTransportHash { #[doc = "Construct a new `WebTransportHash`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportHash`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_algorithm()` instead."] pub fn algorithm(&mut self, val: &str) -> &mut Self { self.set_algorithm(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_value()` instead."] pub fn value(&mut self, val: &::js_sys::Object) -> &mut Self { self.set_value(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportHash { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportOptions.rs000064400000000000000000000166121046102023000211260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `allowPooling` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "allowPooling")] pub fn get_allow_pooling(this: &WebTransportOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `allowPooling` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "allowPooling")] pub fn set_allow_pooling(this: &WebTransportOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportCongestionControl")] #[doc = "Get the `congestionControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCongestionControl`, `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "congestionControl")] pub fn get_congestion_control( this: &WebTransportOptions, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportCongestionControl")] #[doc = "Change the `congestionControl` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportCongestionControl`, `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "congestionControl")] pub fn set_congestion_control(this: &WebTransportOptions, val: WebTransportCongestionControl); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requireUnreliable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requireUnreliable")] pub fn get_require_unreliable(this: &WebTransportOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requireUnreliable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requireUnreliable")] pub fn set_require_unreliable(this: &WebTransportOptions, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `serverCertificateHashes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serverCertificateHashes")] pub fn get_server_certificate_hashes(this: &WebTransportOptions) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serverCertificateHashes` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "serverCertificateHashes")] pub fn set_server_certificate_hashes(this: &WebTransportOptions, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl WebTransportOptions { #[doc = "Construct a new `WebTransportOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_allow_pooling()` instead."] pub fn allow_pooling(&mut self, val: bool) -> &mut Self { self.set_allow_pooling(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportCongestionControl")] #[deprecated = "Use `set_congestion_control()` instead."] pub fn congestion_control(&mut self, val: WebTransportCongestionControl) -> &mut Self { self.set_congestion_control(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_require_unreliable()` instead."] pub fn require_unreliable(&mut self, val: bool) -> &mut Self { self.set_require_unreliable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_server_certificate_hashes()` instead."] pub fn server_certificate_hashes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_server_certificate_hashes(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportReceiveStream.rs000064400000000000000000000032621046102023000222260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = ReadableStream , extends = :: js_sys :: Object , js_name = WebTransportReceiveStream , typescript_type = "WebTransportReceiveStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportReceiveStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportReceiveStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportReceiveStream; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransportReceiveStream" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportReceiveStream/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_stats(this: &WebTransportReceiveStream) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WebTransportReceiveStreamStats.rs000064400000000000000000000132311046102023000232420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportReceiveStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportReceiveStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportReceiveStreamStats; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesRead` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesRead")] pub fn get_bytes_read(this: &WebTransportReceiveStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesRead` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesRead")] pub fn set_bytes_read(this: &WebTransportReceiveStreamStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &WebTransportReceiveStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &WebTransportReceiveStreamStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &WebTransportReceiveStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &WebTransportReceiveStreamStats, val: f64); } #[cfg(web_sys_unstable_apis)] impl WebTransportReceiveStreamStats { #[doc = "Construct a new `WebTransportReceiveStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReceiveStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_bytes_read()` instead."] pub fn bytes_read(&mut self, val: f64) -> &mut Self { self.set_bytes_read(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: f64) -> &mut Self { self.set_bytes_received(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportReceiveStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportReliabilityMode.rs000064400000000000000000000013221046102023000225410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `WebTransportReliabilityMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportReliabilityMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WebTransportReliabilityMode { Pending = "pending", ReliableOnly = "reliable-only", SupportsUnreliable = "supports-unreliable", } web-sys-0.3.81/src/features/gen_WebTransportSendStream.rs000064400000000000000000000032241046102023000215330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = WritableStream , extends = :: js_sys :: Object , js_name = WebTransportSendStream , typescript_type = "WebTransportSendStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportSendStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportSendStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportSendStream; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WebTransportSendStream" , js_name = getStats)] #[doc = "The `getStats()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebTransportSendStream/getStats)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStream`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_stats(this: &WebTransportSendStream) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WebTransportSendStreamOptions.rs000064400000000000000000000056441046102023000231170ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportSendStreamOptions)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportSendStreamOptions` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportSendStreamOptions; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `sendOrder` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sendOrder")] pub fn get_send_order(this: &WebTransportSendStreamOptions) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sendOrder` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "sendOrder")] pub fn set_send_order(this: &WebTransportSendStreamOptions, val: Option); } #[cfg(web_sys_unstable_apis)] impl WebTransportSendStreamOptions { #[doc = "Construct a new `WebTransportSendStreamOptions`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamOptions`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_send_order()` instead."] pub fn send_order(&mut self, val: Option) -> &mut Self { self.set_send_order(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportSendStreamOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportSendStreamStats.rs000064400000000000000000000157751046102023000225700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportSendStreamStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportSendStreamStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportSendStreamStats; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesAcknowledged` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesAcknowledged")] pub fn get_bytes_acknowledged(this: &WebTransportSendStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesAcknowledged` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesAcknowledged")] pub fn set_bytes_acknowledged(this: &WebTransportSendStreamStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &WebTransportSendStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &WebTransportSendStreamStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesWritten` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesWritten")] pub fn get_bytes_written(this: &WebTransportSendStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesWritten` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesWritten")] pub fn set_bytes_written(this: &WebTransportSendStreamStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &WebTransportSendStreamStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &WebTransportSendStreamStats, val: f64); } #[cfg(web_sys_unstable_apis)] impl WebTransportSendStreamStats { #[doc = "Construct a new `WebTransportSendStreamStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportSendStreamStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_bytes_acknowledged()` instead."] pub fn bytes_acknowledged(&mut self, val: f64) -> &mut Self { self.set_bytes_acknowledged(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { self.set_bytes_sent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes_written()` instead."] pub fn bytes_written(&mut self, val: f64) -> &mut Self { self.set_bytes_written(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportSendStreamStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebTransportStats.rs000064400000000000000000000435051046102023000205720ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebTransportStats)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebTransportStats` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WebTransportStats; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesReceived")] pub fn get_bytes_received(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesReceived")] pub fn set_bytes_received(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bytesSent")] pub fn get_bytes_sent(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bytesSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bytesSent")] pub fn set_bytes_sent(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportDatagramStats")] #[doc = "Get the `datagrams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`, `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "datagrams")] pub fn get_datagrams(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportDatagramStats")] #[doc = "Change the `datagrams` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportDatagramStats`, `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "datagrams")] pub fn set_datagrams(this: &WebTransportStats, val: &WebTransportDatagramStats); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `minRtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "minRtt")] pub fn get_min_rtt(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `minRtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "minRtt")] pub fn set_min_rtt(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numIncomingStreamsCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numIncomingStreamsCreated")] pub fn get_num_incoming_streams_created(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numIncomingStreamsCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numIncomingStreamsCreated")] pub fn set_num_incoming_streams_created(this: &WebTransportStats, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `numOutgoingStreamsCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "numOutgoingStreamsCreated")] pub fn get_num_outgoing_streams_created(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `numOutgoingStreamsCreated` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "numOutgoingStreamsCreated")] pub fn set_num_outgoing_streams_created(this: &WebTransportStats, val: u32); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `packetsLost` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "packetsLost")] pub fn get_packets_lost(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `packetsLost` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "packetsLost")] pub fn set_packets_lost(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `packetsReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "packetsReceived")] pub fn get_packets_received(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `packetsReceived` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "packetsReceived")] pub fn set_packets_received(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `packetsSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "packetsSent")] pub fn get_packets_sent(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `packetsSent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "packetsSent")] pub fn set_packets_sent(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `rttVariation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rttVariation")] pub fn get_rtt_variation(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rttVariation` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "rttVariation")] pub fn set_rtt_variation(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `smoothedRtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "smoothedRtt")] pub fn get_smoothed_rtt(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `smoothedRtt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "smoothedRtt")] pub fn set_smoothed_rtt(this: &WebTransportStats, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "timestamp")] pub fn get_timestamp(this: &WebTransportStats) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `timestamp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "timestamp")] pub fn set_timestamp(this: &WebTransportStats, val: f64); } #[cfg(web_sys_unstable_apis)] impl WebTransportStats { #[doc = "Construct a new `WebTransportStats`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebTransportStats`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_bytes_received()` instead."] pub fn bytes_received(&mut self, val: f64) -> &mut Self { self.set_bytes_received(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bytes_sent()` instead."] pub fn bytes_sent(&mut self, val: f64) -> &mut Self { self.set_bytes_sent(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebTransportDatagramStats")] #[deprecated = "Use `set_datagrams()` instead."] pub fn datagrams(&mut self, val: &WebTransportDatagramStats) -> &mut Self { self.set_datagrams(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_min_rtt()` instead."] pub fn min_rtt(&mut self, val: f64) -> &mut Self { self.set_min_rtt(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_num_incoming_streams_created()` instead."] pub fn num_incoming_streams_created(&mut self, val: u32) -> &mut Self { self.set_num_incoming_streams_created(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_num_outgoing_streams_created()` instead."] pub fn num_outgoing_streams_created(&mut self, val: u32) -> &mut Self { self.set_num_outgoing_streams_created(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_packets_lost()` instead."] pub fn packets_lost(&mut self, val: f64) -> &mut Self { self.set_packets_lost(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_packets_received()` instead."] pub fn packets_received(&mut self, val: f64) -> &mut Self { self.set_packets_received(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_packets_sent()` instead."] pub fn packets_sent(&mut self, val: f64) -> &mut Self { self.set_packets_sent(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_rtt_variation()` instead."] pub fn rtt_variation(&mut self, val: f64) -> &mut Self { self.set_rtt_variation(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_smoothed_rtt()` instead."] pub fn smoothed_rtt(&mut self, val: f64) -> &mut Self { self.set_smoothed_rtt(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_timestamp()` instead."] pub fn timestamp(&mut self, val: f64) -> &mut Self { self.set_timestamp(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for WebTransportStats { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WebglColorBufferFloat.rs000064400000000000000000000032711046102023000212740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureAstc.rs000064400000000000000000000222421046102023000223750ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureAtc.rs000064400000000000000000000031051046102023000222070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureEtc.rs000064400000000000000000000066251046102023000222250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureEtc1.rs000064400000000000000000000017541046102023000223040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTexturePvrtc.rs000064400000000000000000000035451046102023000226060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureS3tc.rs000064400000000000000000000035001046102023000223130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglCompressedTextureS3tcSrgb.rs000064400000000000000000000036511046102023000231400ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglDebugRendererInfo.rs000064400000000000000000000023061046102023000214250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglDebugShaders.rs000064400000000000000000000023601046102023000204340ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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, ) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_WebglDepthTexture.rs000064400000000000000000000016231046102023000205220ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglDrawBuffers.rs000064400000000000000000000224231046102023000203100ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WebglLoseContext.rs000064400000000000000000000027671046102023000203560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_WebglMultiDraw.rs000064400000000000000000001644241046102023000200160ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WEBGL_multi_draw , typescript_type = "WEBGL_multi_draw")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WebglMultiDraw` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub type WebglMultiDraw; # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_slice_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_slice_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_slice_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_slice_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_js_i32_array_and_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_slice_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_js_i32_array_and_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_slice_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_slice_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_js_i32_array_and_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_js_i32_array_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysInstancedWEBGL)] #[doc = "The `multiDrawArraysInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_instanced_webgl_with_i32_sequence_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &mut [i32], counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &mut [i32], firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::js_sys::Int32Array, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawArraysWEBGL)] #[doc = "The `multiDrawArraysWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_arrays_webgl_with_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, firsts_list: &::wasm_bindgen::JsValue, firsts_offset: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_slice_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_slice_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &mut [i32], instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_slice_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_slice_and_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_js_i32_array_and_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_slice_and_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_js_i32_array_and_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::js_sys::Int32Array, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_slice_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_slice_and_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_js_i32_array_and_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_array_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_js_i32_array_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsInstancedWEBGL)] #[doc = "The `multiDrawElementsInstancedWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_instanced_webgl_with_i32_sequence_and_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, instance_counts_list: &::wasm_bindgen::JsValue, instance_counts_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_array_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_array_and_i32_slice( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_sequence_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &mut [i32], offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_slice_and_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_js_i32_array_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_sequence_and_js_i32_array( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::js_sys::Int32Array, offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &mut [i32], counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_js_i32_array_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::js_sys::Int32Array, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, drawcount: i32, ); # [wasm_bindgen (method , structural , js_class = "WEBGL_multi_draw" , js_name = multiDrawElementsWEBGL)] #[doc = "The `multiDrawElementsWEBGL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebglMultiDraw`*"] pub fn multi_draw_elements_webgl_with_i32_sequence_and_i32_sequence( this: &WebglMultiDraw, mode: u32, counts_list: &::wasm_bindgen::JsValue, counts_offset: u32, type_: u32, offsets_list: &::wasm_bindgen::JsValue, offsets_offset: u32, drawcount: i32, ); } web-sys-0.3.81/src/features/gen_WellKnownDirectory.rs000064400000000000000000000013441046102023000207210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `WellKnownDirectory` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WellKnownDirectory`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WellKnownDirectory { Desktop = "desktop", Documents = "documents", Downloads = "downloads", Music = "music", Pictures = "pictures", Videos = "videos", } web-sys-0.3.81/src/features/gen_WgslLanguageFeatures.rs000064400000000000000000000123521046102023000211740ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WGSLLanguageFeatures , typescript_type = "WGSLLanguageFeatures")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WgslLanguageFeatures` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type WgslLanguageFeatures; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WGSLLanguageFeatures" , 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/WGSLLanguageFeatures/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &WgslLanguageFeatures) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &WgslLanguageFeatures) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "WGSLLanguageFeatures" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each( this: &WgslLanguageFeatures, callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/has)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn has(this: &WgslLanguageFeatures, value: &str) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &WgslLanguageFeatures) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &WgslLanguageFeatures) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_WheelEvent.rs000064400000000000000000000077431046102023000171730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WheelEventInit.rs000064400000000000000000000571331046102023000200150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &WheelEventInit) -> Option; #[doc = "Change the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &WheelEventInit, val: bool); #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &WheelEventInit) -> Option; #[doc = "Change the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &WheelEventInit, val: bool); #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &WheelEventInit) -> Option; #[doc = "Change the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &WheelEventInit, val: bool); #[doc = "Get the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "detail")] pub fn get_detail(this: &WheelEventInit) -> Option; #[doc = "Change the `detail` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "detail")] pub fn set_detail(this: &WheelEventInit, val: i32); #[cfg(feature = "Window")] #[doc = "Get the `view` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`, `Window`*"] #[wasm_bindgen(method, getter = "view")] pub fn get_view(this: &WheelEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "view")] pub fn set_view(this: &WheelEventInit, val: Option<&Window>); #[doc = "Get the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "altKey")] pub fn get_alt_key(this: &WheelEventInit) -> Option; #[doc = "Change the `altKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "altKey")] pub fn set_alt_key(this: &WheelEventInit, val: bool); #[doc = "Get the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "ctrlKey")] pub fn get_ctrl_key(this: &WheelEventInit) -> Option; #[doc = "Change the `ctrlKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "ctrlKey")] pub fn set_ctrl_key(this: &WheelEventInit, val: bool); #[doc = "Get the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "metaKey")] pub fn get_meta_key(this: &WheelEventInit) -> Option; #[doc = "Change the `metaKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "metaKey")] pub fn set_meta_key(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierAltGraph")] pub fn get_modifier_alt_graph(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierAltGraph` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierAltGraph")] pub fn set_modifier_alt_graph(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierCapsLock")] pub fn get_modifier_caps_lock(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierCapsLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierCapsLock")] pub fn set_modifier_caps_lock(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierFn")] pub fn get_modifier_fn(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierFn` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierFn")] pub fn set_modifier_fn(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierFnLock")] pub fn get_modifier_fn_lock(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierFnLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierFnLock")] pub fn set_modifier_fn_lock(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierNumLock")] pub fn get_modifier_num_lock(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierNumLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierNumLock")] pub fn set_modifier_num_lock(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierOS")] pub fn get_modifier_os(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierOS` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierOS")] pub fn set_modifier_os(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierScrollLock")] pub fn get_modifier_scroll_lock(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierScrollLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierScrollLock")] pub fn set_modifier_scroll_lock(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbol")] pub fn get_modifier_symbol(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierSymbol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbol")] pub fn set_modifier_symbol(this: &WheelEventInit, val: bool); #[doc = "Get the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "modifierSymbolLock")] pub fn get_modifier_symbol_lock(this: &WheelEventInit) -> Option; #[doc = "Change the `modifierSymbolLock` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "modifierSymbolLock")] pub fn set_modifier_symbol_lock(this: &WheelEventInit, val: bool); #[doc = "Get the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "shiftKey")] pub fn get_shift_key(this: &WheelEventInit) -> Option; #[doc = "Change the `shiftKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "shiftKey")] pub fn set_shift_key(this: &WheelEventInit, val: bool); #[doc = "Get the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "button")] pub fn get_button(this: &WheelEventInit) -> Option; #[doc = "Change the `button` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "button")] pub fn set_button(this: &WheelEventInit, val: i16); #[doc = "Get the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "buttons")] pub fn get_buttons(this: &WheelEventInit) -> Option; #[doc = "Change the `buttons` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "buttons")] pub fn set_buttons(this: &WheelEventInit, val: u16); #[doc = "Get the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "clientX")] pub fn get_client_x(this: &WheelEventInit) -> Option; #[doc = "Change the `clientX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "clientX")] pub fn set_client_x(this: &WheelEventInit, val: i32); #[doc = "Get the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "clientY")] pub fn get_client_y(this: &WheelEventInit) -> Option; #[doc = "Change the `clientY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "clientY")] pub fn set_client_y(this: &WheelEventInit, val: i32); #[doc = "Get the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "movementX")] pub fn get_movement_x(this: &WheelEventInit) -> Option; #[doc = "Change the `movementX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "movementX")] pub fn set_movement_x(this: &WheelEventInit, val: i32); #[doc = "Get the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "movementY")] pub fn get_movement_y(this: &WheelEventInit) -> Option; #[doc = "Change the `movementY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "movementY")] pub fn set_movement_y(this: &WheelEventInit, val: i32); #[cfg(feature = "EventTarget")] #[doc = "Get the `relatedTarget` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `WheelEventInit`*"] #[wasm_bindgen(method, getter = "relatedTarget")] pub fn get_related_target(this: &WheelEventInit) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "relatedTarget")] pub fn set_related_target(this: &WheelEventInit, val: Option<&EventTarget>); #[doc = "Get the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "screenX")] pub fn get_screen_x(this: &WheelEventInit) -> Option; #[doc = "Change the `screenX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "screenX")] pub fn set_screen_x(this: &WheelEventInit, val: i32); #[doc = "Get the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "screenY")] pub fn get_screen_y(this: &WheelEventInit) -> Option; #[doc = "Change the `screenY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "screenY")] pub fn set_screen_y(this: &WheelEventInit, val: i32); #[doc = "Get the `deltaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "deltaMode")] pub fn get_delta_mode(this: &WheelEventInit) -> Option; #[doc = "Change the `deltaMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "deltaMode")] pub fn set_delta_mode(this: &WheelEventInit, val: u32); #[doc = "Get the `deltaX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "deltaX")] pub fn get_delta_x(this: &WheelEventInit) -> Option; #[doc = "Change the `deltaX` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "deltaX")] pub fn set_delta_x(this: &WheelEventInit, val: f64); #[doc = "Get the `deltaY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "deltaY")] pub fn get_delta_y(this: &WheelEventInit) -> Option; #[doc = "Change the `deltaY` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "deltaY")] pub fn set_delta_y(this: &WheelEventInit, val: f64); #[doc = "Get the `deltaZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, getter = "deltaZ")] pub fn get_delta_z(this: &WheelEventInit) -> Option; #[doc = "Change the `deltaZ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] #[wasm_bindgen(method, setter = "deltaZ")] pub fn set_delta_z(this: &WheelEventInit, val: f64); } 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 } #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[deprecated = "Use `set_detail()` instead."] pub fn detail(&mut self, val: i32) -> &mut Self { self.set_detail(val); self } #[cfg(feature = "Window")] #[deprecated = "Use `set_view()` instead."] pub fn view(&mut self, val: Option<&Window>) -> &mut Self { self.set_view(val); self } #[deprecated = "Use `set_alt_key()` instead."] pub fn alt_key(&mut self, val: bool) -> &mut Self { self.set_alt_key(val); self } #[deprecated = "Use `set_ctrl_key()` instead."] pub fn ctrl_key(&mut self, val: bool) -> &mut Self { self.set_ctrl_key(val); self } #[deprecated = "Use `set_meta_key()` instead."] pub fn meta_key(&mut self, val: bool) -> &mut Self { self.set_meta_key(val); self } #[deprecated = "Use `set_modifier_alt_graph()` instead."] pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { self.set_modifier_alt_graph(val); self } #[deprecated = "Use `set_modifier_caps_lock()` instead."] pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_caps_lock(val); self } #[deprecated = "Use `set_modifier_fn()` instead."] pub fn modifier_fn(&mut self, val: bool) -> &mut Self { self.set_modifier_fn(val); self } #[deprecated = "Use `set_modifier_fn_lock()` instead."] pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_fn_lock(val); self } #[deprecated = "Use `set_modifier_num_lock()` instead."] pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_num_lock(val); self } #[deprecated = "Use `set_modifier_os()` instead."] pub fn modifier_os(&mut self, val: bool) -> &mut Self { self.set_modifier_os(val); self } #[deprecated = "Use `set_modifier_scroll_lock()` instead."] pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_scroll_lock(val); self } #[deprecated = "Use `set_modifier_symbol()` instead."] pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol(val); self } #[deprecated = "Use `set_modifier_symbol_lock()` instead."] pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { self.set_modifier_symbol_lock(val); self } #[deprecated = "Use `set_shift_key()` instead."] pub fn shift_key(&mut self, val: bool) -> &mut Self { self.set_shift_key(val); self } #[deprecated = "Use `set_button()` instead."] pub fn button(&mut self, val: i16) -> &mut Self { self.set_button(val); self } #[deprecated = "Use `set_buttons()` instead."] pub fn buttons(&mut self, val: u16) -> &mut Self { self.set_buttons(val); self } #[deprecated = "Use `set_client_x()` instead."] pub fn client_x(&mut self, val: i32) -> &mut Self { self.set_client_x(val); self } #[deprecated = "Use `set_client_y()` instead."] pub fn client_y(&mut self, val: i32) -> &mut Self { self.set_client_y(val); self } #[deprecated = "Use `set_movement_x()` instead."] pub fn movement_x(&mut self, val: i32) -> &mut Self { self.set_movement_x(val); self } #[deprecated = "Use `set_movement_y()` instead."] pub fn movement_y(&mut self, val: i32) -> &mut Self { self.set_movement_y(val); self } #[cfg(feature = "EventTarget")] #[deprecated = "Use `set_related_target()` instead."] pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { self.set_related_target(val); self } #[deprecated = "Use `set_screen_x()` instead."] pub fn screen_x(&mut self, val: i32) -> &mut Self { self.set_screen_x(val); self } #[deprecated = "Use `set_screen_y()` instead."] pub fn screen_y(&mut self, val: i32) -> &mut Self { self.set_screen_y(val); self } #[deprecated = "Use `set_delta_mode()` instead."] pub fn delta_mode(&mut self, val: u32) -> &mut Self { self.set_delta_mode(val); self } #[deprecated = "Use `set_delta_x()` instead."] pub fn delta_x(&mut self, val: f64) -> &mut Self { self.set_delta_x(val); self } #[deprecated = "Use `set_delta_y()` instead."] pub fn delta_y(&mut self, val: f64) -> &mut Self { self.set_delta_y(val); self } #[deprecated = "Use `set_delta_z()` instead."] pub fn delta_z(&mut self, val: f64) -> &mut Self { self.set_delta_z(val); self } } impl Default for WheelEventInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WidevineCdmManifest.rs000064400000000000000000000156011046102023000210020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "description")] pub fn get_description(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "description")] pub fn set_description(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "version")] pub fn get_version(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "version")] pub fn set_version(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `x-cdm-codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-codecs")] pub fn get_x_cdm_codecs(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "x-cdm-codecs")] pub fn set_x_cdm_codecs(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `x-cdm-host-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-host-versions")] pub fn get_x_cdm_host_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-host-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "x-cdm-host-versions")] pub fn set_x_cdm_host_versions(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `x-cdm-interface-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-interface-versions")] pub fn get_x_cdm_interface_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-interface-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "x-cdm-interface-versions")] pub fn set_x_cdm_interface_versions(this: &WidevineCdmManifest, val: &str); #[doc = "Get the `x-cdm-module-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-module-versions")] pub fn get_x_cdm_module_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-module-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, setter = "x-cdm-module-versions")] pub fn set_x_cdm_module_versions(this: &WidevineCdmManifest, val: &str); } 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.set_description(description); ret.set_name(name); ret.set_version(version); ret.set_x_cdm_codecs(x_cdm_codecs); ret.set_x_cdm_host_versions(x_cdm_host_versions); ret.set_x_cdm_interface_versions(x_cdm_interface_versions); ret.set_x_cdm_module_versions(x_cdm_module_versions); ret } #[deprecated = "Use `set_description()` instead."] pub fn description(&mut self, val: &str) -> &mut Self { self.set_description(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[deprecated = "Use `set_version()` instead."] pub fn version(&mut self, val: &str) -> &mut Self { self.set_version(val); self } #[deprecated = "Use `set_x_cdm_codecs()` instead."] pub fn x_cdm_codecs(&mut self, val: &str) -> &mut Self { self.set_x_cdm_codecs(val); self } #[deprecated = "Use `set_x_cdm_host_versions()` instead."] pub fn x_cdm_host_versions(&mut self, val: &str) -> &mut Self { self.set_x_cdm_host_versions(val); self } #[deprecated = "Use `set_x_cdm_interface_versions()` instead."] pub fn x_cdm_interface_versions(&mut self, val: &str) -> &mut Self { self.set_x_cdm_interface_versions(val); self } #[deprecated = "Use `set_x_cdm_module_versions()` instead."] pub fn x_cdm_module_versions(&mut self, val: &str) -> &mut Self { self.set_x_cdm_module_versions(val); self } } web-sys-0.3.81/src/features/gen_Window.rs000064400000000000000000006536651046102023000164060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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; #[cfg(feature = "VisualViewport")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = visualViewport)] #[doc = "Getter for the `visualViewport` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/visualViewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VisualViewport`, `Window`*"] pub fn visual_viewport(this: &Window) -> Option; # [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; # [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 = onbeforetoggle)] #[doc = "Getter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforetoggle(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforetoggle)] #[doc = "Setter for the `onbeforetoggle` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforetoggle)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforetoggle(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 = onbeforeinput)] #[doc = "Getter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn onbeforeinput(this: &Window) -> Option<::js_sys::Function>; # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = onbeforeinput)] #[doc = "Setter for the `onbeforeinput` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeinput)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn set_onbeforeinput(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(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ongamepadconnected)] #[doc = "Getter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepadconnected(this: &Window) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ongamepadconnected)] #[doc = "Setter for the `ongamepadconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongamepadconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepadconnected(this: &Window, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = ongamepaddisconnected)] #[doc = "Getter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ongamepaddisconnected(this: &Window) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "Window" , js_name = ongamepaddisconnected)] #[doc = "Setter for the `ongamepaddisconnected` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongamepaddisconnected)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ongamepaddisconnected(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>; #[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 = "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 = 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) -> ::alloc::string::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 = "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(web_sys_unstable_apis)] #[cfg(feature = "Scheduler")] # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = scheduler)] #[doc = "Getter for the `scheduler` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scheduler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn scheduler(this: &Window) -> Scheduler; #[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 (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>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = queryLocalFonts)] #[doc = "The `queryLocalFonts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn query_local_fonts(this: &Window) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "QueryOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = queryLocalFonts)] #[doc = "The `queryLocalFonts()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/queryLocalFonts)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueryOptions`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn query_local_fonts_with_options( this: &Window, options: &QueryOptions, ) -> Result<::js_sys::Promise, 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 = 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); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showDirectoryPicker)] #[doc = "The `showDirectoryPicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showDirectoryPicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_directory_picker(this: &Window) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DirectoryPickerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showDirectoryPicker)] #[doc = "The `showDirectoryPicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showDirectoryPicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DirectoryPickerOptions`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_directory_picker_with_options( this: &Window, options: &DirectoryPickerOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showOpenFilePicker)] #[doc = "The `showOpenFilePicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_open_file_picker(this: &Window) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "OpenFilePickerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showOpenFilePicker)] #[doc = "The `showOpenFilePicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_open_file_picker_with_options( this: &Window, options: &OpenFilePickerOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showSaveFilePicker)] #[doc = "The `showSaveFilePicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_save_file_picker(this: &Window) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "SaveFilePickerOptions")] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = showSaveFilePicker)] #[doc = "The `showSaveFilePicker()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SaveFilePickerOptions`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn show_save_file_picker_with_options( this: &Window, options: &SaveFilePickerOptions, ) -> Result<::js_sys::Promise, JsValue>; # [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. As in the literal Javascript `this[key]`."] #[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 = 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 (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 = 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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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 = "SvgImageElement")] # [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: `SvgImageElement`, `Window`*"] pub fn create_image_bitmap_with_svg_image_element( this: &Window, a_image: &SvgImageElement, ) -> 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 = "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 = "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>; #[cfg(feature = "OffscreenCanvas")] # [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: `OffscreenCanvas`, `Window`*"] pub fn create_image_bitmap_with_offscreen_canvas( this: &Window, a_image: &OffscreenCanvas, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame( this: &Window, a_image: &VideoFrame, ) -> 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(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_image_element_and_image_bitmap_options( this: &Window, a_image: &HtmlImageElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))] # [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: `ImageBitmapOptions`, `SvgImageElement`, `Window`*"] pub fn create_image_bitmap_with_svg_image_element_and_image_bitmap_options( this: &Window, a_image: &SvgImageElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_canvas_element_and_image_bitmap_options( this: &Window, a_image: &HtmlCanvasElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_video_element_and_image_bitmap_options( this: &Window, a_image: &HtmlVideoElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_image_bitmap_and_image_bitmap_options( this: &Window, a_image: &ImageBitmap, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))] # [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: `ImageBitmapOptions`, `OffscreenCanvas`, `Window`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_image_bitmap_options( this: &Window, a_image: &OffscreenCanvas, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))] # [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: `ImageBitmapOptions`, `VideoFrame`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_image_bitmap_options( this: &Window, a_image: &VideoFrame, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_blob_and_image_bitmap_options( this: &Window, a_image: &Blob, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", 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: `ImageBitmapOptions`, `ImageData`, `Window`*"] pub fn create_image_bitmap_with_image_data_and_image_bitmap_options( this: &Window, a_image: &ImageData, a_options: &ImageBitmapOptions, ) -> 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 = "SvgImageElement")] # [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: `SvgImageElement`, `Window`*"] pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &SvgImageElement, 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 = "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 = "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>; #[cfg(feature = "OffscreenCanvas")] # [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: `OffscreenCanvas`, `Window`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &OffscreenCanvas, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &Window, a_image: &VideoFrame, 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(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &HtmlImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))] # [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: `ImageBitmapOptions`, `SvgImageElement`, `Window`*"] pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &SvgImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &HtmlCanvasElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &HtmlVideoElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &ImageBitmap, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))] # [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: `ImageBitmapOptions`, `OffscreenCanvas`, `Window`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &OffscreenCanvas, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))] # [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: `ImageBitmapOptions`, `VideoFrame`, `Window`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &VideoFrame, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `Window`*"] pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &Blob, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", 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: `ImageBitmapOptions`, `ImageData`, `Window`*"] pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &Window, a_image: &ImageData, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> 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 (method , structural , js_class = "Window" , js_name = queueMicrotask)] #[doc = "The `queueMicrotask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/queueMicrotask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] pub fn queue_microtask(this: &Window, callback: &::js_sys::Function); # [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; } web-sys-0.3.81/src/features/gen_WindowClient.rs000064400000000000000000000046771046102023000175360ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_Worker.rs000064400000000000000000000130471046102023000163700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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); } web-sys-0.3.81/src/features/gen_WorkerDebuggerGlobalScope.rs000064400000000000000000000206401046102023000221450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_WorkerGlobalScope.rs000064400000000000000000002241641046102023000205070ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[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 = "Performance")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , 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/WorkerGlobalScope/performance)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Performance`, `WorkerGlobalScope`*"] pub fn performance(this: &WorkerGlobalScope) -> Option; # [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) -> ::alloc::string::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 = "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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Scheduler")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = scheduler)] #[doc = "Getter for the `scheduler` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/scheduler)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `WorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn scheduler(this: &WorkerGlobalScope) -> Scheduler; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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 = "SvgImageElement")] # [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: `SvgImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_svg_image_element( this: &WorkerGlobalScope, a_image: &SvgImageElement, ) -> 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 = "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 = "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>; #[cfg(feature = "OffscreenCanvas")] # [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: `OffscreenCanvas`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_offscreen_canvas( this: &WorkerGlobalScope, a_image: &OffscreenCanvas, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame( this: &WorkerGlobalScope, a_image: &VideoFrame, ) -> 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(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_image_element_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &HtmlImageElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))] # [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: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_svg_image_element_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &SvgImageElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_canvas_element_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &HtmlCanvasElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_video_element_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &HtmlVideoElement, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_bitmap_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &ImageBitmap, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))] # [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: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &OffscreenCanvas, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))] # [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: `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &VideoFrame, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_blob_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &Blob, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", 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: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_data_and_image_bitmap_options( this: &WorkerGlobalScope, a_image: &ImageData, a_options: &ImageBitmapOptions, ) -> 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 = "SvgImageElement")] # [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: `SvgImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &SvgImageElement, 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 = "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 = "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>; #[cfg(feature = "OffscreenCanvas")] # [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: `OffscreenCanvas`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &OffscreenCanvas, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "VideoFrame")] # [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: `VideoFrame`, `WorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh( this: &WorkerGlobalScope, a_image: &VideoFrame, 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(all(feature = "HtmlImageElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &HtmlImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "SvgImageElement",))] # [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: `ImageBitmapOptions`, `SvgImageElement`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_svg_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &SvgImageElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlCanvasElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &HtmlCanvasElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "HtmlVideoElement", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &HtmlVideoElement, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmap", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &ImageBitmap, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", feature = "OffscreenCanvas",))] # [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: `ImageBitmapOptions`, `OffscreenCanvas`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_offscreen_canvas_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &OffscreenCanvas, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "ImageBitmapOptions", feature = "VideoFrame",))] # [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: `ImageBitmapOptions`, `VideoFrame`, `WorkerGlobalScope`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn create_image_bitmap_with_video_frame_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &VideoFrame, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "Blob", feature = "ImageBitmapOptions",))] # [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`, `ImageBitmapOptions`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &Blob, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> Result<::js_sys::Promise, JsValue>; #[cfg(all(feature = "ImageBitmapOptions", 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: `ImageBitmapOptions`, `ImageData`, `WorkerGlobalScope`*"] pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh_and_a_options( this: &WorkerGlobalScope, a_image: &ImageData, a_sx: i32, a_sy: i32, a_sw: i32, a_sh: i32, a_options: &ImageBitmapOptions, ) -> 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 (method , structural , js_class = "WorkerGlobalScope" , js_name = queueMicrotask)] #[doc = "The `queueMicrotask()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/queueMicrotask)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] pub fn queue_microtask(this: &WorkerGlobalScope, callback: &::js_sys::Function); # [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; } web-sys-0.3.81/src/features/gen_WorkerLocation.rs000064400000000000000000000112661046102023000200620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::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) -> ::alloc::string::String; } web-sys-0.3.81/src/features/gen_WorkerNavigator.rs000064400000000000000000000277741046102023000202570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = "Serial")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = serial)] #[doc = "Getter for the `serial` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/serial)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Serial`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn serial(this: &WorkerNavigator) -> Serial; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Usb")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = usb)] #[doc = "Getter for the `usb` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/usb)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Usb`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn usb(this: &WorkerNavigator) -> Usb; # [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; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = deviceMemory)] #[doc = "Getter for the `deviceMemory` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/deviceMemory)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn device_memory(this: &WorkerNavigator) -> f64; #[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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gpu(this: &WorkerNavigator) -> Gpu; # [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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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<::alloc::string::String, JsValue>; # [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) -> ::alloc::string::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<::alloc::string::String>; # [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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockManager")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = locks)] #[doc = "Getter for the `locks` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/locks)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LockManager`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn locks(this: &WorkerNavigator) -> LockManager; # [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; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "NavigatorUaData")] # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = userAgentData)] #[doc = "Getter for the `userAgentData` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/userAgentData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NavigatorUaData`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn user_agent_data(this: &WorkerNavigator) -> NavigatorUaData; # [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; } web-sys-0.3.81/src/features/gen_WorkerOptions.rs000064400000000000000000000064561046102023000177520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "RequestCredentials")] #[doc = "Get the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `WorkerOptions`*"] #[wasm_bindgen(method, getter = "credentials")] pub fn get_credentials(this: &WorkerOptions) -> Option; #[cfg(feature = "RequestCredentials")] #[doc = "Change the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `WorkerOptions`*"] #[wasm_bindgen(method, setter = "credentials")] pub fn set_credentials(this: &WorkerOptions, val: RequestCredentials); #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &WorkerOptions) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &WorkerOptions, val: &str); #[cfg(feature = "WorkerType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`, `WorkerType`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &WorkerOptions) -> Option; #[cfg(feature = "WorkerType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`, `WorkerType`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &WorkerOptions, val: WorkerType); } 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 } #[cfg(feature = "RequestCredentials")] #[deprecated = "Use `set_credentials()` instead."] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { self.set_credentials(val); self } #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: &str) -> &mut Self { self.set_name(val); self } #[cfg(feature = "WorkerType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: WorkerType) -> &mut Self { self.set_type(val); self } } impl Default for WorkerOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WorkerType.rs000064400000000000000000000005341046102023000172270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `WorkerType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WorkerType { Classic = "classic", Module = "module", } web-sys-0.3.81/src/features/gen_Worklet.rs000064400000000000000000000030631046102023000165430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>; } web-sys-0.3.81/src/features/gen_WorkletGlobalScope.rs000064400000000000000000000011421046102023000206520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_WorkletOptions.rs000064400000000000000000000034671046102023000201270ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[cfg(feature = "RequestCredentials")] #[doc = "Get the `credentials` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `WorkletOptions`*"] #[wasm_bindgen(method, getter = "credentials")] pub fn get_credentials(this: &WorkletOptions) -> Option; #[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`*"] #[wasm_bindgen(method, setter = "credentials")] pub fn set_credentials(this: &WorkletOptions, val: RequestCredentials); } 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")] #[deprecated = "Use `set_credentials()` instead."] pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { self.set_credentials(val); self } } impl Default for WorkletOptions { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_WritableStream.rs000064400000000000000000000107661046102023000200510ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStream , typescript_type = "WritableStream")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WritableStream` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub type WritableStream; # [wasm_bindgen (structural , method , getter , js_class = "WritableStream" , js_name = locked)] #[doc = "Getter for the `locked` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/locked)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn locked(this: &WritableStream) -> bool; #[wasm_bindgen(catch, constructor, js_class = "WritableStream")] #[doc = "The `new WritableStream(..)` constructor, creating a new instance of `WritableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/WritableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn new() -> Result; #[wasm_bindgen(catch, constructor, js_class = "WritableStream")] #[doc = "The `new WritableStream(..)` constructor, creating a new instance of `WritableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/WritableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn new_with_underlying_sink( underlying_sink: &::js_sys::Object, ) -> Result; #[cfg(feature = "QueuingStrategy")] #[wasm_bindgen(catch, constructor, js_class = "WritableStream")] #[doc = "The `new WritableStream(..)` constructor, creating a new instance of `WritableStream`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/WritableStream)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `QueuingStrategy`, `WritableStream`*"] pub fn new_with_underlying_sink_and_strategy( underlying_sink: &::js_sys::Object, strategy: &QueuingStrategy, ) -> Result; # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn abort(this: &WritableStream) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn abort_with_reason( this: &WritableStream, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStream" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`*"] pub fn close(this: &WritableStream) -> ::js_sys::Promise; #[cfg(feature = "WritableStreamDefaultWriter")] # [wasm_bindgen (catch , method , structural , js_class = "WritableStream" , js_name = getWriter)] #[doc = "The `getWriter()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream/getWriter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`, `WritableStreamDefaultWriter`*"] pub fn get_writer(this: &WritableStream) -> Result; } web-sys-0.3.81/src/features/gen_WritableStreamDefaultController.rs000064400000000000000000000043051046102023000234120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStreamDefaultController , typescript_type = "WritableStreamDefaultController")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WritableStreamDefaultController` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"] pub type WritableStreamDefaultController; #[cfg(feature = "AbortSignal")] # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultController" , 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/WritableStreamDefaultController/signal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `WritableStreamDefaultController`*"] pub fn signal(this: &WritableStreamDefaultController) -> AbortSignal; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"] pub fn error(this: &WritableStreamDefaultController); # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultController" , js_name = error)] #[doc = "The `error()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultController/error)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultController`*"] pub fn error_with_e(this: &WritableStreamDefaultController, e: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_WritableStreamDefaultWriter.rs000064400000000000000000000134021046102023000225410ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStreamDefaultWriter , typescript_type = "WritableStreamDefaultWriter")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WritableStreamDefaultWriter` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub type WritableStreamDefaultWriter; # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , 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/WritableStreamDefaultWriter/closed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn closed(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; # [wasm_bindgen (structural , catch , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = desiredSize)] #[doc = "Getter for the `desiredSize` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/desiredSize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn desired_size(this: &WritableStreamDefaultWriter) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , 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/WritableStreamDefaultWriter/ready)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn ready(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; #[cfg(feature = "WritableStream")] #[wasm_bindgen(catch, constructor, js_class = "WritableStreamDefaultWriter")] #[doc = "The `new WritableStreamDefaultWriter(..)` constructor, creating a new instance of `WritableStreamDefaultWriter`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/WritableStreamDefaultWriter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStream`, `WritableStreamDefaultWriter`*"] pub fn new(stream: &WritableStream) -> Result; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn abort(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] #[doc = "The `abort()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn abort_with_reason( this: &WritableStreamDefaultWriter, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = close)] #[doc = "The `close()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/close)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn close(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = releaseLock)] #[doc = "The `releaseLock()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/releaseLock)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn release_lock(this: &WritableStreamDefaultWriter); # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn write(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] #[doc = "The `write()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] pub fn write_with_chunk( this: &WritableStreamDefaultWriter, chunk: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_WriteCommandType.rs000064400000000000000000000006011046102023000203420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[wasm_bindgen] #[doc = "The `WriteCommandType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteCommandType`*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum WriteCommandType { Write = "write", Seek = "seek", Truncate = "truncate", } web-sys-0.3.81/src/features/gen_WriteParams.rs000064400000000000000000000075471046102023000173650ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WriteParams)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `WriteParams` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] pub type WriteParams; #[doc = "Get the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, getter = "data")] pub fn get_data(this: &WriteParams) -> ::wasm_bindgen::JsValue; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, setter = "data")] pub fn set_data(this: &WriteParams, val: &::wasm_bindgen::JsValue); #[doc = "Get the `position` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, getter = "position")] pub fn get_position(this: &WriteParams) -> Option; #[doc = "Change the `position` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, setter = "position")] pub fn set_position(this: &WriteParams, val: Option); #[doc = "Get the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, getter = "size")] pub fn get_size(this: &WriteParams) -> Option; #[doc = "Change the `size` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteParams`*"] #[wasm_bindgen(method, setter = "size")] pub fn set_size(this: &WriteParams, val: Option); #[cfg(feature = "WriteCommandType")] #[doc = "Get the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteCommandType`, `WriteParams`*"] #[wasm_bindgen(method, getter = "type")] pub fn get_type(this: &WriteParams) -> WriteCommandType; #[cfg(feature = "WriteCommandType")] #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteCommandType`, `WriteParams`*"] #[wasm_bindgen(method, setter = "type")] pub fn set_type(this: &WriteParams, val: WriteCommandType); } impl WriteParams { #[cfg(feature = "WriteCommandType")] #[doc = "Construct a new `WriteParams`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WriteCommandType`, `WriteParams`*"] pub fn new(type_: WriteCommandType) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_type(type_); ret } #[deprecated = "Use `set_data()` instead."] pub fn data(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_data(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } #[deprecated = "Use `set_position()` instead."] pub fn position(&mut self, val: Option) -> &mut Self { self.set_position(val); self } #[deprecated = "Use `set_size()` instead."] pub fn size(&mut self, val: Option) -> &mut Self { self.set_size(val); self } #[cfg(feature = "WriteCommandType")] #[deprecated = "Use `set_type()` instead."] pub fn type_(&mut self, val: WriteCommandType) -> &mut Self { self.set_type(val); self } } web-sys-0.3.81/src/features/gen_XPathExpression.rs000064400000000000000000000046171046102023000202260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_XPathNsResolver.rs000064400000000000000000000033411046102023000201620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; #[doc = "Get the `lookupNamespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] #[wasm_bindgen(method, getter = "lookupNamespaceURI")] pub fn get_lookup_namespace_uri(this: &XPathNsResolver) -> Option<::js_sys::Function>; #[doc = "Change the `lookupNamespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] #[wasm_bindgen(method, setter = "lookupNamespaceURI")] pub fn set_lookup_namespace_uri(this: &XPathNsResolver, val: &::js_sys::Function); } 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 } #[deprecated = "Use `set_lookup_namespace_uri()` instead."] pub fn lookup_namespace_uri(&mut self, val: &::js_sys::Function) -> &mut Self { self.set_lookup_namespace_uri(val); self } } impl Default for XPathNsResolver { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_XPathResult.rs000064400000000000000000000162251046102023000173430ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; # [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; } web-sys-0.3.81/src/features/gen_XmlDocument.rs000064400000000000000000000036241046102023000173560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_XmlHttpRequest.rs000064400000000000000000000503551046102023000200730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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<::alloc::string::String, JsValue>; #[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<::alloc::string::String, JsValue>; # [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>; # [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_js_u8_array( this: &XmlHttpRequest, body: Option<&::js_sys::Uint8Array>, ) -> 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; } web-sys-0.3.81/src/features/gen_XmlHttpRequestEventTarget.rs000064400000000000000000000176341046102023000222470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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>); } web-sys-0.3.81/src/features/gen_XmlHttpRequestResponseType.rs000064400000000000000000000007401046102023000224450ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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", } web-sys-0.3.81/src/features/gen_XmlHttpRequestUpload.rs000064400000000000000000000012541046102023000212320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_XmlSerializer.rs000064400000000000000000000031221046102023000177020ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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<::alloc::string::String, JsValue>; } web-sys-0.3.81/src/features/gen_XrBoundedReferenceSpace.rs000064400000000000000000000034021046102023000215760ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrReferenceSpace , extends = XrSpace , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRBoundedReferenceSpace , typescript_type = "XRBoundedReferenceSpace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrBoundedReferenceSpace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRBoundedReferenceSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrBoundedReferenceSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrBoundedReferenceSpace; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRBoundedReferenceSpace" , js_name = boundsGeometry)] #[doc = "Getter for the `boundsGeometry` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRBoundedReferenceSpace/boundsGeometry)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrBoundedReferenceSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn bounds_geometry(this: &XrBoundedReferenceSpace) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_XrEye.rs000064400000000000000000000011361046102023000161470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrEye` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrEye`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrEye { None = "none", Left = "left", Right = "right", } web-sys-0.3.81/src/features/gen_XrFrame.rs000064400000000000000000000202701046102023000164570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRFrame , typescript_type = "XRFrame")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrFrame` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = session)] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/session)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrFrame) -> XrSession; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = predictedDisplayTime)] #[doc = "Getter for the `predictedDisplayTime` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/predictedDisplayTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn predicted_display_time(this: &XrFrame) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)] #[doc = "The `fillJointRadii()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fill_joint_radii_with_f32_slice( this: &XrFrame, joint_spaces: &::wasm_bindgen::JsValue, radii: &mut [f32], ) -> Result; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)] #[doc = "The `fillJointRadii()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fill_joint_radii_with_f32_array( this: &XrFrame, joint_spaces: &::wasm_bindgen::JsValue, radii: &::js_sys::Float32Array, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)] #[doc = "The `fillPoses()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fill_poses_with_f32_slice( this: &XrFrame, spaces: &::wasm_bindgen::JsValue, base_space: &XrSpace, transforms: &mut [f32], ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)] #[doc = "The `fillPoses()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fill_poses_with_f32_array( this: &XrFrame, spaces: &::wasm_bindgen::JsValue, base_space: &XrSpace, transforms: &::js_sys::Float32Array, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrJointPose", feature = "XrJointSpace", feature = "XrSpace",))] # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getJointPose)] #[doc = "The `getJointPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getJointPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrJointPose`, `XrJointSpace`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_joint_pose( this: &XrFrame, joint: &XrJointSpace, base_space: &XrSpace, ) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrPose", feature = "XrSpace",))] # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getPose)] #[doc = "The `getPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrPose`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_pose(this: &XrFrame, space: &XrSpace, base_space: &XrSpace) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrReferenceSpace", feature = "XrViewerPose",))] # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getViewerPose)] #[doc = "The `getViewerPose()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getViewerPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrReferenceSpace`, `XrViewerPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_viewer_pose( this: &XrFrame, reference_space: &XrReferenceSpace, ) -> Option; } web-sys-0.3.81/src/features/gen_XrHand.rs000064400000000000000000000116371046102023000163060ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRHand , typescript_type = "XRHand")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrHand` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrHand; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRHand" , 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/XRHand/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn size(this: &XrHand) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRHand" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &XrHand) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "XRHand" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each(this: &XrHand, callback: &::js_sys::Function) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrHandJoint", feature = "XrJointSpace",))] # [wasm_bindgen (method , structural , js_class = "XRHand" , js_name = get)] #[doc = "The `get()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrHandJoint`, `XrJointSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &XrHand, key: XrHandJoint) -> XrJointSpace; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRHand" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &XrHand) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRHand" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &XrHand) -> ::js_sys::Iterator; } web-sys-0.3.81/src/features/gen_XrHandJoint.rs000064400000000000000000000036361046102023000173120ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrHandJoint` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHandJoint`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrHandJoint { Wrist = "wrist", ThumbMetacarpal = "thumb-metacarpal", ThumbPhalanxProximal = "thumb-phalanx-proximal", ThumbPhalanxDistal = "thumb-phalanx-distal", ThumbTip = "thumb-tip", IndexFingerMetacarpal = "index-finger-metacarpal", IndexFingerPhalanxProximal = "index-finger-phalanx-proximal", IndexFingerPhalanxIntermediate = "index-finger-phalanx-intermediate", IndexFingerPhalanxDistal = "index-finger-phalanx-distal", IndexFingerTip = "index-finger-tip", MiddleFingerMetacarpal = "middle-finger-metacarpal", MiddleFingerPhalanxProximal = "middle-finger-phalanx-proximal", MiddleFingerPhalanxIntermediate = "middle-finger-phalanx-intermediate", MiddleFingerPhalanxDistal = "middle-finger-phalanx-distal", MiddleFingerTip = "middle-finger-tip", RingFingerMetacarpal = "ring-finger-metacarpal", RingFingerPhalanxProximal = "ring-finger-phalanx-proximal", RingFingerPhalanxIntermediate = "ring-finger-phalanx-intermediate", RingFingerPhalanxDistal = "ring-finger-phalanx-distal", RingFingerTip = "ring-finger-tip", PinkyFingerMetacarpal = "pinky-finger-metacarpal", PinkyFingerPhalanxProximal = "pinky-finger-phalanx-proximal", PinkyFingerPhalanxIntermediate = "pinky-finger-phalanx-intermediate", PinkyFingerPhalanxDistal = "pinky-finger-phalanx-distal", PinkyFingerTip = "pinky-finger-tip", } web-sys-0.3.81/src/features/gen_XrHandedness.rs000064400000000000000000000011631046102023000175010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrHandedness` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHandedness`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrHandedness { None = "none", Left = "left", Right = "right", } web-sys-0.3.81/src/features/gen_XrInputSource.rs000064400000000000000000000143271046102023000177130ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSource , typescript_type = "XRInputSource")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSource` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSource; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrHandedness")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = handedness)] #[doc = "Getter for the `handedness` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/handedness)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHandedness`, `XrInputSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn handedness(this: &XrInputSource) -> XrHandedness; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrTargetRayMode")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRayMode)] #[doc = "Getter for the `targetRayMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRayMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrTargetRayMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn target_ray_mode(this: &XrInputSource) -> XrTargetRayMode; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRaySpace)] #[doc = "Getter for the `targetRaySpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRaySpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn target_ray_space(this: &XrInputSource) -> XrSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSpace")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = gripSpace)] #[doc = "Getter for the `gripSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/gripSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn grip_space(this: &XrInputSource) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = profiles)] #[doc = "Getter for the `profiles` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/profiles)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn profiles(this: &XrInputSource) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "Gamepad")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , 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/XRInputSource/gamepad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `XrInputSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn gamepad(this: &XrInputSource) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrHand")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , 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/XRInputSource/hand)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrInputSource`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn hand(this: &XrInputSource) -> Option; } web-sys-0.3.81/src/features/gen_XrInputSourceArray.rs000064400000000000000000000123051046102023000207040ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourceArray , typescript_type = "XRInputSourceArray")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceArray` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourceArray; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceArray" , 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/XRInputSourceArray/length)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn length(this: &XrInputSourceArray) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = entries)] #[doc = "The `entries()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/entries)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn entries(this: &XrInputSourceArray) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "XRInputSourceArray" , js_name = forEach)] #[doc = "The `forEach()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/forEach)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn for_each( this: &XrInputSourceArray, callback: &::js_sys::Function, ) -> Result<(), JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/keys)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn keys(this: &XrInputSourceArray) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = values)] #[doc = "The `values()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/values)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn values(this: &XrInputSourceArray) -> ::js_sys::Iterator; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] #[wasm_bindgen(method, structural, js_class = "XRInputSourceArray", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get(this: &XrInputSourceArray, index: u32) -> Option; } web-sys-0.3.81/src/features/gen_XrInputSourceEvent.rs000064400000000000000000000065571046102023000207230ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRInputSourceEvent , typescript_type = "XRInputSourceEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourceEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrFrame")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceEvent" , 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/XRInputSourceEvent/frame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrInputSourceEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame(this: &XrInputSourceEvent) -> XrFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceEvent" , js_name = inputSource)] #[doc = "Getter for the `inputSource` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceEvent/inputSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_source(this: &XrInputSourceEvent) -> XrInputSource; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSourceEventInit")] #[wasm_bindgen(catch, constructor, js_class = "XRInputSourceEvent")] #[doc = "The `new XrInputSourceEvent(..)` constructor, creating a new instance of `XrInputSourceEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceEvent/XRInputSourceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEvent`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &XrInputSourceEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_XrInputSourceEventInit.rs000064400000000000000000000207021046102023000215330ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourceEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourceEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourceEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &XrInputSourceEventInit) -> Option; #[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: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &XrInputSourceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &XrInputSourceEventInit) -> Option; #[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: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &XrInputSourceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &XrInputSourceEventInit) -> Option; #[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: `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &XrInputSourceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrFrame")] #[doc = "Get the `frame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "frame")] pub fn get_frame(this: &XrInputSourceEventInit) -> XrFrame; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrFrame")] #[doc = "Change the `frame` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "frame")] pub fn set_frame(this: &XrInputSourceEventInit, val: &XrFrame); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] #[doc = "Get the `inputSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "inputSource")] pub fn get_input_source(this: &XrInputSourceEventInit) -> XrInputSource; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] #[doc = "Change the `inputSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "inputSource")] pub fn set_input_source(this: &XrInputSourceEventInit, val: &XrInputSource); } #[cfg(web_sys_unstable_apis)] impl XrInputSourceEventInit { #[cfg(all(feature = "XrFrame", feature = "XrInputSource",))] #[doc = "Construct a new `XrInputSourceEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrInputSource`, `XrInputSourceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(frame: &XrFrame, input_source: &XrInputSource) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_frame(frame); ret.set_input_source(input_source); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrFrame")] #[deprecated = "Use `set_frame()` instead."] pub fn frame(&mut self, val: &XrFrame) -> &mut Self { self.set_frame(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSource")] #[deprecated = "Use `set_input_source()` instead."] pub fn input_source(&mut self, val: &XrInputSource) -> &mut Self { self.set_input_source(val); self } } web-sys-0.3.81/src/features/gen_XrInputSourcesChangeEvent.rs000064400000000000000000000103511046102023000221770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRInputSourcesChangeEvent , typescript_type = "XRInputSourcesChangeEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourcesChangeEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourcesChangeEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = session)] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/session)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrInputSourcesChangeEvent) -> XrSession; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = added)] #[doc = "Getter for the `added` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/added)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn added(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourcesChangeEvent" , js_name = removed)] #[doc = "Getter for the `removed` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/removed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn removed(this: &XrInputSourcesChangeEvent) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSourcesChangeEventInit")] #[wasm_bindgen(catch, constructor, js_class = "XRInputSourcesChangeEvent")] #[doc = "The `new XrInputSourcesChangeEvent(..)` constructor, creating a new instance of `XrInputSourcesChangeEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourcesChangeEvent/XRInputSourcesChangeEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEvent`, `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &XrInputSourcesChangeEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_XrInputSourcesChangeEventInit.rs000064400000000000000000000236331046102023000230320ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourcesChangeEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrInputSourcesChangeEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrInputSourcesChangeEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &XrInputSourcesChangeEventInit) -> Option; #[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: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &XrInputSourcesChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &XrInputSourcesChangeEventInit) -> Option; #[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: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &XrInputSourcesChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &XrInputSourcesChangeEventInit) -> Option; #[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: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &XrInputSourcesChangeEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `added` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "added")] pub fn get_added(this: &XrInputSourcesChangeEventInit) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `added` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "added")] pub fn set_added(this: &XrInputSourcesChangeEventInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `removed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "removed")] pub fn get_removed(this: &XrInputSourcesChangeEventInit) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `removed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "removed")] pub fn set_removed(this: &XrInputSourcesChangeEventInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[doc = "Get the `session` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "session")] pub fn get_session(this: &XrInputSourcesChangeEventInit) -> XrSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[doc = "Change the `session` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "session")] pub fn set_session(this: &XrInputSourcesChangeEventInit, val: &XrSession); } #[cfg(web_sys_unstable_apis)] impl XrInputSourcesChangeEventInit { #[cfg(feature = "XrSession")] #[doc = "Construct a new `XrInputSourcesChangeEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourcesChangeEventInit`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( added: &::wasm_bindgen::JsValue, removed: &::wasm_bindgen::JsValue, session: &XrSession, ) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_added(added); ret.set_removed(removed); ret.set_session(session); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_added()` instead."] pub fn added(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_added(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_removed()` instead."] pub fn removed(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_removed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[deprecated = "Use `set_session()` instead."] pub fn session(&mut self, val: &XrSession) -> &mut Self { self.set_session(val); self } } web-sys-0.3.81/src/features/gen_XrJointPose.rs000064400000000000000000000030471046102023000173420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrPose , extends = :: js_sys :: Object , js_name = XRJointPose , typescript_type = "XRJointPose")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrJointPose` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRJointPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrJointPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrJointPose; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRJointPose" , js_name = radius)] #[doc = "Getter for the `radius` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRJointPose/radius)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrJointPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn radius(this: &XrJointPose) -> f32; } web-sys-0.3.81/src/features/gen_XrJointSpace.rs000064400000000000000000000032221046102023000174620ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrSpace , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRJointSpace , typescript_type = "XRJointSpace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrJointSpace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRJointSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrJointSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrJointSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrHandJoint")] # [wasm_bindgen (structural , method , getter , js_class = "XRJointSpace" , js_name = jointName)] #[doc = "Getter for the `jointName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRJointSpace/jointName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrHandJoint`, `XrJointSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn joint_name(this: &XrJointSpace) -> XrHandJoint; } web-sys-0.3.81/src/features/gen_XrLayer.rs000064400000000000000000000015121046102023000164770ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRLayer , typescript_type = "XRLayer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrLayer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrLayer; } web-sys-0.3.81/src/features/gen_XrPermissionDescriptor.rs000064400000000000000000000163731046102023000216250ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &XrPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &XrPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`, `XrSessionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &XrPermissionDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`, `XrSessionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &XrPermissionDescriptor, val: XrSessionMode); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `optionalFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "optionalFeatures")] pub fn get_optional_features(this: &XrPermissionDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `optionalFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "optionalFeatures")] pub fn set_optional_features(this: &XrPermissionDescriptor, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requiredFeatures")] pub fn get_required_features(this: &XrPermissionDescriptor) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requiredFeatures")] pub fn set_required_features(this: &XrPermissionDescriptor, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl XrPermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `XrPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: XrSessionMode) -> &mut Self { self.set_mode(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_optional_features()` instead."] pub fn optional_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_optional_features(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_required_features()` instead."] pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_required_features(val); self } } web-sys-0.3.81/src/features/gen_XrPermissionStatus.rs000064400000000000000000000046471046102023000207730ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = PermissionStatus , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRPermissionStatus , typescript_type = "XRPermissionStatus")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPermissionStatus` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrPermissionStatus; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRPermissionStatus" , js_name = granted)] #[doc = "Getter for the `granted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn granted(this: &XrPermissionStatus) -> ::js_sys::Array; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRPermissionStatus" , js_name = granted)] #[doc = "Setter for the `granted` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPermissionStatus/granted)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPermissionStatus`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_granted(this: &XrPermissionStatus, value: &::wasm_bindgen::JsValue); } web-sys-0.3.81/src/features/gen_XrPose.rs000064400000000000000000000075561046102023000163470ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRPose , typescript_type = "XRPose")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrPose` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrPose; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , 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/XRPose/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPose`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrPose) -> XrRigidTransform; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , 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/XRPose/linearVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn linear_velocity(this: &XrPose) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , 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/XRPose/angularVelocity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn angular_velocity(this: &XrPose) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRPose" , js_name = emulatedPosition)] #[doc = "Getter for the `emulatedPosition` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRPose/emulatedPosition)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn emulated_position(this: &XrPose) -> bool; } web-sys-0.3.81/src/features/gen_XrReferenceSpace.rs000064400000000000000000000064301046102023000203010ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrSpace , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRReferenceSpace , typescript_type = "XRReferenceSpace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrReferenceSpace; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpace" , 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/XRReferenceSpace/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onreset(this: &XrReferenceSpace) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRReferenceSpace" , 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/XRReferenceSpace/onreset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onreset(this: &XrReferenceSpace, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] # [wasm_bindgen (method , structural , js_class = "XRReferenceSpace" , js_name = getOffsetReferenceSpace)] #[doc = "The `getOffsetReferenceSpace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/getOffsetReferenceSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_offset_reference_space( this: &XrReferenceSpace, origin_offset: &XrRigidTransform, ) -> XrReferenceSpace; } web-sys-0.3.81/src/features/gen_XrReferenceSpaceEvent.rs000064400000000000000000000067771046102023000213210ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRReferenceSpaceEvent , typescript_type = "XRReferenceSpaceEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpaceEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrReferenceSpaceEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpace")] # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpaceEvent" , js_name = referenceSpace)] #[doc = "Getter for the `referenceSpace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/referenceSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrReferenceSpaceEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn reference_space(this: &XrReferenceSpaceEvent) -> XrReferenceSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] # [wasm_bindgen (structural , method , getter , js_class = "XRReferenceSpaceEvent" , 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/XRReferenceSpaceEvent/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrReferenceSpaceEvent) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpaceEventInit")] #[wasm_bindgen(catch, constructor, js_class = "XRReferenceSpaceEvent")] #[doc = "The `new XrReferenceSpaceEvent(..)` constructor, creating a new instance of `XrReferenceSpaceEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/XRReferenceSpaceEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`, `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &XrReferenceSpaceEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_XrReferenceSpaceEventInit.rs000064400000000000000000000212071046102023000221260ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRReferenceSpaceEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrReferenceSpaceEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrReferenceSpaceEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &XrReferenceSpaceEventInit) -> Option; #[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: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &XrReferenceSpaceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &XrReferenceSpaceEventInit) -> Option; #[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: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &XrReferenceSpaceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &XrReferenceSpaceEventInit) -> Option; #[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: `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &XrReferenceSpaceEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpace")] #[doc = "Get the `referenceSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "referenceSpace")] pub fn get_reference_space(this: &XrReferenceSpaceEventInit) -> XrReferenceSpace; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpace")] #[doc = "Change the `referenceSpace` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "referenceSpace")] pub fn set_reference_space(this: &XrReferenceSpaceEventInit, val: &XrReferenceSpace); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] #[doc = "Get the `transform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "transform")] pub fn get_transform(this: &XrReferenceSpaceEventInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] #[doc = "Change the `transform` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEventInit`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "transform")] pub fn set_transform(this: &XrReferenceSpaceEventInit, val: Option<&XrRigidTransform>); } #[cfg(web_sys_unstable_apis)] impl XrReferenceSpaceEventInit { #[cfg(feature = "XrReferenceSpace")] #[doc = "Construct a new `XrReferenceSpaceEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrReferenceSpaceEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(reference_space: &XrReferenceSpace) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_reference_space(reference_space); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpace")] #[deprecated = "Use `set_reference_space()` instead."] pub fn reference_space(&mut self, val: &XrReferenceSpace) -> &mut Self { self.set_reference_space(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] #[deprecated = "Use `set_transform()` instead."] pub fn transform(&mut self, val: Option<&XrRigidTransform>) -> &mut Self { self.set_transform(val); self } } web-sys-0.3.81/src/features/gen_XrReferenceSpaceType.rs000064400000000000000000000013351046102023000211420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrReferenceSpaceType` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceType`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrReferenceSpaceType { Viewer = "viewer", Local = "local", LocalFloor = "local-floor", BoundedFloor = "bounded-floor", Unbounded = "unbounded", } web-sys-0.3.81/src/features/gen_XrRenderState.rs000064400000000000000000000075371046102023000176600ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRenderState , typescript_type = "XRRenderState")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRenderState` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrRenderState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , 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/XRRenderState/depthNear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_near(this: &XrRenderState) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , 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/XRRenderState/depthFar)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn depth_far(this: &XrRenderState) -> f64; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = inlineVerticalFieldOfView)] #[doc = "Getter for the `inlineVerticalFieldOfView` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/inlineVerticalFieldOfView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn inline_vertical_field_of_view(this: &XrRenderState) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrWebGlLayer")] # [wasm_bindgen (structural , method , getter , js_class = "XRRenderState" , js_name = baseLayer)] #[doc = "Getter for the `baseLayer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/baseLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn base_layer(this: &XrRenderState) -> Option; } web-sys-0.3.81/src/features/gen_XrRenderStateInit.rs000064400000000000000000000206021046102023000204700ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRenderStateInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRenderStateInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrRenderStateInit; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrWebGlLayer")] #[doc = "Get the `baseLayer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "baseLayer")] pub fn get_base_layer(this: &XrRenderStateInit) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrWebGlLayer")] #[doc = "Change the `baseLayer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "baseLayer")] pub fn set_base_layer(this: &XrRenderStateInit, val: Option<&XrWebGlLayer>); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthFar` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthFar")] pub fn get_depth_far(this: &XrRenderStateInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthFar` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthFar")] pub fn set_depth_far(this: &XrRenderStateInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depthNear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depthNear")] pub fn get_depth_near(this: &XrRenderStateInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `depthNear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depthNear")] pub fn set_depth_near(this: &XrRenderStateInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `inlineVerticalFieldOfView` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "inlineVerticalFieldOfView")] pub fn get_inline_vertical_field_of_view(this: &XrRenderStateInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `inlineVerticalFieldOfView` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "inlineVerticalFieldOfView")] pub fn set_inline_vertical_field_of_view(this: &XrRenderStateInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `layers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "layers")] pub fn get_layers(this: &XrRenderStateInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `layers` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "layers")] pub fn set_layers(this: &XrRenderStateInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl XrRenderStateInit { #[doc = "Construct a new `XrRenderStateInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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 = "XrWebGlLayer")] #[deprecated = "Use `set_base_layer()` instead."] pub fn base_layer(&mut self, val: Option<&XrWebGlLayer>) -> &mut Self { self.set_base_layer(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_far()` instead."] pub fn depth_far(&mut self, val: f64) -> &mut Self { self.set_depth_far(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth_near()` instead."] pub fn depth_near(&mut self, val: f64) -> &mut Self { self.set_depth_near(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_inline_vertical_field_of_view()` instead."] pub fn inline_vertical_field_of_view(&mut self, val: f64) -> &mut Self { self.set_inline_vertical_field_of_view(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_layers()` instead."] pub fn layers(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { self.set_layers(val.unwrap_or(&::wasm_bindgen::JsValue::NULL)); self } } #[cfg(web_sys_unstable_apis)] impl Default for XrRenderStateInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_XrRigidTransform.rs000064400000000000000000000146261046102023000203670ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRRigidTransform , typescript_type = "XRRigidTransform")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrRigidTransform` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrRigidTransform; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , 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/XRRigidTransform/position)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn position(this: &XrRigidTransform) -> DomPointReadOnly; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointReadOnly")] # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , 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/XRRigidTransform/orientation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn orientation(this: &XrRigidTransform) -> DomPointReadOnly; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , 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/XRRigidTransform/matrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn matrix(this: &XrRigidTransform) -> ::alloc::vec::Vec; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRRigidTransform" , js_name = inverse)] #[doc = "Getter for the `inverse` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/inverse)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn inverse(this: &XrRigidTransform) -> XrRigidTransform; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")] #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new() -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")] #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_position(position: &DomPointInit) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "DomPointInit")] #[wasm_bindgen(catch, constructor, js_class = "XRRigidTransform")] #[doc = "The `new XrRigidTransform(..)` constructor, creating a new instance of `XrRigidTransform`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRigidTransform/XRRigidTransform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `XrRigidTransform`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_position_and_orientation( position: &DomPointInit, orientation: &DomPointInit, ) -> Result; } web-sys-0.3.81/src/features/gen_XrSession.rs000064400000000000000000000614041046102023000170540ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRSession , typescript_type = "XRSession")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSession` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrVisibilityState")] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , 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/XRSession/visibilityState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrVisibilityState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn visibility_state(this: &XrSession) -> XrVisibilityState; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = frameRate)] #[doc = "Getter for the `frameRate` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/frameRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn frame_rate(this: &XrSession) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = supportedFrameRates)] #[doc = "Getter for the `supportedFrameRates` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/supportedFrameRates)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn supported_frame_rates(this: &XrSession) -> Option<::alloc::vec::Vec>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRenderState")] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = renderState)] #[doc = "Getter for the `renderState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/renderState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderState`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn render_state(this: &XrSession) -> XrRenderState; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrInputSourceArray")] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = inputSources)] #[doc = "Getter for the `inputSources` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/inputSources)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn input_sources(this: &XrSession) -> XrInputSourceArray; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , 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/XRSession/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , 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/XRSession/onend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = oninputsourceschange)] #[doc = "Getter for the `oninputsourceschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn oninputsourceschange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = oninputsourceschange)] #[doc = "Setter for the `oninputsourceschange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/oninputsourceschange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_oninputsourceschange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , 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/XRSession/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselect(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , 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/XRSession/onselect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselect(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , 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/XRSession/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselectstart(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , 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/XRSession/onselectstart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselectstart(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onselectend)] #[doc = "Getter for the `onselectend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onselectend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onselectend)] #[doc = "Setter for the `onselectend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onselectend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onselectend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueeze)] #[doc = "Getter for the `onsqueeze` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueeze(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueeze)] #[doc = "Setter for the `onsqueeze` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueeze)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueeze(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezestart)] #[doc = "Getter for the `onsqueezestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueezestart(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezestart)] #[doc = "Setter for the `onsqueezestart` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezestart)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueezestart(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onsqueezeend)] #[doc = "Getter for the `onsqueezeend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onsqueezeend(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onsqueezeend)] #[doc = "Setter for the `onsqueezeend` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onsqueezeend)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onsqueezeend(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , 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/XRSession/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onvisibilitychange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , 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/XRSession/onvisibilitychange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onvisibilitychange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSession" , js_name = onframeratechange)] #[doc = "Getter for the `onframeratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn onframeratechange(this: &XrSession) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSession" , js_name = onframeratechange)] #[doc = "Setter for the `onframeratechange` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/onframeratechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_onframeratechange(this: &XrSession, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = cancelAnimationFrame)] #[doc = "The `cancelAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/cancelAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn cancel_animation_frame(this: &XrSession, handle: u32); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = end)] #[doc = "The `end()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/end)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn end(this: &XrSession) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestAnimationFrame)] #[doc = "The `requestAnimationFrame()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestAnimationFrame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_animation_frame(this: &XrSession, callback: &::js_sys::Function) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrReferenceSpaceType")] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = requestReferenceSpace)] #[doc = "The `requestReferenceSpace()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/requestReferenceSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceType`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_reference_space( this: &XrSession, type_: XrReferenceSpaceType, ) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)] #[doc = "The `updateRenderState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_render_state(this: &XrSession); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRenderStateInit")] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateRenderState)] #[doc = "The `updateRenderState()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateRenderState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRenderStateInit`, `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_render_state_with_state(this: &XrSession, state: &XrRenderStateInit); #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRSession" , js_name = updateTargetFrameRate)] #[doc = "The `updateTargetFrameRate()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSession/updateTargetFrameRate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn update_target_frame_rate(this: &XrSession, rate: f32) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_XrSessionEvent.rs000064400000000000000000000047611046102023000200610ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRSessionEvent , typescript_type = "XRSessionEvent")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionEvent` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSessionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionEvent; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] # [wasm_bindgen (structural , method , getter , js_class = "XRSessionEvent" , js_name = session)] #[doc = "Getter for the `session` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSessionEvent/session)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrSessionEvent`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn session(this: &XrSessionEvent) -> XrSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionEventInit")] #[wasm_bindgen(catch, constructor, js_class = "XRSessionEvent")] #[doc = "The `new XrSessionEvent(..)` constructor, creating a new instance of `XrSessionEvent`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSessionEvent/XRSessionEvent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEvent`, `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new( type_: &str, event_init_dict: &XrSessionEventInit, ) -> Result; } web-sys-0.3.81/src/features/gen_XrSessionEventInit.rs000064400000000000000000000154151046102023000207030ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionEventInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionEventInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionEventInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `bubbles` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bubbles")] pub fn get_bubbles(this: &XrSessionEventInit) -> Option; #[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: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "bubbles")] pub fn set_bubbles(this: &XrSessionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `cancelable` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "cancelable")] pub fn get_cancelable(this: &XrSessionEventInit) -> Option; #[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: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "cancelable")] pub fn set_cancelable(this: &XrSessionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `composed` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "composed")] pub fn get_composed(this: &XrSessionEventInit) -> Option; #[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: `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "composed")] pub fn set_composed(this: &XrSessionEventInit, val: bool); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[doc = "Get the `session` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "session")] pub fn get_session(this: &XrSessionEventInit) -> XrSession; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[doc = "Change the `session` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "session")] pub fn set_session(this: &XrSessionEventInit, val: &XrSession); } #[cfg(web_sys_unstable_apis)] impl XrSessionEventInit { #[cfg(feature = "XrSession")] #[doc = "Construct a new `XrSessionEventInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrSessionEventInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(session: &XrSession) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_session(session); ret } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_bubbles()` instead."] pub fn bubbles(&mut self, val: bool) -> &mut Self { self.set_bubbles(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_cancelable()` instead."] pub fn cancelable(&mut self, val: bool) -> &mut Self { self.set_cancelable(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_composed()` instead."] pub fn composed(&mut self, val: bool) -> &mut Self { self.set_composed(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] #[deprecated = "Use `set_session()` instead."] pub fn session(&mut self, val: &XrSession) -> &mut Self { self.set_session(val); self } } web-sys-0.3.81/src/features/gen_XrSessionInit.rs000064400000000000000000000103471046102023000177000ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `optionalFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "optionalFeatures")] pub fn get_optional_features(this: &XrSessionInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `optionalFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "optionalFeatures")] pub fn set_optional_features(this: &XrSessionInit, val: &::wasm_bindgen::JsValue); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "requiredFeatures")] pub fn get_required_features(this: &XrSessionInit) -> Option<::js_sys::Array>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `requiredFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "requiredFeatures")] pub fn set_required_features(this: &XrSessionInit, val: &::wasm_bindgen::JsValue); } #[cfg(web_sys_unstable_apis)] impl XrSessionInit { #[doc = "Construct a new `XrSessionInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_optional_features()` instead."] pub fn optional_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_optional_features(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_required_features()` instead."] pub fn required_features(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { self.set_required_features(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for XrSessionInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_XrSessionMode.rs000064400000000000000000000012261046102023000176550ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrSessionMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrSessionMode { Inline = "inline", ImmersiveVr = "immersive-vr", ImmersiveAr = "immersive-ar", } web-sys-0.3.81/src/features/gen_XrSessionSupportedPermissionDescriptor.rs000064400000000000000000000111471046102023000250710ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRSessionSupportedPermissionDescriptor)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSessionSupportedPermissionDescriptor` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSessionSupportedPermissionDescriptor; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Get the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] pub fn get_name(this: &XrSessionSupportedPermissionDescriptor) -> PermissionName; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "name")] pub fn set_name(this: &XrSessionSupportedPermissionDescriptor, val: PermissionName); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[doc = "Get the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionMode`, `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mode")] pub fn get_mode(this: &XrSessionSupportedPermissionDescriptor) -> Option; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionMode`, `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "mode")] pub fn set_mode(this: &XrSessionSupportedPermissionDescriptor, val: XrSessionMode); } #[cfg(web_sys_unstable_apis)] impl XrSessionSupportedPermissionDescriptor { #[cfg(feature = "PermissionName")] #[doc = "Construct a new `XrSessionSupportedPermissionDescriptor`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PermissionName`, `XrSessionSupportedPermissionDescriptor`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new(name: PermissionName) -> Self { #[allow(unused_mut)] let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); ret.set_name(name); ret } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "PermissionName")] #[deprecated = "Use `set_name()` instead."] pub fn name(&mut self, val: PermissionName) -> &mut Self { self.set_name(val); self } #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] #[deprecated = "Use `set_mode()` instead."] pub fn mode(&mut self, val: XrSessionMode) -> &mut Self { self.set_mode(val); self } } web-sys-0.3.81/src/features/gen_XrSpace.rs000064400000000000000000000015121046102023000164560ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRSpace , typescript_type = "XRSpace")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSpace` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSpace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSpace`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSpace; } web-sys-0.3.81/src/features/gen_XrSystem.rs000064400000000000000000000114271046102023000167150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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 = XRSystem , typescript_type = "XRSystem")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrSystem` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrSystem; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRSystem" , 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/XRSystem/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ondevicechange(this: &XrSystem) -> Option<::js_sys::Function>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRSystem" , 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/XRSystem/ondevicechange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_ondevicechange(this: &XrSystem, value: Option<&::js_sys::Function>); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = isSessionSupported)] #[doc = "The `isSessionSupported()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/isSessionSupported)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionMode`, `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn is_session_supported(this: &XrSystem, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSessionMode")] # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = requestSession)] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/requestSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionMode`, `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_session(this: &XrSystem, mode: XrSessionMode) -> ::js_sys::Promise; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrSessionInit", feature = "XrSessionMode",))] # [wasm_bindgen (method , structural , js_class = "XRSystem" , js_name = requestSession)] #[doc = "The `requestSession()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/requestSession)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSessionInit`, `XrSessionMode`, `XrSystem`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_session_with_options( this: &XrSystem, mode: XrSessionMode, options: &XrSessionInit, ) -> ::js_sys::Promise; } web-sys-0.3.81/src/features/gen_XrTargetRayMode.rs000064400000000000000000000012231046102023000201310ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrTargetRayMode` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrTargetRayMode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrTargetRayMode { Gaze = "gaze", TrackedPointer = "tracked-pointer", Screen = "screen", } web-sys-0.3.81/src/features/gen_XrView.rs000064400000000000000000000107421046102023000163420ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRView , typescript_type = "XRView")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrView` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrView; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrEye")] # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = eye)] #[doc = "Getter for the `eye` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/eye)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrEye`, `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn eye(this: &XrView) -> XrEye; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = projectionMatrix)] #[doc = "Getter for the `projectionMatrix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/projectionMatrix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn projection_matrix(this: &XrView) -> ::alloc::vec::Vec; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrRigidTransform")] # [wasm_bindgen (structural , method , getter , js_class = "XRView" , 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/XRView/transform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`, `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn transform(this: &XrView) -> XrRigidTransform; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRView" , js_name = recommendedViewportScale)] #[doc = "Getter for the `recommendedViewportScale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/recommendedViewportScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn recommended_viewport_scale(this: &XrView) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "XRView" , js_name = requestViewportScale)] #[doc = "The `requestViewportScale()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/requestViewportScale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrView`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn request_viewport_scale(this: &XrView, scale: Option); } web-sys-0.3.81/src/features/gen_XrViewerPose.rs000064400000000000000000000030711046102023000175150ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrPose , extends = :: js_sys :: Object , js_name = XRViewerPose , typescript_type = "XRViewerPose")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrViewerPose` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewerPose)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewerPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrViewerPose; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRViewerPose" , js_name = views)] #[doc = "Getter for the `views` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewerPose/views)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewerPose`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn views(this: &XrViewerPose) -> ::js_sys::Array; } web-sys-0.3.81/src/features/gen_XrViewport.rs000064400000000000000000000070601046102023000172460ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRViewport , typescript_type = "XRViewport")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrViewport` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRViewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrViewport; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , 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/XRViewport/x)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn x(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , 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/XRViewport/y)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn y(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , 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/XRViewport/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn width(this: &XrViewport) -> i32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRViewport" , 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/XRViewport/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrViewport`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn height(this: &XrViewport) -> i32; } web-sys-0.3.81/src/features/gen_XrVisibilityState.rs000064400000000000000000000012371046102023000205570ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] #[doc = "The `XrVisibilityState` enum."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrVisibilityState`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum XrVisibilityState { Visible = "visible", VisibleBlurred = "visible-blurred", Hidden = "hidden", } web-sys-0.3.81/src/features/gen_XrWebGlLayer.rs000064400000000000000000000273571046102023000174370ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = XrLayer , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRWebGLLayer , typescript_type = "XRWebGLLayer")] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrWebGlLayer` class."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrWebGlLayer; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = antialias)] #[doc = "Getter for the `antialias` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/antialias)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn antialias(this: &XrWebGlLayer) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = ignoreDepthValues)] #[doc = "Getter for the `ignoreDepthValues` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/ignoreDepthValues)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn ignore_depth_values(this: &XrWebGlLayer) -> bool; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)] #[doc = "Getter for the `fixedFoveation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn fixed_foveation(this: &XrWebGlLayer) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)] #[doc = "Setter for the `fixedFoveation` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn set_fixed_foveation(this: &XrWebGlLayer, value: Option); #[cfg(web_sys_unstable_apis)] #[cfg(feature = "WebGlFramebuffer")] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebuffer)] #[doc = "Getter for the `framebuffer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer(this: &XrWebGlLayer) -> Option; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferWidth)] #[doc = "Getter for the `framebufferWidth` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer_width(this: &XrWebGlLayer) -> u32; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferHeight)] #[doc = "Getter for the `framebufferHeight` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn framebuffer_height(this: &XrWebGlLayer) -> u32; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "WebGlRenderingContext", feature = "XrSession",))] #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_web_gl_rendering_context( session: &XrSession, context: &WebGlRenderingContext, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "WebGl2RenderingContext", feature = "XrSession",))] #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_web_gl2_rendering_context( session: &XrSession, context: &WebGl2RenderingContext, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "WebGlRenderingContext", feature = "XrSession", feature = "XrWebGlLayerInit", ))] #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_web_gl_rendering_context_and_layer_init( session: &XrSession, context: &WebGlRenderingContext, layer_init: &XrWebGlLayerInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(all( feature = "WebGl2RenderingContext", feature = "XrSession", feature = "XrWebGlLayerInit", ))] #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn new_with_web_gl2_rendering_context_and_layer_init( session: &XrSession, context: &WebGl2RenderingContext, layer_init: &XrWebGlLayerInit, ) -> Result; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "XrSession")] # [wasm_bindgen (static_method_of = XrWebGlLayer , js_class = "XRWebGLLayer" , js_name = getNativeFramebufferScaleFactor)] #[doc = "The `getNativeFramebufferScaleFactor()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_native_framebuffer_scale_factor(session: &XrSession) -> f64; #[cfg(web_sys_unstable_apis)] #[cfg(all(feature = "XrView", feature = "XrViewport",))] # [wasm_bindgen (method , structural , js_class = "XRWebGLLayer" , js_name = getViewport)] #[doc = "The `getViewport()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getViewport)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrView`, `XrViewport`, `XrWebGlLayer`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub fn get_viewport(this: &XrWebGlLayer, view: &XrView) -> Option; } web-sys-0.3.81/src/features/gen_XrWebGlLayerInit.rs000064400000000000000000000225511046102023000202520ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] use super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen] extern "C" { # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRWebGLLayerInit)] #[derive(Debug, Clone, PartialEq, Eq)] #[doc = "The `XrWebGlLayerInit` dictionary."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub type XrWebGlLayerInit; #[cfg(web_sys_unstable_apis)] #[doc = "Get the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "alpha")] pub fn get_alpha(this: &XrWebGlLayerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `alpha` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "alpha")] pub fn set_alpha(this: &XrWebGlLayerInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `antialias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "antialias")] pub fn get_antialias(this: &XrWebGlLayerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `antialias` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "antialias")] pub fn set_antialias(this: &XrWebGlLayerInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `depth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "depth")] pub fn get_depth(this: &XrWebGlLayerInit) -> Option; #[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: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "depth")] pub fn set_depth(this: &XrWebGlLayerInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `framebufferScaleFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "framebufferScaleFactor")] pub fn get_framebuffer_scale_factor(this: &XrWebGlLayerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `framebufferScaleFactor` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "framebufferScaleFactor")] pub fn set_framebuffer_scale_factor(this: &XrWebGlLayerInit, val: f64); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `ignoreDepthValues` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "ignoreDepthValues")] pub fn get_ignore_depth_values(this: &XrWebGlLayerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `ignoreDepthValues` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "ignoreDepthValues")] pub fn set_ignore_depth_values(this: &XrWebGlLayerInit, val: bool); #[cfg(web_sys_unstable_apis)] #[doc = "Get the `stencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "stencil")] pub fn get_stencil(this: &XrWebGlLayerInit) -> Option; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `stencil` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, setter = "stencil")] pub fn set_stencil(this: &XrWebGlLayerInit, val: bool); } #[cfg(web_sys_unstable_apis)] impl XrWebGlLayerInit { #[doc = "Construct a new `XrWebGlLayerInit`."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayerInit`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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)] #[deprecated = "Use `set_alpha()` instead."] pub fn alpha(&mut self, val: bool) -> &mut Self { self.set_alpha(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_antialias()` instead."] pub fn antialias(&mut self, val: bool) -> &mut Self { self.set_antialias(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_depth()` instead."] pub fn depth(&mut self, val: bool) -> &mut Self { self.set_depth(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_framebuffer_scale_factor()` instead."] pub fn framebuffer_scale_factor(&mut self, val: f64) -> &mut Self { self.set_framebuffer_scale_factor(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_ignore_depth_values()` instead."] pub fn ignore_depth_values(&mut self, val: bool) -> &mut Self { self.set_ignore_depth_values(val); self } #[cfg(web_sys_unstable_apis)] #[deprecated = "Use `set_stencil()` instead."] pub fn stencil(&mut self, val: bool) -> &mut Self { self.set_stencil(val); self } } #[cfg(web_sys_unstable_apis)] impl Default for XrWebGlLayerInit { fn default() -> Self { Self::new() } } web-sys-0.3.81/src/features/gen_XsltProcessor.rs000064400000000000000000000113141046102023000177440ustar 00000000000000#![allow(unused_imports)] #![allow(clippy::all)] 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; } web-sys-0.3.81/src/features/gen_console.rs000064400000000000000000002433331046102023000165640ustar 00000000000000pub mod console { #![allow(unused_imports)] #![allow(clippy::all)] 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, ); } } web-sys-0.3.81/src/features/gen_css.rs000064400000000000000000000026641046102023000157120ustar 00000000000000pub mod css { #![allow(unused_imports)] #![allow(clippy::all)] 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) -> ::alloc::string::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; } } web-sys-0.3.81/src/features/gen_gpu_buffer_usage.rs000064400000000000000000000122701046102023000204240ustar 00000000000000#[cfg(web_sys_unstable_apis)] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub mod gpu_buffer_usage { #![allow(unused_imports)] #![allow(clippy::all)] use super::super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.MAP_READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const INDIRECT: u32 = 256u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUBufferUsage.QUERY_RESOLVE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_buffer_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const QUERY_RESOLVE: u32 = 512u64 as u32; } web-sys-0.3.81/src/features/gen_gpu_color_write.rs000064400000000000000000000053621046102023000203230ustar 00000000000000#[cfg(web_sys_unstable_apis)] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub mod gpu_color_write { #![allow(unused_imports)] #![allow(clippy::all)] use super::super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUColorWrite.RED` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_color_write`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_color_write`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_color_write`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_color_write`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_color_write`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const ALL: u32 = 15u64 as u32; } web-sys-0.3.81/src/features/gen_gpu_map_mode.rs000064400000000000000000000025071046102023000175520ustar 00000000000000#[cfg(web_sys_unstable_apis)] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub mod gpu_map_mode { #![allow(unused_imports)] #![allow(clippy::all)] use super::super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUMapMode.READ` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_map_mode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const READ: u32 = 1u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUMapMode.WRITE` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_map_mode`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const WRITE: u32 = 2u64 as u32; } web-sys-0.3.81/src/features/gen_gpu_shader_stage.rs000064400000000000000000000035141046102023000204210ustar 00000000000000#[cfg(web_sys_unstable_apis)] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub mod gpu_shader_stage { #![allow(unused_imports)] #![allow(clippy::all)] use super::super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUShaderStage.VERTEX` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_shader_stage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_shader_stage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_shader_stage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COMPUTE: u32 = 4u64 as u32; } web-sys-0.3.81/src/features/gen_gpu_texture_usage.rs000064400000000000000000000055361046102023000206620ustar 00000000000000#[cfg(web_sys_unstable_apis)] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub mod gpu_texture_usage { #![allow(unused_imports)] #![allow(clippy::all)] use super::super::*; use wasm_bindgen::prelude::*; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.COPY_SRC` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_texture_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/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: `gpu_texture_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const COPY_DST: u32 = 2u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.TEXTURE_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_texture_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const TEXTURE_BINDING: u32 = 4u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.STORAGE_BINDING` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_texture_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const STORAGE_BINDING: u32 = 8u64 as u32; #[cfg(web_sys_unstable_apis)] #[doc = "The `GPUTextureUsage.RENDER_ATTACHMENT` const."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `gpu_texture_usage`*"] #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"] pub const RENDER_ATTACHMENT: u32 = 16u64 as u32; } web-sys-0.3.81/src/features/mod.rs000064400000000000000000011551331046102023000150510ustar 00000000000000#[cfg(feature = "AbortController")] #[allow(non_snake_case)] mod gen_AbortController; #[cfg(feature = "AbortController")] #[allow(unused_imports)] pub use gen_AbortController::*; #[cfg(feature = "AbortSignal")] #[allow(non_snake_case)] mod gen_AbortSignal; #[cfg(feature = "AbortSignal")] #[allow(unused_imports)] pub use gen_AbortSignal::*; #[cfg(feature = "AddEventListenerOptions")] #[allow(non_snake_case)] mod gen_AddEventListenerOptions; #[cfg(feature = "AddEventListenerOptions")] #[allow(unused_imports)] pub use gen_AddEventListenerOptions::*; #[cfg(feature = "AesCbcParams")] #[allow(non_snake_case)] mod gen_AesCbcParams; #[cfg(feature = "AesCbcParams")] #[allow(unused_imports)] pub use gen_AesCbcParams::*; #[cfg(feature = "AesCtrParams")] #[allow(non_snake_case)] mod gen_AesCtrParams; #[cfg(feature = "AesCtrParams")] #[allow(unused_imports)] pub use gen_AesCtrParams::*; #[cfg(feature = "AesDerivedKeyParams")] #[allow(non_snake_case)] mod gen_AesDerivedKeyParams; #[cfg(feature = "AesDerivedKeyParams")] #[allow(unused_imports)] pub use gen_AesDerivedKeyParams::*; #[cfg(feature = "AesGcmParams")] #[allow(non_snake_case)] mod gen_AesGcmParams; #[cfg(feature = "AesGcmParams")] #[allow(unused_imports)] pub use gen_AesGcmParams::*; #[cfg(feature = "AesKeyAlgorithm")] #[allow(non_snake_case)] mod gen_AesKeyAlgorithm; #[cfg(feature = "AesKeyAlgorithm")] #[allow(unused_imports)] pub use gen_AesKeyAlgorithm::*; #[cfg(feature = "AesKeyGenParams")] #[allow(non_snake_case)] mod gen_AesKeyGenParams; #[cfg(feature = "AesKeyGenParams")] #[allow(unused_imports)] pub use gen_AesKeyGenParams::*; #[cfg(feature = "Algorithm")] #[allow(non_snake_case)] mod gen_Algorithm; #[cfg(feature = "Algorithm")] #[allow(unused_imports)] pub use gen_Algorithm::*; #[cfg(feature = "AlignSetting")] #[allow(non_snake_case)] mod gen_AlignSetting; #[cfg(feature = "AlignSetting")] #[allow(unused_imports)] pub use gen_AlignSetting::*; #[cfg(feature = "AllowedBluetoothDevice")] #[allow(non_snake_case)] mod gen_AllowedBluetoothDevice; #[cfg(feature = "AllowedBluetoothDevice")] #[allow(unused_imports)] pub use gen_AllowedBluetoothDevice::*; #[cfg(feature = "AllowedUsbDevice")] #[allow(non_snake_case)] mod gen_AllowedUsbDevice; #[cfg(feature = "AllowedUsbDevice")] #[allow(unused_imports)] pub use gen_AllowedUsbDevice::*; #[cfg(feature = "AlphaOption")] #[allow(non_snake_case)] mod gen_AlphaOption; #[cfg(feature = "AlphaOption")] #[allow(unused_imports)] pub use gen_AlphaOption::*; #[cfg(feature = "AnalyserNode")] #[allow(non_snake_case)] mod gen_AnalyserNode; #[cfg(feature = "AnalyserNode")] #[allow(unused_imports)] pub use gen_AnalyserNode::*; #[cfg(feature = "AnalyserOptions")] #[allow(non_snake_case)] mod gen_AnalyserOptions; #[cfg(feature = "AnalyserOptions")] #[allow(unused_imports)] pub use gen_AnalyserOptions::*; #[cfg(feature = "AngleInstancedArrays")] #[allow(non_snake_case)] mod gen_AngleInstancedArrays; #[cfg(feature = "AngleInstancedArrays")] #[allow(unused_imports)] pub use gen_AngleInstancedArrays::*; #[cfg(feature = "Animation")] #[allow(non_snake_case)] mod gen_Animation; #[cfg(feature = "Animation")] #[allow(unused_imports)] pub use gen_Animation::*; #[cfg(feature = "AnimationEffect")] #[allow(non_snake_case)] mod gen_AnimationEffect; #[cfg(feature = "AnimationEffect")] #[allow(unused_imports)] pub use gen_AnimationEffect::*; #[cfg(feature = "AnimationEvent")] #[allow(non_snake_case)] mod gen_AnimationEvent; #[cfg(feature = "AnimationEvent")] #[allow(unused_imports)] pub use gen_AnimationEvent::*; #[cfg(feature = "AnimationEventInit")] #[allow(non_snake_case)] mod gen_AnimationEventInit; #[cfg(feature = "AnimationEventInit")] #[allow(unused_imports)] pub use gen_AnimationEventInit::*; #[cfg(feature = "AnimationPlayState")] #[allow(non_snake_case)] mod gen_AnimationPlayState; #[cfg(feature = "AnimationPlayState")] #[allow(unused_imports)] pub use gen_AnimationPlayState::*; #[cfg(feature = "AnimationPlaybackEvent")] #[allow(non_snake_case)] mod gen_AnimationPlaybackEvent; #[cfg(feature = "AnimationPlaybackEvent")] #[allow(unused_imports)] pub use gen_AnimationPlaybackEvent::*; #[cfg(feature = "AnimationPlaybackEventInit")] #[allow(non_snake_case)] mod gen_AnimationPlaybackEventInit; #[cfg(feature = "AnimationPlaybackEventInit")] #[allow(unused_imports)] pub use gen_AnimationPlaybackEventInit::*; #[cfg(feature = "AnimationPropertyDetails")] #[allow(non_snake_case)] mod gen_AnimationPropertyDetails; #[cfg(feature = "AnimationPropertyDetails")] #[allow(unused_imports)] pub use gen_AnimationPropertyDetails::*; #[cfg(feature = "AnimationPropertyValueDetails")] #[allow(non_snake_case)] mod gen_AnimationPropertyValueDetails; #[cfg(feature = "AnimationPropertyValueDetails")] #[allow(unused_imports)] pub use gen_AnimationPropertyValueDetails::*; #[cfg(feature = "AnimationTimeline")] #[allow(non_snake_case)] mod gen_AnimationTimeline; #[cfg(feature = "AnimationTimeline")] #[allow(unused_imports)] pub use gen_AnimationTimeline::*; #[cfg(feature = "AssignedNodesOptions")] #[allow(non_snake_case)] mod gen_AssignedNodesOptions; #[cfg(feature = "AssignedNodesOptions")] #[allow(unused_imports)] pub use gen_AssignedNodesOptions::*; #[cfg(feature = "AttestationConveyancePreference")] #[allow(non_snake_case)] mod gen_AttestationConveyancePreference; #[cfg(feature = "AttestationConveyancePreference")] #[allow(unused_imports)] pub use gen_AttestationConveyancePreference::*; #[cfg(feature = "Attr")] #[allow(non_snake_case)] mod gen_Attr; #[cfg(feature = "Attr")] #[allow(unused_imports)] pub use gen_Attr::*; #[cfg(feature = "AttributeNameValue")] #[allow(non_snake_case)] mod gen_AttributeNameValue; #[cfg(feature = "AttributeNameValue")] #[allow(unused_imports)] pub use gen_AttributeNameValue::*; #[cfg(feature = "AudioBuffer")] #[allow(non_snake_case)] mod gen_AudioBuffer; #[cfg(feature = "AudioBuffer")] #[allow(unused_imports)] pub use gen_AudioBuffer::*; #[cfg(feature = "AudioBufferOptions")] #[allow(non_snake_case)] mod gen_AudioBufferOptions; #[cfg(feature = "AudioBufferOptions")] #[allow(unused_imports)] pub use gen_AudioBufferOptions::*; #[cfg(feature = "AudioBufferSourceNode")] #[allow(non_snake_case)] mod gen_AudioBufferSourceNode; #[cfg(feature = "AudioBufferSourceNode")] #[allow(unused_imports)] pub use gen_AudioBufferSourceNode::*; #[cfg(feature = "AudioBufferSourceOptions")] #[allow(non_snake_case)] mod gen_AudioBufferSourceOptions; #[cfg(feature = "AudioBufferSourceOptions")] #[allow(unused_imports)] pub use gen_AudioBufferSourceOptions::*; #[cfg(feature = "AudioConfiguration")] #[allow(non_snake_case)] mod gen_AudioConfiguration; #[cfg(feature = "AudioConfiguration")] #[allow(unused_imports)] pub use gen_AudioConfiguration::*; #[cfg(feature = "AudioContext")] #[allow(non_snake_case)] mod gen_AudioContext; #[cfg(feature = "AudioContext")] #[allow(unused_imports)] pub use gen_AudioContext::*; #[cfg(feature = "AudioContextLatencyCategory")] #[allow(non_snake_case)] mod gen_AudioContextLatencyCategory; #[cfg(feature = "AudioContextLatencyCategory")] #[allow(unused_imports)] pub use gen_AudioContextLatencyCategory::*; #[cfg(feature = "AudioContextOptions")] #[allow(non_snake_case)] mod gen_AudioContextOptions; #[cfg(feature = "AudioContextOptions")] #[allow(unused_imports)] pub use gen_AudioContextOptions::*; #[cfg(feature = "AudioContextState")] #[allow(non_snake_case)] mod gen_AudioContextState; #[cfg(feature = "AudioContextState")] #[allow(unused_imports)] pub use gen_AudioContextState::*; #[cfg(feature = "AudioData")] #[allow(non_snake_case)] mod gen_AudioData; #[cfg(feature = "AudioData")] #[allow(unused_imports)] pub use gen_AudioData::*; #[cfg(feature = "AudioDataCopyToOptions")] #[allow(non_snake_case)] mod gen_AudioDataCopyToOptions; #[cfg(feature = "AudioDataCopyToOptions")] #[allow(unused_imports)] pub use gen_AudioDataCopyToOptions::*; #[cfg(feature = "AudioDataInit")] #[allow(non_snake_case)] mod gen_AudioDataInit; #[cfg(feature = "AudioDataInit")] #[allow(unused_imports)] pub use gen_AudioDataInit::*; #[cfg(feature = "AudioDecoder")] #[allow(non_snake_case)] mod gen_AudioDecoder; #[cfg(feature = "AudioDecoder")] #[allow(unused_imports)] pub use gen_AudioDecoder::*; #[cfg(feature = "AudioDecoderConfig")] #[allow(non_snake_case)] mod gen_AudioDecoderConfig; #[cfg(feature = "AudioDecoderConfig")] #[allow(unused_imports)] pub use gen_AudioDecoderConfig::*; #[cfg(feature = "AudioDecoderInit")] #[allow(non_snake_case)] mod gen_AudioDecoderInit; #[cfg(feature = "AudioDecoderInit")] #[allow(unused_imports)] pub use gen_AudioDecoderInit::*; #[cfg(feature = "AudioDecoderSupport")] #[allow(non_snake_case)] mod gen_AudioDecoderSupport; #[cfg(feature = "AudioDecoderSupport")] #[allow(unused_imports)] pub use gen_AudioDecoderSupport::*; #[cfg(feature = "AudioDestinationNode")] #[allow(non_snake_case)] mod gen_AudioDestinationNode; #[cfg(feature = "AudioDestinationNode")] #[allow(unused_imports)] pub use gen_AudioDestinationNode::*; #[cfg(feature = "AudioEncoder")] #[allow(non_snake_case)] mod gen_AudioEncoder; #[cfg(feature = "AudioEncoder")] #[allow(unused_imports)] pub use gen_AudioEncoder::*; #[cfg(feature = "AudioEncoderConfig")] #[allow(non_snake_case)] mod gen_AudioEncoderConfig; #[cfg(feature = "AudioEncoderConfig")] #[allow(unused_imports)] pub use gen_AudioEncoderConfig::*; #[cfg(feature = "AudioEncoderInit")] #[allow(non_snake_case)] mod gen_AudioEncoderInit; #[cfg(feature = "AudioEncoderInit")] #[allow(unused_imports)] pub use gen_AudioEncoderInit::*; #[cfg(feature = "AudioEncoderSupport")] #[allow(non_snake_case)] mod gen_AudioEncoderSupport; #[cfg(feature = "AudioEncoderSupport")] #[allow(unused_imports)] pub use gen_AudioEncoderSupport::*; #[cfg(feature = "AudioListener")] #[allow(non_snake_case)] mod gen_AudioListener; #[cfg(feature = "AudioListener")] #[allow(unused_imports)] pub use gen_AudioListener::*; #[cfg(feature = "AudioNode")] #[allow(non_snake_case)] mod gen_AudioNode; #[cfg(feature = "AudioNode")] #[allow(unused_imports)] pub use gen_AudioNode::*; #[cfg(feature = "AudioNodeOptions")] #[allow(non_snake_case)] mod gen_AudioNodeOptions; #[cfg(feature = "AudioNodeOptions")] #[allow(unused_imports)] pub use gen_AudioNodeOptions::*; #[cfg(feature = "AudioParam")] #[allow(non_snake_case)] mod gen_AudioParam; #[cfg(feature = "AudioParam")] #[allow(unused_imports)] pub use gen_AudioParam::*; #[cfg(feature = "AudioParamMap")] #[allow(non_snake_case)] mod gen_AudioParamMap; #[cfg(feature = "AudioParamMap")] #[allow(unused_imports)] pub use gen_AudioParamMap::*; #[cfg(feature = "AudioProcessingEvent")] #[allow(non_snake_case)] mod gen_AudioProcessingEvent; #[cfg(feature = "AudioProcessingEvent")] #[allow(unused_imports)] pub use gen_AudioProcessingEvent::*; #[cfg(feature = "AudioSampleFormat")] #[allow(non_snake_case)] mod gen_AudioSampleFormat; #[cfg(feature = "AudioSampleFormat")] #[allow(unused_imports)] pub use gen_AudioSampleFormat::*; #[cfg(feature = "AudioScheduledSourceNode")] #[allow(non_snake_case)] mod gen_AudioScheduledSourceNode; #[cfg(feature = "AudioScheduledSourceNode")] #[allow(unused_imports)] pub use gen_AudioScheduledSourceNode::*; #[cfg(feature = "AudioSinkInfo")] #[allow(non_snake_case)] mod gen_AudioSinkInfo; #[cfg(feature = "AudioSinkInfo")] #[allow(unused_imports)] pub use gen_AudioSinkInfo::*; #[cfg(feature = "AudioSinkOptions")] #[allow(non_snake_case)] mod gen_AudioSinkOptions; #[cfg(feature = "AudioSinkOptions")] #[allow(unused_imports)] pub use gen_AudioSinkOptions::*; #[cfg(feature = "AudioSinkType")] #[allow(non_snake_case)] mod gen_AudioSinkType; #[cfg(feature = "AudioSinkType")] #[allow(unused_imports)] pub use gen_AudioSinkType::*; #[cfg(feature = "AudioStreamTrack")] #[allow(non_snake_case)] mod gen_AudioStreamTrack; #[cfg(feature = "AudioStreamTrack")] #[allow(unused_imports)] pub use gen_AudioStreamTrack::*; #[cfg(feature = "AudioTrack")] #[allow(non_snake_case)] mod gen_AudioTrack; #[cfg(feature = "AudioTrack")] #[allow(unused_imports)] pub use gen_AudioTrack::*; #[cfg(feature = "AudioTrackList")] #[allow(non_snake_case)] mod gen_AudioTrackList; #[cfg(feature = "AudioTrackList")] #[allow(unused_imports)] pub use gen_AudioTrackList::*; #[cfg(feature = "AudioWorklet")] #[allow(non_snake_case)] mod gen_AudioWorklet; #[cfg(feature = "AudioWorklet")] #[allow(unused_imports)] pub use gen_AudioWorklet::*; #[cfg(feature = "AudioWorkletGlobalScope")] #[allow(non_snake_case)] mod gen_AudioWorkletGlobalScope; #[cfg(feature = "AudioWorkletGlobalScope")] #[allow(unused_imports)] pub use gen_AudioWorkletGlobalScope::*; #[cfg(feature = "AudioWorkletNode")] #[allow(non_snake_case)] mod gen_AudioWorkletNode; #[cfg(feature = "AudioWorkletNode")] #[allow(unused_imports)] pub use gen_AudioWorkletNode::*; #[cfg(feature = "AudioWorkletNodeOptions")] #[allow(non_snake_case)] mod gen_AudioWorkletNodeOptions; #[cfg(feature = "AudioWorkletNodeOptions")] #[allow(unused_imports)] pub use gen_AudioWorkletNodeOptions::*; #[cfg(feature = "AudioWorkletProcessor")] #[allow(non_snake_case)] mod gen_AudioWorkletProcessor; #[cfg(feature = "AudioWorkletProcessor")] #[allow(unused_imports)] pub use gen_AudioWorkletProcessor::*; #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientInputs; #[cfg(feature = "AuthenticationExtensionsClientInputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsClientInputs::*; #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientInputsJson; #[cfg(feature = "AuthenticationExtensionsClientInputsJson")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsClientInputsJson::*; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientOutputs; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsClientOutputs::*; #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsClientOutputsJson; #[cfg(feature = "AuthenticationExtensionsClientOutputsJson")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsClientOutputsJson::*; #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsDevicePublicKeyInputs; #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyInputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsDevicePublicKeyInputs::*; #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsDevicePublicKeyOutputs; #[cfg(feature = "AuthenticationExtensionsDevicePublicKeyOutputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsDevicePublicKeyOutputs::*; #[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsLargeBlobInputs; #[cfg(feature = "AuthenticationExtensionsLargeBlobInputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsLargeBlobInputs::*; #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsLargeBlobOutputs; #[cfg(feature = "AuthenticationExtensionsLargeBlobOutputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsLargeBlobOutputs::*; #[cfg(feature = "AuthenticationExtensionsPrfInputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsPrfInputs; #[cfg(feature = "AuthenticationExtensionsPrfInputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsPrfInputs::*; #[cfg(feature = "AuthenticationExtensionsPrfOutputs")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsPrfOutputs; #[cfg(feature = "AuthenticationExtensionsPrfOutputs")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsPrfOutputs::*; #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[allow(non_snake_case)] mod gen_AuthenticationExtensionsPrfValues; #[cfg(feature = "AuthenticationExtensionsPrfValues")] #[allow(unused_imports)] pub use gen_AuthenticationExtensionsPrfValues::*; #[cfg(feature = "AuthenticationResponseJson")] #[allow(non_snake_case)] mod gen_AuthenticationResponseJson; #[cfg(feature = "AuthenticationResponseJson")] #[allow(unused_imports)] pub use gen_AuthenticationResponseJson::*; #[cfg(feature = "AuthenticatorAssertionResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorAssertionResponse; #[cfg(feature = "AuthenticatorAssertionResponse")] #[allow(unused_imports)] pub use gen_AuthenticatorAssertionResponse::*; #[cfg(feature = "AuthenticatorAssertionResponseJson")] #[allow(non_snake_case)] mod gen_AuthenticatorAssertionResponseJson; #[cfg(feature = "AuthenticatorAssertionResponseJson")] #[allow(unused_imports)] pub use gen_AuthenticatorAssertionResponseJson::*; #[cfg(feature = "AuthenticatorAttachment")] #[allow(non_snake_case)] mod gen_AuthenticatorAttachment; #[cfg(feature = "AuthenticatorAttachment")] #[allow(unused_imports)] pub use gen_AuthenticatorAttachment::*; #[cfg(feature = "AuthenticatorAttestationResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorAttestationResponse; #[cfg(feature = "AuthenticatorAttestationResponse")] #[allow(unused_imports)] pub use gen_AuthenticatorAttestationResponse::*; #[cfg(feature = "AuthenticatorAttestationResponseJson")] #[allow(non_snake_case)] mod gen_AuthenticatorAttestationResponseJson; #[cfg(feature = "AuthenticatorAttestationResponseJson")] #[allow(unused_imports)] pub use gen_AuthenticatorAttestationResponseJson::*; #[cfg(feature = "AuthenticatorResponse")] #[allow(non_snake_case)] mod gen_AuthenticatorResponse; #[cfg(feature = "AuthenticatorResponse")] #[allow(unused_imports)] pub use gen_AuthenticatorResponse::*; #[cfg(feature = "AuthenticatorSelectionCriteria")] #[allow(non_snake_case)] mod gen_AuthenticatorSelectionCriteria; #[cfg(feature = "AuthenticatorSelectionCriteria")] #[allow(unused_imports)] pub use gen_AuthenticatorSelectionCriteria::*; #[cfg(feature = "AuthenticatorTransport")] #[allow(non_snake_case)] mod gen_AuthenticatorTransport; #[cfg(feature = "AuthenticatorTransport")] #[allow(unused_imports)] pub use gen_AuthenticatorTransport::*; #[cfg(feature = "AutoKeyword")] #[allow(non_snake_case)] mod gen_AutoKeyword; #[cfg(feature = "AutoKeyword")] #[allow(unused_imports)] pub use gen_AutoKeyword::*; #[cfg(feature = "AutocompleteInfo")] #[allow(non_snake_case)] mod gen_AutocompleteInfo; #[cfg(feature = "AutocompleteInfo")] #[allow(unused_imports)] pub use gen_AutocompleteInfo::*; #[cfg(feature = "BarProp")] #[allow(non_snake_case)] mod gen_BarProp; #[cfg(feature = "BarProp")] #[allow(unused_imports)] pub use gen_BarProp::*; #[cfg(feature = "BaseAudioContext")] #[allow(non_snake_case)] mod gen_BaseAudioContext; #[cfg(feature = "BaseAudioContext")] #[allow(unused_imports)] pub use gen_BaseAudioContext::*; #[cfg(feature = "BaseComputedKeyframe")] #[allow(non_snake_case)] mod gen_BaseComputedKeyframe; #[cfg(feature = "BaseComputedKeyframe")] #[allow(unused_imports)] pub use gen_BaseComputedKeyframe::*; #[cfg(feature = "BaseKeyframe")] #[allow(non_snake_case)] mod gen_BaseKeyframe; #[cfg(feature = "BaseKeyframe")] #[allow(unused_imports)] pub use gen_BaseKeyframe::*; #[cfg(feature = "BasePropertyIndexedKeyframe")] #[allow(non_snake_case)] mod gen_BasePropertyIndexedKeyframe; #[cfg(feature = "BasePropertyIndexedKeyframe")] #[allow(unused_imports)] pub use gen_BasePropertyIndexedKeyframe::*; #[cfg(feature = "BasicCardRequest")] #[allow(non_snake_case)] mod gen_BasicCardRequest; #[cfg(feature = "BasicCardRequest")] #[allow(unused_imports)] pub use gen_BasicCardRequest::*; #[cfg(feature = "BasicCardResponse")] #[allow(non_snake_case)] mod gen_BasicCardResponse; #[cfg(feature = "BasicCardResponse")] #[allow(unused_imports)] pub use gen_BasicCardResponse::*; #[cfg(feature = "BasicCardType")] #[allow(non_snake_case)] mod gen_BasicCardType; #[cfg(feature = "BasicCardType")] #[allow(unused_imports)] pub use gen_BasicCardType::*; #[cfg(feature = "BatteryManager")] #[allow(non_snake_case)] mod gen_BatteryManager; #[cfg(feature = "BatteryManager")] #[allow(unused_imports)] pub use gen_BatteryManager::*; #[cfg(feature = "BeforeUnloadEvent")] #[allow(non_snake_case)] mod gen_BeforeUnloadEvent; #[cfg(feature = "BeforeUnloadEvent")] #[allow(unused_imports)] pub use gen_BeforeUnloadEvent::*; #[cfg(feature = "BinaryType")] #[allow(non_snake_case)] mod gen_BinaryType; #[cfg(feature = "BinaryType")] #[allow(unused_imports)] pub use gen_BinaryType::*; #[cfg(feature = "BiquadFilterNode")] #[allow(non_snake_case)] mod gen_BiquadFilterNode; #[cfg(feature = "BiquadFilterNode")] #[allow(unused_imports)] pub use gen_BiquadFilterNode::*; #[cfg(feature = "BiquadFilterOptions")] #[allow(non_snake_case)] mod gen_BiquadFilterOptions; #[cfg(feature = "BiquadFilterOptions")] #[allow(unused_imports)] pub use gen_BiquadFilterOptions::*; #[cfg(feature = "BiquadFilterType")] #[allow(non_snake_case)] mod gen_BiquadFilterType; #[cfg(feature = "BiquadFilterType")] #[allow(unused_imports)] pub use gen_BiquadFilterType::*; #[cfg(feature = "Blob")] #[allow(non_snake_case)] mod gen_Blob; #[cfg(feature = "Blob")] #[allow(unused_imports)] pub use gen_Blob::*; #[cfg(feature = "BlobEvent")] #[allow(non_snake_case)] mod gen_BlobEvent; #[cfg(feature = "BlobEvent")] #[allow(unused_imports)] pub use gen_BlobEvent::*; #[cfg(feature = "BlobEventInit")] #[allow(non_snake_case)] mod gen_BlobEventInit; #[cfg(feature = "BlobEventInit")] #[allow(unused_imports)] pub use gen_BlobEventInit::*; #[cfg(feature = "BlobPropertyBag")] #[allow(non_snake_case)] mod gen_BlobPropertyBag; #[cfg(feature = "BlobPropertyBag")] #[allow(unused_imports)] pub use gen_BlobPropertyBag::*; #[cfg(feature = "BlockParsingOptions")] #[allow(non_snake_case)] mod gen_BlockParsingOptions; #[cfg(feature = "BlockParsingOptions")] #[allow(unused_imports)] pub use gen_BlockParsingOptions::*; #[cfg(feature = "Bluetooth")] #[allow(non_snake_case)] mod gen_Bluetooth; #[cfg(feature = "Bluetooth")] #[allow(unused_imports)] pub use gen_Bluetooth::*; #[cfg(feature = "BluetoothAdvertisingEvent")] #[allow(non_snake_case)] mod gen_BluetoothAdvertisingEvent; #[cfg(feature = "BluetoothAdvertisingEvent")] #[allow(unused_imports)] pub use gen_BluetoothAdvertisingEvent::*; #[cfg(feature = "BluetoothAdvertisingEventInit")] #[allow(non_snake_case)] mod gen_BluetoothAdvertisingEventInit; #[cfg(feature = "BluetoothAdvertisingEventInit")] #[allow(unused_imports)] pub use gen_BluetoothAdvertisingEventInit::*; #[cfg(feature = "BluetoothCharacteristicProperties")] #[allow(non_snake_case)] mod gen_BluetoothCharacteristicProperties; #[cfg(feature = "BluetoothCharacteristicProperties")] #[allow(unused_imports)] pub use gen_BluetoothCharacteristicProperties::*; #[cfg(feature = "BluetoothDataFilterInit")] #[allow(non_snake_case)] mod gen_BluetoothDataFilterInit; #[cfg(feature = "BluetoothDataFilterInit")] #[allow(unused_imports)] pub use gen_BluetoothDataFilterInit::*; #[cfg(feature = "BluetoothDevice")] #[allow(non_snake_case)] mod gen_BluetoothDevice; #[cfg(feature = "BluetoothDevice")] #[allow(unused_imports)] pub use gen_BluetoothDevice::*; #[cfg(feature = "BluetoothLeScanFilterInit")] #[allow(non_snake_case)] mod gen_BluetoothLeScanFilterInit; #[cfg(feature = "BluetoothLeScanFilterInit")] #[allow(unused_imports)] pub use gen_BluetoothLeScanFilterInit::*; #[cfg(feature = "BluetoothManufacturerDataMap")] #[allow(non_snake_case)] mod gen_BluetoothManufacturerDataMap; #[cfg(feature = "BluetoothManufacturerDataMap")] #[allow(unused_imports)] pub use gen_BluetoothManufacturerDataMap::*; #[cfg(feature = "BluetoothPermissionDescriptor")] #[allow(non_snake_case)] mod gen_BluetoothPermissionDescriptor; #[cfg(feature = "BluetoothPermissionDescriptor")] #[allow(unused_imports)] pub use gen_BluetoothPermissionDescriptor::*; #[cfg(feature = "BluetoothPermissionResult")] #[allow(non_snake_case)] mod gen_BluetoothPermissionResult; #[cfg(feature = "BluetoothPermissionResult")] #[allow(unused_imports)] pub use gen_BluetoothPermissionResult::*; #[cfg(feature = "BluetoothPermissionStorage")] #[allow(non_snake_case)] mod gen_BluetoothPermissionStorage; #[cfg(feature = "BluetoothPermissionStorage")] #[allow(unused_imports)] pub use gen_BluetoothPermissionStorage::*; #[cfg(feature = "BluetoothRemoteGattCharacteristic")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattCharacteristic; #[cfg(feature = "BluetoothRemoteGattCharacteristic")] #[allow(unused_imports)] pub use gen_BluetoothRemoteGattCharacteristic::*; #[cfg(feature = "BluetoothRemoteGattDescriptor")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattDescriptor; #[cfg(feature = "BluetoothRemoteGattDescriptor")] #[allow(unused_imports)] pub use gen_BluetoothRemoteGattDescriptor::*; #[cfg(feature = "BluetoothRemoteGattServer")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattServer; #[cfg(feature = "BluetoothRemoteGattServer")] #[allow(unused_imports)] pub use gen_BluetoothRemoteGattServer::*; #[cfg(feature = "BluetoothRemoteGattService")] #[allow(non_snake_case)] mod gen_BluetoothRemoteGattService; #[cfg(feature = "BluetoothRemoteGattService")] #[allow(unused_imports)] pub use gen_BluetoothRemoteGattService::*; #[cfg(feature = "BluetoothServiceDataMap")] #[allow(non_snake_case)] mod gen_BluetoothServiceDataMap; #[cfg(feature = "BluetoothServiceDataMap")] #[allow(unused_imports)] pub use gen_BluetoothServiceDataMap::*; #[cfg(feature = "BluetoothUuid")] #[allow(non_snake_case)] mod gen_BluetoothUuid; #[cfg(feature = "BluetoothUuid")] #[allow(unused_imports)] pub use gen_BluetoothUuid::*; #[cfg(feature = "BoxQuadOptions")] #[allow(non_snake_case)] mod gen_BoxQuadOptions; #[cfg(feature = "BoxQuadOptions")] #[allow(unused_imports)] pub use gen_BoxQuadOptions::*; #[cfg(feature = "BroadcastChannel")] #[allow(non_snake_case)] mod gen_BroadcastChannel; #[cfg(feature = "BroadcastChannel")] #[allow(unused_imports)] pub use gen_BroadcastChannel::*; #[cfg(feature = "BrowserElementDownloadOptions")] #[allow(non_snake_case)] mod gen_BrowserElementDownloadOptions; #[cfg(feature = "BrowserElementDownloadOptions")] #[allow(unused_imports)] pub use gen_BrowserElementDownloadOptions::*; #[cfg(feature = "BrowserElementExecuteScriptOptions")] #[allow(non_snake_case)] mod gen_BrowserElementExecuteScriptOptions; #[cfg(feature = "BrowserElementExecuteScriptOptions")] #[allow(unused_imports)] pub use gen_BrowserElementExecuteScriptOptions::*; #[cfg(feature = "BrowserFeedWriter")] #[allow(non_snake_case)] mod gen_BrowserFeedWriter; #[cfg(feature = "BrowserFeedWriter")] #[allow(unused_imports)] pub use gen_BrowserFeedWriter::*; #[cfg(feature = "BrowserFindCaseSensitivity")] #[allow(non_snake_case)] mod gen_BrowserFindCaseSensitivity; #[cfg(feature = "BrowserFindCaseSensitivity")] #[allow(unused_imports)] pub use gen_BrowserFindCaseSensitivity::*; #[cfg(feature = "BrowserFindDirection")] #[allow(non_snake_case)] mod gen_BrowserFindDirection; #[cfg(feature = "BrowserFindDirection")] #[allow(unused_imports)] pub use gen_BrowserFindDirection::*; #[cfg(feature = "ByteLengthQueuingStrategy")] #[allow(non_snake_case)] mod gen_ByteLengthQueuingStrategy; #[cfg(feature = "ByteLengthQueuingStrategy")] #[allow(unused_imports)] pub use gen_ByteLengthQueuingStrategy::*; #[cfg(feature = "Cache")] #[allow(non_snake_case)] mod gen_Cache; #[cfg(feature = "Cache")] #[allow(unused_imports)] pub use gen_Cache::*; #[cfg(feature = "CacheBatchOperation")] #[allow(non_snake_case)] mod gen_CacheBatchOperation; #[cfg(feature = "CacheBatchOperation")] #[allow(unused_imports)] pub use gen_CacheBatchOperation::*; #[cfg(feature = "CacheQueryOptions")] #[allow(non_snake_case)] mod gen_CacheQueryOptions; #[cfg(feature = "CacheQueryOptions")] #[allow(unused_imports)] pub use gen_CacheQueryOptions::*; #[cfg(feature = "CacheStorage")] #[allow(non_snake_case)] mod gen_CacheStorage; #[cfg(feature = "CacheStorage")] #[allow(unused_imports)] pub use gen_CacheStorage::*; #[cfg(feature = "CacheStorageNamespace")] #[allow(non_snake_case)] mod gen_CacheStorageNamespace; #[cfg(feature = "CacheStorageNamespace")] #[allow(unused_imports)] pub use gen_CacheStorageNamespace::*; #[cfg(feature = "CanvasCaptureMediaStream")] #[allow(non_snake_case)] mod gen_CanvasCaptureMediaStream; #[cfg(feature = "CanvasCaptureMediaStream")] #[allow(unused_imports)] pub use gen_CanvasCaptureMediaStream::*; #[cfg(feature = "CanvasCaptureMediaStreamTrack")] #[allow(non_snake_case)] mod gen_CanvasCaptureMediaStreamTrack; #[cfg(feature = "CanvasCaptureMediaStreamTrack")] #[allow(unused_imports)] pub use gen_CanvasCaptureMediaStreamTrack::*; #[cfg(feature = "CanvasGradient")] #[allow(non_snake_case)] mod gen_CanvasGradient; #[cfg(feature = "CanvasGradient")] #[allow(unused_imports)] pub use gen_CanvasGradient::*; #[cfg(feature = "CanvasPattern")] #[allow(non_snake_case)] mod gen_CanvasPattern; #[cfg(feature = "CanvasPattern")] #[allow(unused_imports)] pub use gen_CanvasPattern::*; #[cfg(feature = "CanvasRenderingContext2d")] #[allow(non_snake_case)] mod gen_CanvasRenderingContext2d; #[cfg(feature = "CanvasRenderingContext2d")] #[allow(unused_imports)] pub use gen_CanvasRenderingContext2d::*; #[cfg(feature = "CanvasWindingRule")] #[allow(non_snake_case)] mod gen_CanvasWindingRule; #[cfg(feature = "CanvasWindingRule")] #[allow(unused_imports)] pub use gen_CanvasWindingRule::*; #[cfg(feature = "CaretChangedReason")] #[allow(non_snake_case)] mod gen_CaretChangedReason; #[cfg(feature = "CaretChangedReason")] #[allow(unused_imports)] pub use gen_CaretChangedReason::*; #[cfg(feature = "CaretPosition")] #[allow(non_snake_case)] mod gen_CaretPosition; #[cfg(feature = "CaretPosition")] #[allow(unused_imports)] pub use gen_CaretPosition::*; #[cfg(feature = "CaretStateChangedEventInit")] #[allow(non_snake_case)] mod gen_CaretStateChangedEventInit; #[cfg(feature = "CaretStateChangedEventInit")] #[allow(unused_imports)] pub use gen_CaretStateChangedEventInit::*; #[cfg(feature = "CdataSection")] #[allow(non_snake_case)] mod gen_CdataSection; #[cfg(feature = "CdataSection")] #[allow(unused_imports)] pub use gen_CdataSection::*; #[cfg(feature = "ChannelCountMode")] #[allow(non_snake_case)] mod gen_ChannelCountMode; #[cfg(feature = "ChannelCountMode")] #[allow(unused_imports)] pub use gen_ChannelCountMode::*; #[cfg(feature = "ChannelInterpretation")] #[allow(non_snake_case)] mod gen_ChannelInterpretation; #[cfg(feature = "ChannelInterpretation")] #[allow(unused_imports)] pub use gen_ChannelInterpretation::*; #[cfg(feature = "ChannelMergerNode")] #[allow(non_snake_case)] mod gen_ChannelMergerNode; #[cfg(feature = "ChannelMergerNode")] #[allow(unused_imports)] pub use gen_ChannelMergerNode::*; #[cfg(feature = "ChannelMergerOptions")] #[allow(non_snake_case)] mod gen_ChannelMergerOptions; #[cfg(feature = "ChannelMergerOptions")] #[allow(unused_imports)] pub use gen_ChannelMergerOptions::*; #[cfg(feature = "ChannelSplitterNode")] #[allow(non_snake_case)] mod gen_ChannelSplitterNode; #[cfg(feature = "ChannelSplitterNode")] #[allow(unused_imports)] pub use gen_ChannelSplitterNode::*; #[cfg(feature = "ChannelSplitterOptions")] #[allow(non_snake_case)] mod gen_ChannelSplitterOptions; #[cfg(feature = "ChannelSplitterOptions")] #[allow(unused_imports)] pub use gen_ChannelSplitterOptions::*; #[cfg(feature = "CharacterData")] #[allow(non_snake_case)] mod gen_CharacterData; #[cfg(feature = "CharacterData")] #[allow(unused_imports)] pub use gen_CharacterData::*; #[cfg(feature = "CheckerboardReason")] #[allow(non_snake_case)] mod gen_CheckerboardReason; #[cfg(feature = "CheckerboardReason")] #[allow(unused_imports)] pub use gen_CheckerboardReason::*; #[cfg(feature = "CheckerboardReport")] #[allow(non_snake_case)] mod gen_CheckerboardReport; #[cfg(feature = "CheckerboardReport")] #[allow(unused_imports)] pub use gen_CheckerboardReport::*; #[cfg(feature = "CheckerboardReportService")] #[allow(non_snake_case)] mod gen_CheckerboardReportService; #[cfg(feature = "CheckerboardReportService")] #[allow(unused_imports)] pub use gen_CheckerboardReportService::*; #[cfg(feature = "ChromeFilePropertyBag")] #[allow(non_snake_case)] mod gen_ChromeFilePropertyBag; #[cfg(feature = "ChromeFilePropertyBag")] #[allow(unused_imports)] pub use gen_ChromeFilePropertyBag::*; #[cfg(feature = "ChromeWorker")] #[allow(non_snake_case)] mod gen_ChromeWorker; #[cfg(feature = "ChromeWorker")] #[allow(unused_imports)] pub use gen_ChromeWorker::*; #[cfg(feature = "Client")] #[allow(non_snake_case)] mod gen_Client; #[cfg(feature = "Client")] #[allow(unused_imports)] pub use gen_Client::*; #[cfg(feature = "ClientQueryOptions")] #[allow(non_snake_case)] mod gen_ClientQueryOptions; #[cfg(feature = "ClientQueryOptions")] #[allow(unused_imports)] pub use gen_ClientQueryOptions::*; #[cfg(feature = "ClientRectsAndTexts")] #[allow(non_snake_case)] mod gen_ClientRectsAndTexts; #[cfg(feature = "ClientRectsAndTexts")] #[allow(unused_imports)] pub use gen_ClientRectsAndTexts::*; #[cfg(feature = "ClientType")] #[allow(non_snake_case)] mod gen_ClientType; #[cfg(feature = "ClientType")] #[allow(unused_imports)] pub use gen_ClientType::*; #[cfg(feature = "Clients")] #[allow(non_snake_case)] mod gen_Clients; #[cfg(feature = "Clients")] #[allow(unused_imports)] pub use gen_Clients::*; #[cfg(feature = "Clipboard")] #[allow(non_snake_case)] mod gen_Clipboard; #[cfg(feature = "Clipboard")] #[allow(unused_imports)] pub use gen_Clipboard::*; #[cfg(feature = "ClipboardEvent")] #[allow(non_snake_case)] mod gen_ClipboardEvent; #[cfg(feature = "ClipboardEvent")] #[allow(unused_imports)] pub use gen_ClipboardEvent::*; #[cfg(feature = "ClipboardEventInit")] #[allow(non_snake_case)] mod gen_ClipboardEventInit; #[cfg(feature = "ClipboardEventInit")] #[allow(unused_imports)] pub use gen_ClipboardEventInit::*; #[cfg(feature = "ClipboardItem")] #[allow(non_snake_case)] mod gen_ClipboardItem; #[cfg(feature = "ClipboardItem")] #[allow(unused_imports)] pub use gen_ClipboardItem::*; #[cfg(feature = "ClipboardItemOptions")] #[allow(non_snake_case)] mod gen_ClipboardItemOptions; #[cfg(feature = "ClipboardItemOptions")] #[allow(unused_imports)] pub use gen_ClipboardItemOptions::*; #[cfg(feature = "ClipboardPermissionDescriptor")] #[allow(non_snake_case)] mod gen_ClipboardPermissionDescriptor; #[cfg(feature = "ClipboardPermissionDescriptor")] #[allow(unused_imports)] pub use gen_ClipboardPermissionDescriptor::*; #[cfg(feature = "ClipboardUnsanitizedFormats")] #[allow(non_snake_case)] mod gen_ClipboardUnsanitizedFormats; #[cfg(feature = "ClipboardUnsanitizedFormats")] #[allow(unused_imports)] pub use gen_ClipboardUnsanitizedFormats::*; #[cfg(feature = "CloseEvent")] #[allow(non_snake_case)] mod gen_CloseEvent; #[cfg(feature = "CloseEvent")] #[allow(unused_imports)] pub use gen_CloseEvent::*; #[cfg(feature = "CloseEventInit")] #[allow(non_snake_case)] mod gen_CloseEventInit; #[cfg(feature = "CloseEventInit")] #[allow(unused_imports)] pub use gen_CloseEventInit::*; #[cfg(feature = "CodecState")] #[allow(non_snake_case)] mod gen_CodecState; #[cfg(feature = "CodecState")] #[allow(unused_imports)] pub use gen_CodecState::*; #[cfg(feature = "CollectedClientData")] #[allow(non_snake_case)] mod gen_CollectedClientData; #[cfg(feature = "CollectedClientData")] #[allow(unused_imports)] pub use gen_CollectedClientData::*; #[cfg(feature = "ColorSpaceConversion")] #[allow(non_snake_case)] mod gen_ColorSpaceConversion; #[cfg(feature = "ColorSpaceConversion")] #[allow(unused_imports)] pub use gen_ColorSpaceConversion::*; #[cfg(feature = "Comment")] #[allow(non_snake_case)] mod gen_Comment; #[cfg(feature = "Comment")] #[allow(unused_imports)] pub use gen_Comment::*; #[cfg(feature = "CompositeOperation")] #[allow(non_snake_case)] mod gen_CompositeOperation; #[cfg(feature = "CompositeOperation")] #[allow(unused_imports)] pub use gen_CompositeOperation::*; #[cfg(feature = "CompositionEvent")] #[allow(non_snake_case)] mod gen_CompositionEvent; #[cfg(feature = "CompositionEvent")] #[allow(unused_imports)] pub use gen_CompositionEvent::*; #[cfg(feature = "CompositionEventInit")] #[allow(non_snake_case)] mod gen_CompositionEventInit; #[cfg(feature = "CompositionEventInit")] #[allow(unused_imports)] pub use gen_CompositionEventInit::*; #[cfg(feature = "CompressionFormat")] #[allow(non_snake_case)] mod gen_CompressionFormat; #[cfg(feature = "CompressionFormat")] #[allow(unused_imports)] pub use gen_CompressionFormat::*; #[cfg(feature = "CompressionStream")] #[allow(non_snake_case)] mod gen_CompressionStream; #[cfg(feature = "CompressionStream")] #[allow(unused_imports)] pub use gen_CompressionStream::*; #[cfg(feature = "ComputedEffectTiming")] #[allow(non_snake_case)] mod gen_ComputedEffectTiming; #[cfg(feature = "ComputedEffectTiming")] #[allow(unused_imports)] pub use gen_ComputedEffectTiming::*; #[cfg(feature = "ConnStatusDict")] #[allow(non_snake_case)] mod gen_ConnStatusDict; #[cfg(feature = "ConnStatusDict")] #[allow(unused_imports)] pub use gen_ConnStatusDict::*; #[cfg(feature = "ConnectionType")] #[allow(non_snake_case)] mod gen_ConnectionType; #[cfg(feature = "ConnectionType")] #[allow(unused_imports)] pub use gen_ConnectionType::*; #[cfg(feature = "ConsoleCounter")] #[allow(non_snake_case)] mod gen_ConsoleCounter; #[cfg(feature = "ConsoleCounter")] #[allow(unused_imports)] pub use gen_ConsoleCounter::*; #[cfg(feature = "ConsoleCounterError")] #[allow(non_snake_case)] mod gen_ConsoleCounterError; #[cfg(feature = "ConsoleCounterError")] #[allow(unused_imports)] pub use gen_ConsoleCounterError::*; #[cfg(feature = "ConsoleEvent")] #[allow(non_snake_case)] mod gen_ConsoleEvent; #[cfg(feature = "ConsoleEvent")] #[allow(unused_imports)] pub use gen_ConsoleEvent::*; #[cfg(feature = "ConsoleInstance")] #[allow(non_snake_case)] mod gen_ConsoleInstance; #[cfg(feature = "ConsoleInstance")] #[allow(unused_imports)] pub use gen_ConsoleInstance::*; #[cfg(feature = "ConsoleInstanceOptions")] #[allow(non_snake_case)] mod gen_ConsoleInstanceOptions; #[cfg(feature = "ConsoleInstanceOptions")] #[allow(unused_imports)] pub use gen_ConsoleInstanceOptions::*; #[cfg(feature = "ConsoleLevel")] #[allow(non_snake_case)] mod gen_ConsoleLevel; #[cfg(feature = "ConsoleLevel")] #[allow(unused_imports)] pub use gen_ConsoleLevel::*; #[cfg(feature = "ConsoleLogLevel")] #[allow(non_snake_case)] mod gen_ConsoleLogLevel; #[cfg(feature = "ConsoleLogLevel")] #[allow(unused_imports)] pub use gen_ConsoleLogLevel::*; #[cfg(feature = "ConsoleProfileEvent")] #[allow(non_snake_case)] mod gen_ConsoleProfileEvent; #[cfg(feature = "ConsoleProfileEvent")] #[allow(unused_imports)] pub use gen_ConsoleProfileEvent::*; #[cfg(feature = "ConsoleStackEntry")] #[allow(non_snake_case)] mod gen_ConsoleStackEntry; #[cfg(feature = "ConsoleStackEntry")] #[allow(unused_imports)] pub use gen_ConsoleStackEntry::*; #[cfg(feature = "ConsoleTimerError")] #[allow(non_snake_case)] mod gen_ConsoleTimerError; #[cfg(feature = "ConsoleTimerError")] #[allow(unused_imports)] pub use gen_ConsoleTimerError::*; #[cfg(feature = "ConsoleTimerLogOrEnd")] #[allow(non_snake_case)] mod gen_ConsoleTimerLogOrEnd; #[cfg(feature = "ConsoleTimerLogOrEnd")] #[allow(unused_imports)] pub use gen_ConsoleTimerLogOrEnd::*; #[cfg(feature = "ConsoleTimerStart")] #[allow(non_snake_case)] mod gen_ConsoleTimerStart; #[cfg(feature = "ConsoleTimerStart")] #[allow(unused_imports)] pub use gen_ConsoleTimerStart::*; #[cfg(feature = "ConstantSourceNode")] #[allow(non_snake_case)] mod gen_ConstantSourceNode; #[cfg(feature = "ConstantSourceNode")] #[allow(unused_imports)] pub use gen_ConstantSourceNode::*; #[cfg(feature = "ConstantSourceOptions")] #[allow(non_snake_case)] mod gen_ConstantSourceOptions; #[cfg(feature = "ConstantSourceOptions")] #[allow(unused_imports)] pub use gen_ConstantSourceOptions::*; #[cfg(feature = "ConstrainBooleanParameters")] #[allow(non_snake_case)] mod gen_ConstrainBooleanParameters; #[cfg(feature = "ConstrainBooleanParameters")] #[allow(unused_imports)] pub use gen_ConstrainBooleanParameters::*; #[cfg(feature = "ConstrainDomStringParameters")] #[allow(non_snake_case)] mod gen_ConstrainDomStringParameters; #[cfg(feature = "ConstrainDomStringParameters")] #[allow(unused_imports)] pub use gen_ConstrainDomStringParameters::*; #[cfg(feature = "ConstrainDoubleRange")] #[allow(non_snake_case)] mod gen_ConstrainDoubleRange; #[cfg(feature = "ConstrainDoubleRange")] #[allow(unused_imports)] pub use gen_ConstrainDoubleRange::*; #[cfg(feature = "ConstrainLongRange")] #[allow(non_snake_case)] mod gen_ConstrainLongRange; #[cfg(feature = "ConstrainLongRange")] #[allow(unused_imports)] pub use gen_ConstrainLongRange::*; #[cfg(feature = "ContextAttributes2d")] #[allow(non_snake_case)] mod gen_ContextAttributes2d; #[cfg(feature = "ContextAttributes2d")] #[allow(unused_imports)] pub use gen_ContextAttributes2d::*; #[cfg(feature = "ConvertCoordinateOptions")] #[allow(non_snake_case)] mod gen_ConvertCoordinateOptions; #[cfg(feature = "ConvertCoordinateOptions")] #[allow(unused_imports)] pub use gen_ConvertCoordinateOptions::*; #[cfg(feature = "ConvolverNode")] #[allow(non_snake_case)] mod gen_ConvolverNode; #[cfg(feature = "ConvolverNode")] #[allow(unused_imports)] pub use gen_ConvolverNode::*; #[cfg(feature = "ConvolverOptions")] #[allow(non_snake_case)] mod gen_ConvolverOptions; #[cfg(feature = "ConvolverOptions")] #[allow(unused_imports)] pub use gen_ConvolverOptions::*; #[cfg(feature = "Coordinates")] #[allow(non_snake_case)] mod gen_Coordinates; #[cfg(feature = "Coordinates")] #[allow(unused_imports)] pub use gen_Coordinates::*; #[cfg(feature = "CountQueuingStrategy")] #[allow(non_snake_case)] mod gen_CountQueuingStrategy; #[cfg(feature = "CountQueuingStrategy")] #[allow(unused_imports)] pub use gen_CountQueuingStrategy::*; #[cfg(feature = "Credential")] #[allow(non_snake_case)] mod gen_Credential; #[cfg(feature = "Credential")] #[allow(unused_imports)] pub use gen_Credential::*; #[cfg(feature = "CredentialCreationOptions")] #[allow(non_snake_case)] mod gen_CredentialCreationOptions; #[cfg(feature = "CredentialCreationOptions")] #[allow(unused_imports)] pub use gen_CredentialCreationOptions::*; #[cfg(feature = "CredentialPropertiesOutput")] #[allow(non_snake_case)] mod gen_CredentialPropertiesOutput; #[cfg(feature = "CredentialPropertiesOutput")] #[allow(unused_imports)] pub use gen_CredentialPropertiesOutput::*; #[cfg(feature = "CredentialRequestOptions")] #[allow(non_snake_case)] mod gen_CredentialRequestOptions; #[cfg(feature = "CredentialRequestOptions")] #[allow(unused_imports)] pub use gen_CredentialRequestOptions::*; #[cfg(feature = "CredentialsContainer")] #[allow(non_snake_case)] mod gen_CredentialsContainer; #[cfg(feature = "CredentialsContainer")] #[allow(unused_imports)] pub use gen_CredentialsContainer::*; #[cfg(feature = "Crypto")] #[allow(non_snake_case)] mod gen_Crypto; #[cfg(feature = "Crypto")] #[allow(unused_imports)] pub use gen_Crypto::*; #[cfg(feature = "CryptoKey")] #[allow(non_snake_case)] mod gen_CryptoKey; #[cfg(feature = "CryptoKey")] #[allow(unused_imports)] pub use gen_CryptoKey::*; #[cfg(feature = "CryptoKeyPair")] #[allow(non_snake_case)] mod gen_CryptoKeyPair; #[cfg(feature = "CryptoKeyPair")] #[allow(unused_imports)] pub use gen_CryptoKeyPair::*; #[cfg(feature = "CssAnimation")] #[allow(non_snake_case)] mod gen_CssAnimation; #[cfg(feature = "CssAnimation")] #[allow(unused_imports)] pub use gen_CssAnimation::*; #[cfg(feature = "CssBoxType")] #[allow(non_snake_case)] mod gen_CssBoxType; #[cfg(feature = "CssBoxType")] #[allow(unused_imports)] pub use gen_CssBoxType::*; #[cfg(feature = "CssConditionRule")] #[allow(non_snake_case)] mod gen_CssConditionRule; #[cfg(feature = "CssConditionRule")] #[allow(unused_imports)] pub use gen_CssConditionRule::*; #[cfg(feature = "CssCounterStyleRule")] #[allow(non_snake_case)] mod gen_CssCounterStyleRule; #[cfg(feature = "CssCounterStyleRule")] #[allow(unused_imports)] pub use gen_CssCounterStyleRule::*; #[cfg(feature = "CssFontFaceRule")] #[allow(non_snake_case)] mod gen_CssFontFaceRule; #[cfg(feature = "CssFontFaceRule")] #[allow(unused_imports)] pub use gen_CssFontFaceRule::*; #[cfg(feature = "CssFontFeatureValuesRule")] #[allow(non_snake_case)] mod gen_CssFontFeatureValuesRule; #[cfg(feature = "CssFontFeatureValuesRule")] #[allow(unused_imports)] pub use gen_CssFontFeatureValuesRule::*; #[cfg(feature = "CssGroupingRule")] #[allow(non_snake_case)] mod gen_CssGroupingRule; #[cfg(feature = "CssGroupingRule")] #[allow(unused_imports)] pub use gen_CssGroupingRule::*; #[cfg(feature = "CssImportRule")] #[allow(non_snake_case)] mod gen_CssImportRule; #[cfg(feature = "CssImportRule")] #[allow(unused_imports)] pub use gen_CssImportRule::*; #[cfg(feature = "CssKeyframeRule")] #[allow(non_snake_case)] mod gen_CssKeyframeRule; #[cfg(feature = "CssKeyframeRule")] #[allow(unused_imports)] pub use gen_CssKeyframeRule::*; #[cfg(feature = "CssKeyframesRule")] #[allow(non_snake_case)] mod gen_CssKeyframesRule; #[cfg(feature = "CssKeyframesRule")] #[allow(unused_imports)] pub use gen_CssKeyframesRule::*; #[cfg(feature = "CssMediaRule")] #[allow(non_snake_case)] mod gen_CssMediaRule; #[cfg(feature = "CssMediaRule")] #[allow(unused_imports)] pub use gen_CssMediaRule::*; #[cfg(feature = "CssNamespaceRule")] #[allow(non_snake_case)] mod gen_CssNamespaceRule; #[cfg(feature = "CssNamespaceRule")] #[allow(unused_imports)] pub use gen_CssNamespaceRule::*; #[cfg(feature = "CssPageRule")] #[allow(non_snake_case)] mod gen_CssPageRule; #[cfg(feature = "CssPageRule")] #[allow(unused_imports)] pub use gen_CssPageRule::*; #[cfg(feature = "CssPseudoElement")] #[allow(non_snake_case)] mod gen_CssPseudoElement; #[cfg(feature = "CssPseudoElement")] #[allow(unused_imports)] pub use gen_CssPseudoElement::*; #[cfg(feature = "CssRule")] #[allow(non_snake_case)] mod gen_CssRule; #[cfg(feature = "CssRule")] #[allow(unused_imports)] pub use gen_CssRule::*; #[cfg(feature = "CssRuleList")] #[allow(non_snake_case)] mod gen_CssRuleList; #[cfg(feature = "CssRuleList")] #[allow(unused_imports)] pub use gen_CssRuleList::*; #[cfg(feature = "CssStyleDeclaration")] #[allow(non_snake_case)] mod gen_CssStyleDeclaration; #[cfg(feature = "CssStyleDeclaration")] #[allow(unused_imports)] pub use gen_CssStyleDeclaration::*; #[cfg(feature = "CssStyleRule")] #[allow(non_snake_case)] mod gen_CssStyleRule; #[cfg(feature = "CssStyleRule")] #[allow(unused_imports)] pub use gen_CssStyleRule::*; #[cfg(feature = "CssStyleSheet")] #[allow(non_snake_case)] mod gen_CssStyleSheet; #[cfg(feature = "CssStyleSheet")] #[allow(unused_imports)] pub use gen_CssStyleSheet::*; #[cfg(feature = "CssStyleSheetParsingMode")] #[allow(non_snake_case)] mod gen_CssStyleSheetParsingMode; #[cfg(feature = "CssStyleSheetParsingMode")] #[allow(unused_imports)] pub use gen_CssStyleSheetParsingMode::*; #[cfg(feature = "CssSupportsRule")] #[allow(non_snake_case)] mod gen_CssSupportsRule; #[cfg(feature = "CssSupportsRule")] #[allow(unused_imports)] pub use gen_CssSupportsRule::*; #[cfg(feature = "CssTransition")] #[allow(non_snake_case)] mod gen_CssTransition; #[cfg(feature = "CssTransition")] #[allow(unused_imports)] pub use gen_CssTransition::*; #[cfg(feature = "CustomElementRegistry")] #[allow(non_snake_case)] mod gen_CustomElementRegistry; #[cfg(feature = "CustomElementRegistry")] #[allow(unused_imports)] pub use gen_CustomElementRegistry::*; #[cfg(feature = "CustomEvent")] #[allow(non_snake_case)] mod gen_CustomEvent; #[cfg(feature = "CustomEvent")] #[allow(unused_imports)] pub use gen_CustomEvent::*; #[cfg(feature = "CustomEventInit")] #[allow(non_snake_case)] mod gen_CustomEventInit; #[cfg(feature = "CustomEventInit")] #[allow(unused_imports)] pub use gen_CustomEventInit::*; #[cfg(feature = "DataTransfer")] #[allow(non_snake_case)] mod gen_DataTransfer; #[cfg(feature = "DataTransfer")] #[allow(unused_imports)] pub use gen_DataTransfer::*; #[cfg(feature = "DataTransferItem")] #[allow(non_snake_case)] mod gen_DataTransferItem; #[cfg(feature = "DataTransferItem")] #[allow(unused_imports)] pub use gen_DataTransferItem::*; #[cfg(feature = "DataTransferItemList")] #[allow(non_snake_case)] mod gen_DataTransferItemList; #[cfg(feature = "DataTransferItemList")] #[allow(unused_imports)] pub use gen_DataTransferItemList::*; #[cfg(feature = "DateTimeValue")] #[allow(non_snake_case)] mod gen_DateTimeValue; #[cfg(feature = "DateTimeValue")] #[allow(unused_imports)] pub use gen_DateTimeValue::*; #[cfg(feature = "DecoderDoctorNotification")] #[allow(non_snake_case)] mod gen_DecoderDoctorNotification; #[cfg(feature = "DecoderDoctorNotification")] #[allow(unused_imports)] pub use gen_DecoderDoctorNotification::*; #[cfg(feature = "DecoderDoctorNotificationType")] #[allow(non_snake_case)] mod gen_DecoderDoctorNotificationType; #[cfg(feature = "DecoderDoctorNotificationType")] #[allow(unused_imports)] pub use gen_DecoderDoctorNotificationType::*; #[cfg(feature = "DecompressionStream")] #[allow(non_snake_case)] mod gen_DecompressionStream; #[cfg(feature = "DecompressionStream")] #[allow(unused_imports)] pub use gen_DecompressionStream::*; #[cfg(feature = "DedicatedWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_DedicatedWorkerGlobalScope; #[cfg(feature = "DedicatedWorkerGlobalScope")] #[allow(unused_imports)] pub use gen_DedicatedWorkerGlobalScope::*; #[cfg(feature = "DelayNode")] #[allow(non_snake_case)] mod gen_DelayNode; #[cfg(feature = "DelayNode")] #[allow(unused_imports)] pub use gen_DelayNode::*; #[cfg(feature = "DelayOptions")] #[allow(non_snake_case)] mod gen_DelayOptions; #[cfg(feature = "DelayOptions")] #[allow(unused_imports)] pub use gen_DelayOptions::*; #[cfg(feature = "DeviceAcceleration")] #[allow(non_snake_case)] mod gen_DeviceAcceleration; #[cfg(feature = "DeviceAcceleration")] #[allow(unused_imports)] pub use gen_DeviceAcceleration::*; #[cfg(feature = "DeviceAccelerationInit")] #[allow(non_snake_case)] mod gen_DeviceAccelerationInit; #[cfg(feature = "DeviceAccelerationInit")] #[allow(unused_imports)] pub use gen_DeviceAccelerationInit::*; #[cfg(feature = "DeviceLightEvent")] #[allow(non_snake_case)] mod gen_DeviceLightEvent; #[cfg(feature = "DeviceLightEvent")] #[allow(unused_imports)] pub use gen_DeviceLightEvent::*; #[cfg(feature = "DeviceLightEventInit")] #[allow(non_snake_case)] mod gen_DeviceLightEventInit; #[cfg(feature = "DeviceLightEventInit")] #[allow(unused_imports)] pub use gen_DeviceLightEventInit::*; #[cfg(feature = "DeviceMotionEvent")] #[allow(non_snake_case)] mod gen_DeviceMotionEvent; #[cfg(feature = "DeviceMotionEvent")] #[allow(unused_imports)] pub use gen_DeviceMotionEvent::*; #[cfg(feature = "DeviceMotionEventInit")] #[allow(non_snake_case)] mod gen_DeviceMotionEventInit; #[cfg(feature = "DeviceMotionEventInit")] #[allow(unused_imports)] pub use gen_DeviceMotionEventInit::*; #[cfg(feature = "DeviceOrientationEvent")] #[allow(non_snake_case)] mod gen_DeviceOrientationEvent; #[cfg(feature = "DeviceOrientationEvent")] #[allow(unused_imports)] pub use gen_DeviceOrientationEvent::*; #[cfg(feature = "DeviceOrientationEventInit")] #[allow(non_snake_case)] mod gen_DeviceOrientationEventInit; #[cfg(feature = "DeviceOrientationEventInit")] #[allow(unused_imports)] pub use gen_DeviceOrientationEventInit::*; #[cfg(feature = "DeviceProximityEvent")] #[allow(non_snake_case)] mod gen_DeviceProximityEvent; #[cfg(feature = "DeviceProximityEvent")] #[allow(unused_imports)] pub use gen_DeviceProximityEvent::*; #[cfg(feature = "DeviceProximityEventInit")] #[allow(non_snake_case)] mod gen_DeviceProximityEventInit; #[cfg(feature = "DeviceProximityEventInit")] #[allow(unused_imports)] pub use gen_DeviceProximityEventInit::*; #[cfg(feature = "DeviceRotationRate")] #[allow(non_snake_case)] mod gen_DeviceRotationRate; #[cfg(feature = "DeviceRotationRate")] #[allow(unused_imports)] pub use gen_DeviceRotationRate::*; #[cfg(feature = "DeviceRotationRateInit")] #[allow(non_snake_case)] mod gen_DeviceRotationRateInit; #[cfg(feature = "DeviceRotationRateInit")] #[allow(unused_imports)] pub use gen_DeviceRotationRateInit::*; #[cfg(feature = "DhKeyDeriveParams")] #[allow(non_snake_case)] mod gen_DhKeyDeriveParams; #[cfg(feature = "DhKeyDeriveParams")] #[allow(unused_imports)] pub use gen_DhKeyDeriveParams::*; #[cfg(feature = "DirectionSetting")] #[allow(non_snake_case)] mod gen_DirectionSetting; #[cfg(feature = "DirectionSetting")] #[allow(unused_imports)] pub use gen_DirectionSetting::*; #[cfg(feature = "Directory")] #[allow(non_snake_case)] mod gen_Directory; #[cfg(feature = "Directory")] #[allow(unused_imports)] pub use gen_Directory::*; #[cfg(feature = "DirectoryPickerOptions")] #[allow(non_snake_case)] mod gen_DirectoryPickerOptions; #[cfg(feature = "DirectoryPickerOptions")] #[allow(unused_imports)] pub use gen_DirectoryPickerOptions::*; #[cfg(feature = "DisplayMediaStreamConstraints")] #[allow(non_snake_case)] mod gen_DisplayMediaStreamConstraints; #[cfg(feature = "DisplayMediaStreamConstraints")] #[allow(unused_imports)] pub use gen_DisplayMediaStreamConstraints::*; #[cfg(feature = "DisplayNameOptions")] #[allow(non_snake_case)] mod gen_DisplayNameOptions; #[cfg(feature = "DisplayNameOptions")] #[allow(unused_imports)] pub use gen_DisplayNameOptions::*; #[cfg(feature = "DisplayNameResult")] #[allow(non_snake_case)] mod gen_DisplayNameResult; #[cfg(feature = "DisplayNameResult")] #[allow(unused_imports)] pub use gen_DisplayNameResult::*; #[cfg(feature = "DistanceModelType")] #[allow(non_snake_case)] mod gen_DistanceModelType; #[cfg(feature = "DistanceModelType")] #[allow(unused_imports)] pub use gen_DistanceModelType::*; #[cfg(feature = "DnsCacheDict")] #[allow(non_snake_case)] mod gen_DnsCacheDict; #[cfg(feature = "DnsCacheDict")] #[allow(unused_imports)] pub use gen_DnsCacheDict::*; #[cfg(feature = "DnsCacheEntry")] #[allow(non_snake_case)] mod gen_DnsCacheEntry; #[cfg(feature = "DnsCacheEntry")] #[allow(unused_imports)] pub use gen_DnsCacheEntry::*; #[cfg(feature = "DnsLookupDict")] #[allow(non_snake_case)] mod gen_DnsLookupDict; #[cfg(feature = "DnsLookupDict")] #[allow(unused_imports)] pub use gen_DnsLookupDict::*; #[cfg(feature = "Document")] #[allow(non_snake_case)] mod gen_Document; #[cfg(feature = "Document")] #[allow(unused_imports)] pub use gen_Document::*; #[cfg(feature = "DocumentFragment")] #[allow(non_snake_case)] mod gen_DocumentFragment; #[cfg(feature = "DocumentFragment")] #[allow(unused_imports)] pub use gen_DocumentFragment::*; #[cfg(feature = "DocumentTimeline")] #[allow(non_snake_case)] mod gen_DocumentTimeline; #[cfg(feature = "DocumentTimeline")] #[allow(unused_imports)] pub use gen_DocumentTimeline::*; #[cfg(feature = "DocumentTimelineOptions")] #[allow(non_snake_case)] mod gen_DocumentTimelineOptions; #[cfg(feature = "DocumentTimelineOptions")] #[allow(unused_imports)] pub use gen_DocumentTimelineOptions::*; #[cfg(feature = "DocumentType")] #[allow(non_snake_case)] mod gen_DocumentType; #[cfg(feature = "DocumentType")] #[allow(unused_imports)] pub use gen_DocumentType::*; #[cfg(feature = "DomError")] #[allow(non_snake_case)] mod gen_DomError; #[cfg(feature = "DomError")] #[allow(unused_imports)] pub use gen_DomError::*; #[cfg(feature = "DomException")] #[allow(non_snake_case)] mod gen_DomException; #[cfg(feature = "DomException")] #[allow(unused_imports)] pub use gen_DomException::*; #[cfg(feature = "DomImplementation")] #[allow(non_snake_case)] mod gen_DomImplementation; #[cfg(feature = "DomImplementation")] #[allow(unused_imports)] pub use gen_DomImplementation::*; #[cfg(feature = "DomMatrix")] #[allow(non_snake_case)] mod gen_DomMatrix; #[cfg(feature = "DomMatrix")] #[allow(unused_imports)] pub use gen_DomMatrix::*; #[cfg(feature = "DomMatrix2dInit")] #[allow(non_snake_case)] mod gen_DomMatrix2dInit; #[cfg(feature = "DomMatrix2dInit")] #[allow(unused_imports)] pub use gen_DomMatrix2dInit::*; #[cfg(feature = "DomMatrixInit")] #[allow(non_snake_case)] mod gen_DomMatrixInit; #[cfg(feature = "DomMatrixInit")] #[allow(unused_imports)] pub use gen_DomMatrixInit::*; #[cfg(feature = "DomMatrixReadOnly")] #[allow(non_snake_case)] mod gen_DomMatrixReadOnly; #[cfg(feature = "DomMatrixReadOnly")] #[allow(unused_imports)] pub use gen_DomMatrixReadOnly::*; #[cfg(feature = "DomParser")] #[allow(non_snake_case)] mod gen_DomParser; #[cfg(feature = "DomParser")] #[allow(unused_imports)] pub use gen_DomParser::*; #[cfg(feature = "DomPoint")] #[allow(non_snake_case)] mod gen_DomPoint; #[cfg(feature = "DomPoint")] #[allow(unused_imports)] pub use gen_DomPoint::*; #[cfg(feature = "DomPointInit")] #[allow(non_snake_case)] mod gen_DomPointInit; #[cfg(feature = "DomPointInit")] #[allow(unused_imports)] pub use gen_DomPointInit::*; #[cfg(feature = "DomPointReadOnly")] #[allow(non_snake_case)] mod gen_DomPointReadOnly; #[cfg(feature = "DomPointReadOnly")] #[allow(unused_imports)] pub use gen_DomPointReadOnly::*; #[cfg(feature = "DomQuad")] #[allow(non_snake_case)] mod gen_DomQuad; #[cfg(feature = "DomQuad")] #[allow(unused_imports)] pub use gen_DomQuad::*; #[cfg(feature = "DomQuadInit")] #[allow(non_snake_case)] mod gen_DomQuadInit; #[cfg(feature = "DomQuadInit")] #[allow(unused_imports)] pub use gen_DomQuadInit::*; #[cfg(feature = "DomQuadJson")] #[allow(non_snake_case)] mod gen_DomQuadJson; #[cfg(feature = "DomQuadJson")] #[allow(unused_imports)] pub use gen_DomQuadJson::*; #[cfg(feature = "DomRect")] #[allow(non_snake_case)] mod gen_DomRect; #[cfg(feature = "DomRect")] #[allow(unused_imports)] pub use gen_DomRect::*; #[cfg(feature = "DomRectInit")] #[allow(non_snake_case)] mod gen_DomRectInit; #[cfg(feature = "DomRectInit")] #[allow(unused_imports)] pub use gen_DomRectInit::*; #[cfg(feature = "DomRectList")] #[allow(non_snake_case)] mod gen_DomRectList; #[cfg(feature = "DomRectList")] #[allow(unused_imports)] pub use gen_DomRectList::*; #[cfg(feature = "DomRectReadOnly")] #[allow(non_snake_case)] mod gen_DomRectReadOnly; #[cfg(feature = "DomRectReadOnly")] #[allow(unused_imports)] pub use gen_DomRectReadOnly::*; #[cfg(feature = "DomRequest")] #[allow(non_snake_case)] mod gen_DomRequest; #[cfg(feature = "DomRequest")] #[allow(unused_imports)] pub use gen_DomRequest::*; #[cfg(feature = "DomRequestReadyState")] #[allow(non_snake_case)] mod gen_DomRequestReadyState; #[cfg(feature = "DomRequestReadyState")] #[allow(unused_imports)] pub use gen_DomRequestReadyState::*; #[cfg(feature = "DomStringList")] #[allow(non_snake_case)] mod gen_DomStringList; #[cfg(feature = "DomStringList")] #[allow(unused_imports)] pub use gen_DomStringList::*; #[cfg(feature = "DomStringMap")] #[allow(non_snake_case)] mod gen_DomStringMap; #[cfg(feature = "DomStringMap")] #[allow(unused_imports)] pub use gen_DomStringMap::*; #[cfg(feature = "DomTokenList")] #[allow(non_snake_case)] mod gen_DomTokenList; #[cfg(feature = "DomTokenList")] #[allow(unused_imports)] pub use gen_DomTokenList::*; #[cfg(feature = "DomWindowResizeEventDetail")] #[allow(non_snake_case)] mod gen_DomWindowResizeEventDetail; #[cfg(feature = "DomWindowResizeEventDetail")] #[allow(unused_imports)] pub use gen_DomWindowResizeEventDetail::*; #[cfg(feature = "DoubleRange")] #[allow(non_snake_case)] mod gen_DoubleRange; #[cfg(feature = "DoubleRange")] #[allow(unused_imports)] pub use gen_DoubleRange::*; #[cfg(feature = "DragEvent")] #[allow(non_snake_case)] mod gen_DragEvent; #[cfg(feature = "DragEvent")] #[allow(unused_imports)] pub use gen_DragEvent::*; #[cfg(feature = "DragEventInit")] #[allow(non_snake_case)] mod gen_DragEventInit; #[cfg(feature = "DragEventInit")] #[allow(unused_imports)] pub use gen_DragEventInit::*; #[cfg(feature = "DynamicsCompressorNode")] #[allow(non_snake_case)] mod gen_DynamicsCompressorNode; #[cfg(feature = "DynamicsCompressorNode")] #[allow(unused_imports)] pub use gen_DynamicsCompressorNode::*; #[cfg(feature = "DynamicsCompressorOptions")] #[allow(non_snake_case)] mod gen_DynamicsCompressorOptions; #[cfg(feature = "DynamicsCompressorOptions")] #[allow(unused_imports)] pub use gen_DynamicsCompressorOptions::*; #[cfg(feature = "EcKeyAlgorithm")] #[allow(non_snake_case)] mod gen_EcKeyAlgorithm; #[cfg(feature = "EcKeyAlgorithm")] #[allow(unused_imports)] pub use gen_EcKeyAlgorithm::*; #[cfg(feature = "EcKeyGenParams")] #[allow(non_snake_case)] mod gen_EcKeyGenParams; #[cfg(feature = "EcKeyGenParams")] #[allow(unused_imports)] pub use gen_EcKeyGenParams::*; #[cfg(feature = "EcKeyImportParams")] #[allow(non_snake_case)] mod gen_EcKeyImportParams; #[cfg(feature = "EcKeyImportParams")] #[allow(unused_imports)] pub use gen_EcKeyImportParams::*; #[cfg(feature = "EcdhKeyDeriveParams")] #[allow(non_snake_case)] mod gen_EcdhKeyDeriveParams; #[cfg(feature = "EcdhKeyDeriveParams")] #[allow(unused_imports)] pub use gen_EcdhKeyDeriveParams::*; #[cfg(feature = "EcdsaParams")] #[allow(non_snake_case)] mod gen_EcdsaParams; #[cfg(feature = "EcdsaParams")] #[allow(unused_imports)] pub use gen_EcdsaParams::*; #[cfg(feature = "EffectTiming")] #[allow(non_snake_case)] mod gen_EffectTiming; #[cfg(feature = "EffectTiming")] #[allow(unused_imports)] pub use gen_EffectTiming::*; #[cfg(feature = "Element")] #[allow(non_snake_case)] mod gen_Element; #[cfg(feature = "Element")] #[allow(unused_imports)] pub use gen_Element::*; #[cfg(feature = "ElementCreationOptions")] #[allow(non_snake_case)] mod gen_ElementCreationOptions; #[cfg(feature = "ElementCreationOptions")] #[allow(unused_imports)] pub use gen_ElementCreationOptions::*; #[cfg(feature = "ElementDefinitionOptions")] #[allow(non_snake_case)] mod gen_ElementDefinitionOptions; #[cfg(feature = "ElementDefinitionOptions")] #[allow(unused_imports)] pub use gen_ElementDefinitionOptions::*; #[cfg(feature = "EncodedAudioChunk")] #[allow(non_snake_case)] mod gen_EncodedAudioChunk; #[cfg(feature = "EncodedAudioChunk")] #[allow(unused_imports)] pub use gen_EncodedAudioChunk::*; #[cfg(feature = "EncodedAudioChunkInit")] #[allow(non_snake_case)] mod gen_EncodedAudioChunkInit; #[cfg(feature = "EncodedAudioChunkInit")] #[allow(unused_imports)] pub use gen_EncodedAudioChunkInit::*; #[cfg(feature = "EncodedAudioChunkMetadata")] #[allow(non_snake_case)] mod gen_EncodedAudioChunkMetadata; #[cfg(feature = "EncodedAudioChunkMetadata")] #[allow(unused_imports)] pub use gen_EncodedAudioChunkMetadata::*; #[cfg(feature = "EncodedAudioChunkType")] #[allow(non_snake_case)] mod gen_EncodedAudioChunkType; #[cfg(feature = "EncodedAudioChunkType")] #[allow(unused_imports)] pub use gen_EncodedAudioChunkType::*; #[cfg(feature = "EncodedVideoChunk")] #[allow(non_snake_case)] mod gen_EncodedVideoChunk; #[cfg(feature = "EncodedVideoChunk")] #[allow(unused_imports)] pub use gen_EncodedVideoChunk::*; #[cfg(feature = "EncodedVideoChunkInit")] #[allow(non_snake_case)] mod gen_EncodedVideoChunkInit; #[cfg(feature = "EncodedVideoChunkInit")] #[allow(unused_imports)] pub use gen_EncodedVideoChunkInit::*; #[cfg(feature = "EncodedVideoChunkMetadata")] #[allow(non_snake_case)] mod gen_EncodedVideoChunkMetadata; #[cfg(feature = "EncodedVideoChunkMetadata")] #[allow(unused_imports)] pub use gen_EncodedVideoChunkMetadata::*; #[cfg(feature = "EncodedVideoChunkType")] #[allow(non_snake_case)] mod gen_EncodedVideoChunkType; #[cfg(feature = "EncodedVideoChunkType")] #[allow(unused_imports)] pub use gen_EncodedVideoChunkType::*; #[cfg(feature = "EndingTypes")] #[allow(non_snake_case)] mod gen_EndingTypes; #[cfg(feature = "EndingTypes")] #[allow(unused_imports)] pub use gen_EndingTypes::*; #[cfg(feature = "ErrorCallback")] #[allow(non_snake_case)] mod gen_ErrorCallback; #[cfg(feature = "ErrorCallback")] #[allow(unused_imports)] pub use gen_ErrorCallback::*; #[cfg(feature = "ErrorEvent")] #[allow(non_snake_case)] mod gen_ErrorEvent; #[cfg(feature = "ErrorEvent")] #[allow(unused_imports)] pub use gen_ErrorEvent::*; #[cfg(feature = "ErrorEventInit")] #[allow(non_snake_case)] mod gen_ErrorEventInit; #[cfg(feature = "ErrorEventInit")] #[allow(unused_imports)] pub use gen_ErrorEventInit::*; #[cfg(feature = "Event")] #[allow(non_snake_case)] mod gen_Event; #[cfg(feature = "Event")] #[allow(unused_imports)] pub use gen_Event::*; #[cfg(feature = "EventInit")] #[allow(non_snake_case)] mod gen_EventInit; #[cfg(feature = "EventInit")] #[allow(unused_imports)] pub use gen_EventInit::*; #[cfg(feature = "EventListener")] #[allow(non_snake_case)] mod gen_EventListener; #[cfg(feature = "EventListener")] #[allow(unused_imports)] pub use gen_EventListener::*; #[cfg(feature = "EventListenerOptions")] #[allow(non_snake_case)] mod gen_EventListenerOptions; #[cfg(feature = "EventListenerOptions")] #[allow(unused_imports)] pub use gen_EventListenerOptions::*; #[cfg(feature = "EventModifierInit")] #[allow(non_snake_case)] mod gen_EventModifierInit; #[cfg(feature = "EventModifierInit")] #[allow(unused_imports)] pub use gen_EventModifierInit::*; #[cfg(feature = "EventSource")] #[allow(non_snake_case)] mod gen_EventSource; #[cfg(feature = "EventSource")] #[allow(unused_imports)] pub use gen_EventSource::*; #[cfg(feature = "EventSourceInit")] #[allow(non_snake_case)] mod gen_EventSourceInit; #[cfg(feature = "EventSourceInit")] #[allow(unused_imports)] pub use gen_EventSourceInit::*; #[cfg(feature = "EventTarget")] #[allow(non_snake_case)] mod gen_EventTarget; #[cfg(feature = "EventTarget")] #[allow(unused_imports)] pub use gen_EventTarget::*; #[cfg(feature = "Exception")] #[allow(non_snake_case)] mod gen_Exception; #[cfg(feature = "Exception")] #[allow(unused_imports)] pub use gen_Exception::*; #[cfg(feature = "ExtBlendMinmax")] #[allow(non_snake_case)] mod gen_ExtBlendMinmax; #[cfg(feature = "ExtBlendMinmax")] #[allow(unused_imports)] pub use gen_ExtBlendMinmax::*; #[cfg(feature = "ExtColorBufferFloat")] #[allow(non_snake_case)] mod gen_ExtColorBufferFloat; #[cfg(feature = "ExtColorBufferFloat")] #[allow(unused_imports)] pub use gen_ExtColorBufferFloat::*; #[cfg(feature = "ExtColorBufferHalfFloat")] #[allow(non_snake_case)] mod gen_ExtColorBufferHalfFloat; #[cfg(feature = "ExtColorBufferHalfFloat")] #[allow(unused_imports)] pub use gen_ExtColorBufferHalfFloat::*; #[cfg(feature = "ExtDisjointTimerQuery")] #[allow(non_snake_case)] mod gen_ExtDisjointTimerQuery; #[cfg(feature = "ExtDisjointTimerQuery")] #[allow(unused_imports)] pub use gen_ExtDisjointTimerQuery::*; #[cfg(feature = "ExtFragDepth")] #[allow(non_snake_case)] mod gen_ExtFragDepth; #[cfg(feature = "ExtFragDepth")] #[allow(unused_imports)] pub use gen_ExtFragDepth::*; #[cfg(feature = "ExtSRgb")] #[allow(non_snake_case)] mod gen_ExtSRgb; #[cfg(feature = "ExtSRgb")] #[allow(unused_imports)] pub use gen_ExtSRgb::*; #[cfg(feature = "ExtShaderTextureLod")] #[allow(non_snake_case)] mod gen_ExtShaderTextureLod; #[cfg(feature = "ExtShaderTextureLod")] #[allow(unused_imports)] pub use gen_ExtShaderTextureLod::*; #[cfg(feature = "ExtTextureFilterAnisotropic")] #[allow(non_snake_case)] mod gen_ExtTextureFilterAnisotropic; #[cfg(feature = "ExtTextureFilterAnisotropic")] #[allow(unused_imports)] pub use gen_ExtTextureFilterAnisotropic::*; #[cfg(feature = "ExtTextureNorm16")] #[allow(non_snake_case)] mod gen_ExtTextureNorm16; #[cfg(feature = "ExtTextureNorm16")] #[allow(unused_imports)] pub use gen_ExtTextureNorm16::*; #[cfg(feature = "ExtendableEvent")] #[allow(non_snake_case)] mod gen_ExtendableEvent; #[cfg(feature = "ExtendableEvent")] #[allow(unused_imports)] pub use gen_ExtendableEvent::*; #[cfg(feature = "ExtendableEventInit")] #[allow(non_snake_case)] mod gen_ExtendableEventInit; #[cfg(feature = "ExtendableEventInit")] #[allow(unused_imports)] pub use gen_ExtendableEventInit::*; #[cfg(feature = "ExtendableMessageEvent")] #[allow(non_snake_case)] mod gen_ExtendableMessageEvent; #[cfg(feature = "ExtendableMessageEvent")] #[allow(unused_imports)] pub use gen_ExtendableMessageEvent::*; #[cfg(feature = "ExtendableMessageEventInit")] #[allow(non_snake_case)] mod gen_ExtendableMessageEventInit; #[cfg(feature = "ExtendableMessageEventInit")] #[allow(unused_imports)] pub use gen_ExtendableMessageEventInit::*; #[cfg(feature = "External")] #[allow(non_snake_case)] mod gen_External; #[cfg(feature = "External")] #[allow(unused_imports)] pub use gen_External::*; #[cfg(feature = "FakePluginMimeEntry")] #[allow(non_snake_case)] mod gen_FakePluginMimeEntry; #[cfg(feature = "FakePluginMimeEntry")] #[allow(unused_imports)] pub use gen_FakePluginMimeEntry::*; #[cfg(feature = "FakePluginTagInit")] #[allow(non_snake_case)] mod gen_FakePluginTagInit; #[cfg(feature = "FakePluginTagInit")] #[allow(unused_imports)] pub use gen_FakePluginTagInit::*; #[cfg(feature = "FetchEvent")] #[allow(non_snake_case)] mod gen_FetchEvent; #[cfg(feature = "FetchEvent")] #[allow(unused_imports)] pub use gen_FetchEvent::*; #[cfg(feature = "FetchEventInit")] #[allow(non_snake_case)] mod gen_FetchEventInit; #[cfg(feature = "FetchEventInit")] #[allow(unused_imports)] pub use gen_FetchEventInit::*; #[cfg(feature = "FetchObserver")] #[allow(non_snake_case)] mod gen_FetchObserver; #[cfg(feature = "FetchObserver")] #[allow(unused_imports)] pub use gen_FetchObserver::*; #[cfg(feature = "FetchReadableStreamReadDataArray")] #[allow(non_snake_case)] mod gen_FetchReadableStreamReadDataArray; #[cfg(feature = "FetchReadableStreamReadDataArray")] #[allow(unused_imports)] pub use gen_FetchReadableStreamReadDataArray::*; #[cfg(feature = "FetchReadableStreamReadDataDone")] #[allow(non_snake_case)] mod gen_FetchReadableStreamReadDataDone; #[cfg(feature = "FetchReadableStreamReadDataDone")] #[allow(unused_imports)] pub use gen_FetchReadableStreamReadDataDone::*; #[cfg(feature = "FetchState")] #[allow(non_snake_case)] mod gen_FetchState; #[cfg(feature = "FetchState")] #[allow(unused_imports)] pub use gen_FetchState::*; #[cfg(feature = "File")] #[allow(non_snake_case)] mod gen_File; #[cfg(feature = "File")] #[allow(unused_imports)] pub use gen_File::*; #[cfg(feature = "FileCallback")] #[allow(non_snake_case)] mod gen_FileCallback; #[cfg(feature = "FileCallback")] #[allow(unused_imports)] pub use gen_FileCallback::*; #[cfg(feature = "FileList")] #[allow(non_snake_case)] mod gen_FileList; #[cfg(feature = "FileList")] #[allow(unused_imports)] pub use gen_FileList::*; #[cfg(feature = "FilePickerAcceptType")] #[allow(non_snake_case)] mod gen_FilePickerAcceptType; #[cfg(feature = "FilePickerAcceptType")] #[allow(unused_imports)] pub use gen_FilePickerAcceptType::*; #[cfg(feature = "FilePickerOptions")] #[allow(non_snake_case)] mod gen_FilePickerOptions; #[cfg(feature = "FilePickerOptions")] #[allow(unused_imports)] pub use gen_FilePickerOptions::*; #[cfg(feature = "FilePropertyBag")] #[allow(non_snake_case)] mod gen_FilePropertyBag; #[cfg(feature = "FilePropertyBag")] #[allow(unused_imports)] pub use gen_FilePropertyBag::*; #[cfg(feature = "FileReader")] #[allow(non_snake_case)] mod gen_FileReader; #[cfg(feature = "FileReader")] #[allow(unused_imports)] pub use gen_FileReader::*; #[cfg(feature = "FileReaderSync")] #[allow(non_snake_case)] mod gen_FileReaderSync; #[cfg(feature = "FileReaderSync")] #[allow(unused_imports)] pub use gen_FileReaderSync::*; #[cfg(feature = "FileSystem")] #[allow(non_snake_case)] mod gen_FileSystem; #[cfg(feature = "FileSystem")] #[allow(unused_imports)] pub use gen_FileSystem::*; #[cfg(feature = "FileSystemCreateWritableOptions")] #[allow(non_snake_case)] mod gen_FileSystemCreateWritableOptions; #[cfg(feature = "FileSystemCreateWritableOptions")] #[allow(unused_imports)] pub use gen_FileSystemCreateWritableOptions::*; #[cfg(feature = "FileSystemDirectoryEntry")] #[allow(non_snake_case)] mod gen_FileSystemDirectoryEntry; #[cfg(feature = "FileSystemDirectoryEntry")] #[allow(unused_imports)] pub use gen_FileSystemDirectoryEntry::*; #[cfg(feature = "FileSystemDirectoryHandle")] #[allow(non_snake_case)] mod gen_FileSystemDirectoryHandle; #[cfg(feature = "FileSystemDirectoryHandle")] #[allow(unused_imports)] pub use gen_FileSystemDirectoryHandle::*; #[cfg(feature = "FileSystemDirectoryReader")] #[allow(non_snake_case)] mod gen_FileSystemDirectoryReader; #[cfg(feature = "FileSystemDirectoryReader")] #[allow(unused_imports)] pub use gen_FileSystemDirectoryReader::*; #[cfg(feature = "FileSystemEntriesCallback")] #[allow(non_snake_case)] mod gen_FileSystemEntriesCallback; #[cfg(feature = "FileSystemEntriesCallback")] #[allow(unused_imports)] pub use gen_FileSystemEntriesCallback::*; #[cfg(feature = "FileSystemEntry")] #[allow(non_snake_case)] mod gen_FileSystemEntry; #[cfg(feature = "FileSystemEntry")] #[allow(unused_imports)] pub use gen_FileSystemEntry::*; #[cfg(feature = "FileSystemEntryCallback")] #[allow(non_snake_case)] mod gen_FileSystemEntryCallback; #[cfg(feature = "FileSystemEntryCallback")] #[allow(unused_imports)] pub use gen_FileSystemEntryCallback::*; #[cfg(feature = "FileSystemFileEntry")] #[allow(non_snake_case)] mod gen_FileSystemFileEntry; #[cfg(feature = "FileSystemFileEntry")] #[allow(unused_imports)] pub use gen_FileSystemFileEntry::*; #[cfg(feature = "FileSystemFileHandle")] #[allow(non_snake_case)] mod gen_FileSystemFileHandle; #[cfg(feature = "FileSystemFileHandle")] #[allow(unused_imports)] pub use gen_FileSystemFileHandle::*; #[cfg(feature = "FileSystemFlags")] #[allow(non_snake_case)] mod gen_FileSystemFlags; #[cfg(feature = "FileSystemFlags")] #[allow(unused_imports)] pub use gen_FileSystemFlags::*; #[cfg(feature = "FileSystemGetDirectoryOptions")] #[allow(non_snake_case)] mod gen_FileSystemGetDirectoryOptions; #[cfg(feature = "FileSystemGetDirectoryOptions")] #[allow(unused_imports)] pub use gen_FileSystemGetDirectoryOptions::*; #[cfg(feature = "FileSystemGetFileOptions")] #[allow(non_snake_case)] mod gen_FileSystemGetFileOptions; #[cfg(feature = "FileSystemGetFileOptions")] #[allow(unused_imports)] pub use gen_FileSystemGetFileOptions::*; #[cfg(feature = "FileSystemHandle")] #[allow(non_snake_case)] mod gen_FileSystemHandle; #[cfg(feature = "FileSystemHandle")] #[allow(unused_imports)] pub use gen_FileSystemHandle::*; #[cfg(feature = "FileSystemHandleKind")] #[allow(non_snake_case)] mod gen_FileSystemHandleKind; #[cfg(feature = "FileSystemHandleKind")] #[allow(unused_imports)] pub use gen_FileSystemHandleKind::*; #[cfg(feature = "FileSystemHandlePermissionDescriptor")] #[allow(non_snake_case)] mod gen_FileSystemHandlePermissionDescriptor; #[cfg(feature = "FileSystemHandlePermissionDescriptor")] #[allow(unused_imports)] pub use gen_FileSystemHandlePermissionDescriptor::*; #[cfg(feature = "FileSystemPermissionDescriptor")] #[allow(non_snake_case)] mod gen_FileSystemPermissionDescriptor; #[cfg(feature = "FileSystemPermissionDescriptor")] #[allow(unused_imports)] pub use gen_FileSystemPermissionDescriptor::*; #[cfg(feature = "FileSystemPermissionMode")] #[allow(non_snake_case)] mod gen_FileSystemPermissionMode; #[cfg(feature = "FileSystemPermissionMode")] #[allow(unused_imports)] pub use gen_FileSystemPermissionMode::*; #[cfg(feature = "FileSystemReadWriteOptions")] #[allow(non_snake_case)] mod gen_FileSystemReadWriteOptions; #[cfg(feature = "FileSystemReadWriteOptions")] #[allow(unused_imports)] pub use gen_FileSystemReadWriteOptions::*; #[cfg(feature = "FileSystemRemoveOptions")] #[allow(non_snake_case)] mod gen_FileSystemRemoveOptions; #[cfg(feature = "FileSystemRemoveOptions")] #[allow(unused_imports)] pub use gen_FileSystemRemoveOptions::*; #[cfg(feature = "FileSystemSyncAccessHandle")] #[allow(non_snake_case)] mod gen_FileSystemSyncAccessHandle; #[cfg(feature = "FileSystemSyncAccessHandle")] #[allow(unused_imports)] pub use gen_FileSystemSyncAccessHandle::*; #[cfg(feature = "FileSystemWritableFileStream")] #[allow(non_snake_case)] mod gen_FileSystemWritableFileStream; #[cfg(feature = "FileSystemWritableFileStream")] #[allow(unused_imports)] pub use gen_FileSystemWritableFileStream::*; #[cfg(feature = "FillMode")] #[allow(non_snake_case)] mod gen_FillMode; #[cfg(feature = "FillMode")] #[allow(unused_imports)] pub use gen_FillMode::*; #[cfg(feature = "FlashClassification")] #[allow(non_snake_case)] mod gen_FlashClassification; #[cfg(feature = "FlashClassification")] #[allow(unused_imports)] pub use gen_FlashClassification::*; #[cfg(feature = "FlowControlType")] #[allow(non_snake_case)] mod gen_FlowControlType; #[cfg(feature = "FlowControlType")] #[allow(unused_imports)] pub use gen_FlowControlType::*; #[cfg(feature = "FocusEvent")] #[allow(non_snake_case)] mod gen_FocusEvent; #[cfg(feature = "FocusEvent")] #[allow(unused_imports)] pub use gen_FocusEvent::*; #[cfg(feature = "FocusEventInit")] #[allow(non_snake_case)] mod gen_FocusEventInit; #[cfg(feature = "FocusEventInit")] #[allow(unused_imports)] pub use gen_FocusEventInit::*; #[cfg(feature = "FocusOptions")] #[allow(non_snake_case)] mod gen_FocusOptions; #[cfg(feature = "FocusOptions")] #[allow(unused_imports)] pub use gen_FocusOptions::*; #[cfg(feature = "FontData")] #[allow(non_snake_case)] mod gen_FontData; #[cfg(feature = "FontData")] #[allow(unused_imports)] pub use gen_FontData::*; #[cfg(feature = "FontFace")] #[allow(non_snake_case)] mod gen_FontFace; #[cfg(feature = "FontFace")] #[allow(unused_imports)] pub use gen_FontFace::*; #[cfg(feature = "FontFaceDescriptors")] #[allow(non_snake_case)] mod gen_FontFaceDescriptors; #[cfg(feature = "FontFaceDescriptors")] #[allow(unused_imports)] pub use gen_FontFaceDescriptors::*; #[cfg(feature = "FontFaceLoadStatus")] #[allow(non_snake_case)] mod gen_FontFaceLoadStatus; #[cfg(feature = "FontFaceLoadStatus")] #[allow(unused_imports)] pub use gen_FontFaceLoadStatus::*; #[cfg(feature = "FontFaceSet")] #[allow(non_snake_case)] mod gen_FontFaceSet; #[cfg(feature = "FontFaceSet")] #[allow(unused_imports)] pub use gen_FontFaceSet::*; #[cfg(feature = "FontFaceSetIterator")] #[allow(non_snake_case)] mod gen_FontFaceSetIterator; #[cfg(feature = "FontFaceSetIterator")] #[allow(unused_imports)] pub use gen_FontFaceSetIterator::*; #[cfg(feature = "FontFaceSetIteratorResult")] #[allow(non_snake_case)] mod gen_FontFaceSetIteratorResult; #[cfg(feature = "FontFaceSetIteratorResult")] #[allow(unused_imports)] pub use gen_FontFaceSetIteratorResult::*; #[cfg(feature = "FontFaceSetLoadEvent")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadEvent; #[cfg(feature = "FontFaceSetLoadEvent")] #[allow(unused_imports)] pub use gen_FontFaceSetLoadEvent::*; #[cfg(feature = "FontFaceSetLoadEventInit")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadEventInit; #[cfg(feature = "FontFaceSetLoadEventInit")] #[allow(unused_imports)] pub use gen_FontFaceSetLoadEventInit::*; #[cfg(feature = "FontFaceSetLoadStatus")] #[allow(non_snake_case)] mod gen_FontFaceSetLoadStatus; #[cfg(feature = "FontFaceSetLoadStatus")] #[allow(unused_imports)] pub use gen_FontFaceSetLoadStatus::*; #[cfg(feature = "FormData")] #[allow(non_snake_case)] mod gen_FormData; #[cfg(feature = "FormData")] #[allow(unused_imports)] pub use gen_FormData::*; #[cfg(feature = "FrameType")] #[allow(non_snake_case)] mod gen_FrameType; #[cfg(feature = "FrameType")] #[allow(unused_imports)] pub use gen_FrameType::*; #[cfg(feature = "FuzzingFunctions")] #[allow(non_snake_case)] mod gen_FuzzingFunctions; #[cfg(feature = "FuzzingFunctions")] #[allow(unused_imports)] pub use gen_FuzzingFunctions::*; #[cfg(feature = "GainNode")] #[allow(non_snake_case)] mod gen_GainNode; #[cfg(feature = "GainNode")] #[allow(unused_imports)] pub use gen_GainNode::*; #[cfg(feature = "GainOptions")] #[allow(non_snake_case)] mod gen_GainOptions; #[cfg(feature = "GainOptions")] #[allow(unused_imports)] pub use gen_GainOptions::*; #[cfg(feature = "Gamepad")] #[allow(non_snake_case)] mod gen_Gamepad; #[cfg(feature = "Gamepad")] #[allow(unused_imports)] pub use gen_Gamepad::*; #[cfg(feature = "GamepadButton")] #[allow(non_snake_case)] mod gen_GamepadButton; #[cfg(feature = "GamepadButton")] #[allow(unused_imports)] pub use gen_GamepadButton::*; #[cfg(feature = "GamepadEffectParameters")] #[allow(non_snake_case)] mod gen_GamepadEffectParameters; #[cfg(feature = "GamepadEffectParameters")] #[allow(unused_imports)] pub use gen_GamepadEffectParameters::*; #[cfg(feature = "GamepadEvent")] #[allow(non_snake_case)] mod gen_GamepadEvent; #[cfg(feature = "GamepadEvent")] #[allow(unused_imports)] pub use gen_GamepadEvent::*; #[cfg(feature = "GamepadEventInit")] #[allow(non_snake_case)] mod gen_GamepadEventInit; #[cfg(feature = "GamepadEventInit")] #[allow(unused_imports)] pub use gen_GamepadEventInit::*; #[cfg(feature = "GamepadHand")] #[allow(non_snake_case)] mod gen_GamepadHand; #[cfg(feature = "GamepadHand")] #[allow(unused_imports)] pub use gen_GamepadHand::*; #[cfg(feature = "GamepadHapticActuator")] #[allow(non_snake_case)] mod gen_GamepadHapticActuator; #[cfg(feature = "GamepadHapticActuator")] #[allow(unused_imports)] pub use gen_GamepadHapticActuator::*; #[cfg(feature = "GamepadHapticActuatorType")] #[allow(non_snake_case)] mod gen_GamepadHapticActuatorType; #[cfg(feature = "GamepadHapticActuatorType")] #[allow(unused_imports)] pub use gen_GamepadHapticActuatorType::*; #[cfg(feature = "GamepadHapticEffectType")] #[allow(non_snake_case)] mod gen_GamepadHapticEffectType; #[cfg(feature = "GamepadHapticEffectType")] #[allow(unused_imports)] pub use gen_GamepadHapticEffectType::*; #[cfg(feature = "GamepadHapticsResult")] #[allow(non_snake_case)] mod gen_GamepadHapticsResult; #[cfg(feature = "GamepadHapticsResult")] #[allow(unused_imports)] pub use gen_GamepadHapticsResult::*; #[cfg(feature = "GamepadMappingType")] #[allow(non_snake_case)] mod gen_GamepadMappingType; #[cfg(feature = "GamepadMappingType")] #[allow(unused_imports)] pub use gen_GamepadMappingType::*; #[cfg(feature = "GamepadPose")] #[allow(non_snake_case)] mod gen_GamepadPose; #[cfg(feature = "GamepadPose")] #[allow(unused_imports)] pub use gen_GamepadPose::*; #[cfg(feature = "GamepadTouch")] #[allow(non_snake_case)] mod gen_GamepadTouch; #[cfg(feature = "GamepadTouch")] #[allow(unused_imports)] pub use gen_GamepadTouch::*; #[cfg(feature = "Geolocation")] #[allow(non_snake_case)] mod gen_Geolocation; #[cfg(feature = "Geolocation")] #[allow(unused_imports)] pub use gen_Geolocation::*; #[cfg(feature = "GestureEvent")] #[allow(non_snake_case)] mod gen_GestureEvent; #[cfg(feature = "GestureEvent")] #[allow(unused_imports)] pub use gen_GestureEvent::*; #[cfg(feature = "GetAnimationsOptions")] #[allow(non_snake_case)] mod gen_GetAnimationsOptions; #[cfg(feature = "GetAnimationsOptions")] #[allow(unused_imports)] pub use gen_GetAnimationsOptions::*; #[cfg(feature = "GetRootNodeOptions")] #[allow(non_snake_case)] mod gen_GetRootNodeOptions; #[cfg(feature = "GetRootNodeOptions")] #[allow(unused_imports)] pub use gen_GetRootNodeOptions::*; #[cfg(feature = "GetUserMediaRequest")] #[allow(non_snake_case)] mod gen_GetUserMediaRequest; #[cfg(feature = "GetUserMediaRequest")] #[allow(unused_imports)] pub use gen_GetUserMediaRequest::*; #[cfg(feature = "Gpu")] #[allow(non_snake_case)] mod gen_Gpu; #[cfg(feature = "Gpu")] #[allow(unused_imports)] pub use gen_Gpu::*; #[cfg(feature = "GpuAdapter")] #[allow(non_snake_case)] mod gen_GpuAdapter; #[cfg(feature = "GpuAdapter")] #[allow(unused_imports)] pub use gen_GpuAdapter::*; #[cfg(feature = "GpuAdapterInfo")] #[allow(non_snake_case)] mod gen_GpuAdapterInfo; #[cfg(feature = "GpuAdapterInfo")] #[allow(unused_imports)] pub use gen_GpuAdapterInfo::*; #[cfg(feature = "GpuAddressMode")] #[allow(non_snake_case)] mod gen_GpuAddressMode; #[cfg(feature = "GpuAddressMode")] #[allow(unused_imports)] pub use gen_GpuAddressMode::*; #[cfg(feature = "GpuAutoLayoutMode")] #[allow(non_snake_case)] mod gen_GpuAutoLayoutMode; #[cfg(feature = "GpuAutoLayoutMode")] #[allow(unused_imports)] pub use gen_GpuAutoLayoutMode::*; #[cfg(feature = "GpuBindGroup")] #[allow(non_snake_case)] mod gen_GpuBindGroup; #[cfg(feature = "GpuBindGroup")] #[allow(unused_imports)] pub use gen_GpuBindGroup::*; #[cfg(feature = "GpuBindGroupDescriptor")] #[allow(non_snake_case)] mod gen_GpuBindGroupDescriptor; #[cfg(feature = "GpuBindGroupDescriptor")] #[allow(unused_imports)] pub use gen_GpuBindGroupDescriptor::*; #[cfg(feature = "GpuBindGroupEntry")] #[allow(non_snake_case)] mod gen_GpuBindGroupEntry; #[cfg(feature = "GpuBindGroupEntry")] #[allow(unused_imports)] pub use gen_GpuBindGroupEntry::*; #[cfg(feature = "GpuBindGroupLayout")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayout; #[cfg(feature = "GpuBindGroupLayout")] #[allow(unused_imports)] pub use gen_GpuBindGroupLayout::*; #[cfg(feature = "GpuBindGroupLayoutDescriptor")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayoutDescriptor; #[cfg(feature = "GpuBindGroupLayoutDescriptor")] #[allow(unused_imports)] pub use gen_GpuBindGroupLayoutDescriptor::*; #[cfg(feature = "GpuBindGroupLayoutEntry")] #[allow(non_snake_case)] mod gen_GpuBindGroupLayoutEntry; #[cfg(feature = "GpuBindGroupLayoutEntry")] #[allow(unused_imports)] pub use gen_GpuBindGroupLayoutEntry::*; #[cfg(feature = "GpuBlendComponent")] #[allow(non_snake_case)] mod gen_GpuBlendComponent; #[cfg(feature = "GpuBlendComponent")] #[allow(unused_imports)] pub use gen_GpuBlendComponent::*; #[cfg(feature = "GpuBlendFactor")] #[allow(non_snake_case)] mod gen_GpuBlendFactor; #[cfg(feature = "GpuBlendFactor")] #[allow(unused_imports)] pub use gen_GpuBlendFactor::*; #[cfg(feature = "GpuBlendOperation")] #[allow(non_snake_case)] mod gen_GpuBlendOperation; #[cfg(feature = "GpuBlendOperation")] #[allow(unused_imports)] pub use gen_GpuBlendOperation::*; #[cfg(feature = "GpuBlendState")] #[allow(non_snake_case)] mod gen_GpuBlendState; #[cfg(feature = "GpuBlendState")] #[allow(unused_imports)] pub use gen_GpuBlendState::*; #[cfg(feature = "GpuBuffer")] #[allow(non_snake_case)] mod gen_GpuBuffer; #[cfg(feature = "GpuBuffer")] #[allow(unused_imports)] pub use gen_GpuBuffer::*; #[cfg(feature = "GpuBufferBinding")] #[allow(non_snake_case)] mod gen_GpuBufferBinding; #[cfg(feature = "GpuBufferBinding")] #[allow(unused_imports)] pub use gen_GpuBufferBinding::*; #[cfg(feature = "GpuBufferBindingLayout")] #[allow(non_snake_case)] mod gen_GpuBufferBindingLayout; #[cfg(feature = "GpuBufferBindingLayout")] #[allow(unused_imports)] pub use gen_GpuBufferBindingLayout::*; #[cfg(feature = "GpuBufferBindingType")] #[allow(non_snake_case)] mod gen_GpuBufferBindingType; #[cfg(feature = "GpuBufferBindingType")] #[allow(unused_imports)] pub use gen_GpuBufferBindingType::*; #[cfg(feature = "GpuBufferDescriptor")] #[allow(non_snake_case)] mod gen_GpuBufferDescriptor; #[cfg(feature = "GpuBufferDescriptor")] #[allow(unused_imports)] pub use gen_GpuBufferDescriptor::*; #[cfg(feature = "GpuBufferMapState")] #[allow(non_snake_case)] mod gen_GpuBufferMapState; #[cfg(feature = "GpuBufferMapState")] #[allow(unused_imports)] pub use gen_GpuBufferMapState::*; #[cfg(feature = "GpuCanvasAlphaMode")] #[allow(non_snake_case)] mod gen_GpuCanvasAlphaMode; #[cfg(feature = "GpuCanvasAlphaMode")] #[allow(unused_imports)] pub use gen_GpuCanvasAlphaMode::*; #[cfg(feature = "GpuCanvasConfiguration")] #[allow(non_snake_case)] mod gen_GpuCanvasConfiguration; #[cfg(feature = "GpuCanvasConfiguration")] #[allow(unused_imports)] pub use gen_GpuCanvasConfiguration::*; #[cfg(feature = "GpuCanvasContext")] #[allow(non_snake_case)] mod gen_GpuCanvasContext; #[cfg(feature = "GpuCanvasContext")] #[allow(unused_imports)] pub use gen_GpuCanvasContext::*; #[cfg(feature = "GpuCanvasToneMapping")] #[allow(non_snake_case)] mod gen_GpuCanvasToneMapping; #[cfg(feature = "GpuCanvasToneMapping")] #[allow(unused_imports)] pub use gen_GpuCanvasToneMapping::*; #[cfg(feature = "GpuCanvasToneMappingMode")] #[allow(non_snake_case)] mod gen_GpuCanvasToneMappingMode; #[cfg(feature = "GpuCanvasToneMappingMode")] #[allow(unused_imports)] pub use gen_GpuCanvasToneMappingMode::*; #[cfg(feature = "GpuColorDict")] #[allow(non_snake_case)] mod gen_GpuColorDict; #[cfg(feature = "GpuColorDict")] #[allow(unused_imports)] pub use gen_GpuColorDict::*; #[cfg(feature = "GpuColorTargetState")] #[allow(non_snake_case)] mod gen_GpuColorTargetState; #[cfg(feature = "GpuColorTargetState")] #[allow(unused_imports)] pub use gen_GpuColorTargetState::*; #[cfg(feature = "GpuCommandBuffer")] #[allow(non_snake_case)] mod gen_GpuCommandBuffer; #[cfg(feature = "GpuCommandBuffer")] #[allow(unused_imports)] pub use gen_GpuCommandBuffer::*; #[cfg(feature = "GpuCommandBufferDescriptor")] #[allow(non_snake_case)] mod gen_GpuCommandBufferDescriptor; #[cfg(feature = "GpuCommandBufferDescriptor")] #[allow(unused_imports)] pub use gen_GpuCommandBufferDescriptor::*; #[cfg(feature = "GpuCommandEncoder")] #[allow(non_snake_case)] mod gen_GpuCommandEncoder; #[cfg(feature = "GpuCommandEncoder")] #[allow(unused_imports)] pub use gen_GpuCommandEncoder::*; #[cfg(feature = "GpuCommandEncoderDescriptor")] #[allow(non_snake_case)] mod gen_GpuCommandEncoderDescriptor; #[cfg(feature = "GpuCommandEncoderDescriptor")] #[allow(unused_imports)] pub use gen_GpuCommandEncoderDescriptor::*; #[cfg(feature = "GpuCompareFunction")] #[allow(non_snake_case)] mod gen_GpuCompareFunction; #[cfg(feature = "GpuCompareFunction")] #[allow(unused_imports)] pub use gen_GpuCompareFunction::*; #[cfg(feature = "GpuCompilationInfo")] #[allow(non_snake_case)] mod gen_GpuCompilationInfo; #[cfg(feature = "GpuCompilationInfo")] #[allow(unused_imports)] pub use gen_GpuCompilationInfo::*; #[cfg(feature = "GpuCompilationMessage")] #[allow(non_snake_case)] mod gen_GpuCompilationMessage; #[cfg(feature = "GpuCompilationMessage")] #[allow(unused_imports)] pub use gen_GpuCompilationMessage::*; #[cfg(feature = "GpuCompilationMessageType")] #[allow(non_snake_case)] mod gen_GpuCompilationMessageType; #[cfg(feature = "GpuCompilationMessageType")] #[allow(unused_imports)] pub use gen_GpuCompilationMessageType::*; #[cfg(feature = "GpuComputePassDescriptor")] #[allow(non_snake_case)] mod gen_GpuComputePassDescriptor; #[cfg(feature = "GpuComputePassDescriptor")] #[allow(unused_imports)] pub use gen_GpuComputePassDescriptor::*; #[cfg(feature = "GpuComputePassEncoder")] #[allow(non_snake_case)] mod gen_GpuComputePassEncoder; #[cfg(feature = "GpuComputePassEncoder")] #[allow(unused_imports)] pub use gen_GpuComputePassEncoder::*; #[cfg(feature = "GpuComputePassTimestampWrites")] #[allow(non_snake_case)] mod gen_GpuComputePassTimestampWrites; #[cfg(feature = "GpuComputePassTimestampWrites")] #[allow(unused_imports)] pub use gen_GpuComputePassTimestampWrites::*; #[cfg(feature = "GpuComputePipeline")] #[allow(non_snake_case)] mod gen_GpuComputePipeline; #[cfg(feature = "GpuComputePipeline")] #[allow(unused_imports)] pub use gen_GpuComputePipeline::*; #[cfg(feature = "GpuComputePipelineDescriptor")] #[allow(non_snake_case)] mod gen_GpuComputePipelineDescriptor; #[cfg(feature = "GpuComputePipelineDescriptor")] #[allow(unused_imports)] pub use gen_GpuComputePipelineDescriptor::*; #[cfg(feature = "GpuCopyExternalImageDestInfo")] #[allow(non_snake_case)] mod gen_GpuCopyExternalImageDestInfo; #[cfg(feature = "GpuCopyExternalImageDestInfo")] #[allow(unused_imports)] pub use gen_GpuCopyExternalImageDestInfo::*; #[cfg(feature = "GpuCopyExternalImageSourceInfo")] #[allow(non_snake_case)] mod gen_GpuCopyExternalImageSourceInfo; #[cfg(feature = "GpuCopyExternalImageSourceInfo")] #[allow(unused_imports)] pub use gen_GpuCopyExternalImageSourceInfo::*; #[cfg(feature = "GpuCullMode")] #[allow(non_snake_case)] mod gen_GpuCullMode; #[cfg(feature = "GpuCullMode")] #[allow(unused_imports)] pub use gen_GpuCullMode::*; #[cfg(feature = "GpuDepthStencilState")] #[allow(non_snake_case)] mod gen_GpuDepthStencilState; #[cfg(feature = "GpuDepthStencilState")] #[allow(unused_imports)] pub use gen_GpuDepthStencilState::*; #[cfg(feature = "GpuDevice")] #[allow(non_snake_case)] mod gen_GpuDevice; #[cfg(feature = "GpuDevice")] #[allow(unused_imports)] pub use gen_GpuDevice::*; #[cfg(feature = "GpuDeviceDescriptor")] #[allow(non_snake_case)] mod gen_GpuDeviceDescriptor; #[cfg(feature = "GpuDeviceDescriptor")] #[allow(unused_imports)] pub use gen_GpuDeviceDescriptor::*; #[cfg(feature = "GpuDeviceLostInfo")] #[allow(non_snake_case)] mod gen_GpuDeviceLostInfo; #[cfg(feature = "GpuDeviceLostInfo")] #[allow(unused_imports)] pub use gen_GpuDeviceLostInfo::*; #[cfg(feature = "GpuDeviceLostReason")] #[allow(non_snake_case)] mod gen_GpuDeviceLostReason; #[cfg(feature = "GpuDeviceLostReason")] #[allow(unused_imports)] pub use gen_GpuDeviceLostReason::*; #[cfg(feature = "GpuError")] #[allow(non_snake_case)] mod gen_GpuError; #[cfg(feature = "GpuError")] #[allow(unused_imports)] pub use gen_GpuError::*; #[cfg(feature = "GpuErrorFilter")] #[allow(non_snake_case)] mod gen_GpuErrorFilter; #[cfg(feature = "GpuErrorFilter")] #[allow(unused_imports)] pub use gen_GpuErrorFilter::*; #[cfg(feature = "GpuExtent3dDict")] #[allow(non_snake_case)] mod gen_GpuExtent3dDict; #[cfg(feature = "GpuExtent3dDict")] #[allow(unused_imports)] pub use gen_GpuExtent3dDict::*; #[cfg(feature = "GpuExternalTexture")] #[allow(non_snake_case)] mod gen_GpuExternalTexture; #[cfg(feature = "GpuExternalTexture")] #[allow(unused_imports)] pub use gen_GpuExternalTexture::*; #[cfg(feature = "GpuExternalTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuExternalTextureBindingLayout; #[cfg(feature = "GpuExternalTextureBindingLayout")] #[allow(unused_imports)] pub use gen_GpuExternalTextureBindingLayout::*; #[cfg(feature = "GpuExternalTextureDescriptor")] #[allow(non_snake_case)] mod gen_GpuExternalTextureDescriptor; #[cfg(feature = "GpuExternalTextureDescriptor")] #[allow(unused_imports)] pub use gen_GpuExternalTextureDescriptor::*; #[cfg(feature = "GpuFeatureName")] #[allow(non_snake_case)] mod gen_GpuFeatureName; #[cfg(feature = "GpuFeatureName")] #[allow(unused_imports)] pub use gen_GpuFeatureName::*; #[cfg(feature = "GpuFilterMode")] #[allow(non_snake_case)] mod gen_GpuFilterMode; #[cfg(feature = "GpuFilterMode")] #[allow(unused_imports)] pub use gen_GpuFilterMode::*; #[cfg(feature = "GpuFragmentState")] #[allow(non_snake_case)] mod gen_GpuFragmentState; #[cfg(feature = "GpuFragmentState")] #[allow(unused_imports)] pub use gen_GpuFragmentState::*; #[cfg(feature = "GpuFrontFace")] #[allow(non_snake_case)] mod gen_GpuFrontFace; #[cfg(feature = "GpuFrontFace")] #[allow(unused_imports)] pub use gen_GpuFrontFace::*; #[cfg(feature = "GpuIndexFormat")] #[allow(non_snake_case)] mod gen_GpuIndexFormat; #[cfg(feature = "GpuIndexFormat")] #[allow(unused_imports)] pub use gen_GpuIndexFormat::*; #[cfg(feature = "GpuInternalError")] #[allow(non_snake_case)] mod gen_GpuInternalError; #[cfg(feature = "GpuInternalError")] #[allow(unused_imports)] pub use gen_GpuInternalError::*; #[cfg(feature = "GpuLoadOp")] #[allow(non_snake_case)] mod gen_GpuLoadOp; #[cfg(feature = "GpuLoadOp")] #[allow(unused_imports)] pub use gen_GpuLoadOp::*; #[cfg(feature = "GpuMipmapFilterMode")] #[allow(non_snake_case)] mod gen_GpuMipmapFilterMode; #[cfg(feature = "GpuMipmapFilterMode")] #[allow(unused_imports)] pub use gen_GpuMipmapFilterMode::*; #[cfg(feature = "GpuMultisampleState")] #[allow(non_snake_case)] mod gen_GpuMultisampleState; #[cfg(feature = "GpuMultisampleState")] #[allow(unused_imports)] pub use gen_GpuMultisampleState::*; #[cfg(feature = "GpuObjectDescriptorBase")] #[allow(non_snake_case)] mod gen_GpuObjectDescriptorBase; #[cfg(feature = "GpuObjectDescriptorBase")] #[allow(unused_imports)] pub use gen_GpuObjectDescriptorBase::*; #[cfg(feature = "GpuOrigin2dDict")] #[allow(non_snake_case)] mod gen_GpuOrigin2dDict; #[cfg(feature = "GpuOrigin2dDict")] #[allow(unused_imports)] pub use gen_GpuOrigin2dDict::*; #[cfg(feature = "GpuOrigin3dDict")] #[allow(non_snake_case)] mod gen_GpuOrigin3dDict; #[cfg(feature = "GpuOrigin3dDict")] #[allow(unused_imports)] pub use gen_GpuOrigin3dDict::*; #[cfg(feature = "GpuOutOfMemoryError")] #[allow(non_snake_case)] mod gen_GpuOutOfMemoryError; #[cfg(feature = "GpuOutOfMemoryError")] #[allow(unused_imports)] pub use gen_GpuOutOfMemoryError::*; #[cfg(feature = "GpuPipelineDescriptorBase")] #[allow(non_snake_case)] mod gen_GpuPipelineDescriptorBase; #[cfg(feature = "GpuPipelineDescriptorBase")] #[allow(unused_imports)] pub use gen_GpuPipelineDescriptorBase::*; #[cfg(feature = "GpuPipelineError")] #[allow(non_snake_case)] mod gen_GpuPipelineError; #[cfg(feature = "GpuPipelineError")] #[allow(unused_imports)] pub use gen_GpuPipelineError::*; #[cfg(feature = "GpuPipelineErrorInit")] #[allow(non_snake_case)] mod gen_GpuPipelineErrorInit; #[cfg(feature = "GpuPipelineErrorInit")] #[allow(unused_imports)] pub use gen_GpuPipelineErrorInit::*; #[cfg(feature = "GpuPipelineErrorReason")] #[allow(non_snake_case)] mod gen_GpuPipelineErrorReason; #[cfg(feature = "GpuPipelineErrorReason")] #[allow(unused_imports)] pub use gen_GpuPipelineErrorReason::*; #[cfg(feature = "GpuPipelineLayout")] #[allow(non_snake_case)] mod gen_GpuPipelineLayout; #[cfg(feature = "GpuPipelineLayout")] #[allow(unused_imports)] pub use gen_GpuPipelineLayout::*; #[cfg(feature = "GpuPipelineLayoutDescriptor")] #[allow(non_snake_case)] mod gen_GpuPipelineLayoutDescriptor; #[cfg(feature = "GpuPipelineLayoutDescriptor")] #[allow(unused_imports)] pub use gen_GpuPipelineLayoutDescriptor::*; #[cfg(feature = "GpuPowerPreference")] #[allow(non_snake_case)] mod gen_GpuPowerPreference; #[cfg(feature = "GpuPowerPreference")] #[allow(unused_imports)] pub use gen_GpuPowerPreference::*; #[cfg(feature = "GpuPrimitiveState")] #[allow(non_snake_case)] mod gen_GpuPrimitiveState; #[cfg(feature = "GpuPrimitiveState")] #[allow(unused_imports)] pub use gen_GpuPrimitiveState::*; #[cfg(feature = "GpuPrimitiveTopology")] #[allow(non_snake_case)] mod gen_GpuPrimitiveTopology; #[cfg(feature = "GpuPrimitiveTopology")] #[allow(unused_imports)] pub use gen_GpuPrimitiveTopology::*; #[cfg(feature = "GpuProgrammableStage")] #[allow(non_snake_case)] mod gen_GpuProgrammableStage; #[cfg(feature = "GpuProgrammableStage")] #[allow(unused_imports)] pub use gen_GpuProgrammableStage::*; #[cfg(feature = "GpuQuerySet")] #[allow(non_snake_case)] mod gen_GpuQuerySet; #[cfg(feature = "GpuQuerySet")] #[allow(unused_imports)] pub use gen_GpuQuerySet::*; #[cfg(feature = "GpuQuerySetDescriptor")] #[allow(non_snake_case)] mod gen_GpuQuerySetDescriptor; #[cfg(feature = "GpuQuerySetDescriptor")] #[allow(unused_imports)] pub use gen_GpuQuerySetDescriptor::*; #[cfg(feature = "GpuQueryType")] #[allow(non_snake_case)] mod gen_GpuQueryType; #[cfg(feature = "GpuQueryType")] #[allow(unused_imports)] pub use gen_GpuQueryType::*; #[cfg(feature = "GpuQueue")] #[allow(non_snake_case)] mod gen_GpuQueue; #[cfg(feature = "GpuQueue")] #[allow(unused_imports)] pub use gen_GpuQueue::*; #[cfg(feature = "GpuQueueDescriptor")] #[allow(non_snake_case)] mod gen_GpuQueueDescriptor; #[cfg(feature = "GpuQueueDescriptor")] #[allow(unused_imports)] pub use gen_GpuQueueDescriptor::*; #[cfg(feature = "GpuRenderBundle")] #[allow(non_snake_case)] mod gen_GpuRenderBundle; #[cfg(feature = "GpuRenderBundle")] #[allow(unused_imports)] pub use gen_GpuRenderBundle::*; #[cfg(feature = "GpuRenderBundleDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderBundleDescriptor; #[cfg(feature = "GpuRenderBundleDescriptor")] #[allow(unused_imports)] pub use gen_GpuRenderBundleDescriptor::*; #[cfg(feature = "GpuRenderBundleEncoder")] #[allow(non_snake_case)] mod gen_GpuRenderBundleEncoder; #[cfg(feature = "GpuRenderBundleEncoder")] #[allow(unused_imports)] pub use gen_GpuRenderBundleEncoder::*; #[cfg(feature = "GpuRenderBundleEncoderDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderBundleEncoderDescriptor; #[cfg(feature = "GpuRenderBundleEncoderDescriptor")] #[allow(unused_imports)] pub use gen_GpuRenderBundleEncoderDescriptor::*; #[cfg(feature = "GpuRenderPassColorAttachment")] #[allow(non_snake_case)] mod gen_GpuRenderPassColorAttachment; #[cfg(feature = "GpuRenderPassColorAttachment")] #[allow(unused_imports)] pub use gen_GpuRenderPassColorAttachment::*; #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[allow(non_snake_case)] mod gen_GpuRenderPassDepthStencilAttachment; #[cfg(feature = "GpuRenderPassDepthStencilAttachment")] #[allow(unused_imports)] pub use gen_GpuRenderPassDepthStencilAttachment::*; #[cfg(feature = "GpuRenderPassDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderPassDescriptor; #[cfg(feature = "GpuRenderPassDescriptor")] #[allow(unused_imports)] pub use gen_GpuRenderPassDescriptor::*; #[cfg(feature = "GpuRenderPassEncoder")] #[allow(non_snake_case)] mod gen_GpuRenderPassEncoder; #[cfg(feature = "GpuRenderPassEncoder")] #[allow(unused_imports)] pub use gen_GpuRenderPassEncoder::*; #[cfg(feature = "GpuRenderPassLayout")] #[allow(non_snake_case)] mod gen_GpuRenderPassLayout; #[cfg(feature = "GpuRenderPassLayout")] #[allow(unused_imports)] pub use gen_GpuRenderPassLayout::*; #[cfg(feature = "GpuRenderPassTimestampWrites")] #[allow(non_snake_case)] mod gen_GpuRenderPassTimestampWrites; #[cfg(feature = "GpuRenderPassTimestampWrites")] #[allow(unused_imports)] pub use gen_GpuRenderPassTimestampWrites::*; #[cfg(feature = "GpuRenderPipeline")] #[allow(non_snake_case)] mod gen_GpuRenderPipeline; #[cfg(feature = "GpuRenderPipeline")] #[allow(unused_imports)] pub use gen_GpuRenderPipeline::*; #[cfg(feature = "GpuRenderPipelineDescriptor")] #[allow(non_snake_case)] mod gen_GpuRenderPipelineDescriptor; #[cfg(feature = "GpuRenderPipelineDescriptor")] #[allow(unused_imports)] pub use gen_GpuRenderPipelineDescriptor::*; #[cfg(feature = "GpuRequestAdapterOptions")] #[allow(non_snake_case)] mod gen_GpuRequestAdapterOptions; #[cfg(feature = "GpuRequestAdapterOptions")] #[allow(unused_imports)] pub use gen_GpuRequestAdapterOptions::*; #[cfg(feature = "GpuSampler")] #[allow(non_snake_case)] mod gen_GpuSampler; #[cfg(feature = "GpuSampler")] #[allow(unused_imports)] pub use gen_GpuSampler::*; #[cfg(feature = "GpuSamplerBindingLayout")] #[allow(non_snake_case)] mod gen_GpuSamplerBindingLayout; #[cfg(feature = "GpuSamplerBindingLayout")] #[allow(unused_imports)] pub use gen_GpuSamplerBindingLayout::*; #[cfg(feature = "GpuSamplerBindingType")] #[allow(non_snake_case)] mod gen_GpuSamplerBindingType; #[cfg(feature = "GpuSamplerBindingType")] #[allow(unused_imports)] pub use gen_GpuSamplerBindingType::*; #[cfg(feature = "GpuSamplerDescriptor")] #[allow(non_snake_case)] mod gen_GpuSamplerDescriptor; #[cfg(feature = "GpuSamplerDescriptor")] #[allow(unused_imports)] pub use gen_GpuSamplerDescriptor::*; #[cfg(feature = "GpuShaderModule")] #[allow(non_snake_case)] mod gen_GpuShaderModule; #[cfg(feature = "GpuShaderModule")] #[allow(unused_imports)] pub use gen_GpuShaderModule::*; #[cfg(feature = "GpuShaderModuleCompilationHint")] #[allow(non_snake_case)] mod gen_GpuShaderModuleCompilationHint; #[cfg(feature = "GpuShaderModuleCompilationHint")] #[allow(unused_imports)] pub use gen_GpuShaderModuleCompilationHint::*; #[cfg(feature = "GpuShaderModuleDescriptor")] #[allow(non_snake_case)] mod gen_GpuShaderModuleDescriptor; #[cfg(feature = "GpuShaderModuleDescriptor")] #[allow(unused_imports)] pub use gen_GpuShaderModuleDescriptor::*; #[cfg(feature = "GpuStencilFaceState")] #[allow(non_snake_case)] mod gen_GpuStencilFaceState; #[cfg(feature = "GpuStencilFaceState")] #[allow(unused_imports)] pub use gen_GpuStencilFaceState::*; #[cfg(feature = "GpuStencilOperation")] #[allow(non_snake_case)] mod gen_GpuStencilOperation; #[cfg(feature = "GpuStencilOperation")] #[allow(unused_imports)] pub use gen_GpuStencilOperation::*; #[cfg(feature = "GpuStorageTextureAccess")] #[allow(non_snake_case)] mod gen_GpuStorageTextureAccess; #[cfg(feature = "GpuStorageTextureAccess")] #[allow(unused_imports)] pub use gen_GpuStorageTextureAccess::*; #[cfg(feature = "GpuStorageTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuStorageTextureBindingLayout; #[cfg(feature = "GpuStorageTextureBindingLayout")] #[allow(unused_imports)] pub use gen_GpuStorageTextureBindingLayout::*; #[cfg(feature = "GpuStoreOp")] #[allow(non_snake_case)] mod gen_GpuStoreOp; #[cfg(feature = "GpuStoreOp")] #[allow(unused_imports)] pub use gen_GpuStoreOp::*; #[cfg(feature = "GpuSupportedFeatures")] #[allow(non_snake_case)] mod gen_GpuSupportedFeatures; #[cfg(feature = "GpuSupportedFeatures")] #[allow(unused_imports)] pub use gen_GpuSupportedFeatures::*; #[cfg(feature = "GpuSupportedLimits")] #[allow(non_snake_case)] mod gen_GpuSupportedLimits; #[cfg(feature = "GpuSupportedLimits")] #[allow(unused_imports)] pub use gen_GpuSupportedLimits::*; #[cfg(feature = "GpuTexelCopyBufferInfo")] #[allow(non_snake_case)] mod gen_GpuTexelCopyBufferInfo; #[cfg(feature = "GpuTexelCopyBufferInfo")] #[allow(unused_imports)] pub use gen_GpuTexelCopyBufferInfo::*; #[cfg(feature = "GpuTexelCopyBufferLayout")] #[allow(non_snake_case)] mod gen_GpuTexelCopyBufferLayout; #[cfg(feature = "GpuTexelCopyBufferLayout")] #[allow(unused_imports)] pub use gen_GpuTexelCopyBufferLayout::*; #[cfg(feature = "GpuTexelCopyTextureInfo")] #[allow(non_snake_case)] mod gen_GpuTexelCopyTextureInfo; #[cfg(feature = "GpuTexelCopyTextureInfo")] #[allow(unused_imports)] pub use gen_GpuTexelCopyTextureInfo::*; #[cfg(feature = "GpuTexture")] #[allow(non_snake_case)] mod gen_GpuTexture; #[cfg(feature = "GpuTexture")] #[allow(unused_imports)] pub use gen_GpuTexture::*; #[cfg(feature = "GpuTextureAspect")] #[allow(non_snake_case)] mod gen_GpuTextureAspect; #[cfg(feature = "GpuTextureAspect")] #[allow(unused_imports)] pub use gen_GpuTextureAspect::*; #[cfg(feature = "GpuTextureBindingLayout")] #[allow(non_snake_case)] mod gen_GpuTextureBindingLayout; #[cfg(feature = "GpuTextureBindingLayout")] #[allow(unused_imports)] pub use gen_GpuTextureBindingLayout::*; #[cfg(feature = "GpuTextureDescriptor")] #[allow(non_snake_case)] mod gen_GpuTextureDescriptor; #[cfg(feature = "GpuTextureDescriptor")] #[allow(unused_imports)] pub use gen_GpuTextureDescriptor::*; #[cfg(feature = "GpuTextureDimension")] #[allow(non_snake_case)] mod gen_GpuTextureDimension; #[cfg(feature = "GpuTextureDimension")] #[allow(unused_imports)] pub use gen_GpuTextureDimension::*; #[cfg(feature = "GpuTextureFormat")] #[allow(non_snake_case)] mod gen_GpuTextureFormat; #[cfg(feature = "GpuTextureFormat")] #[allow(unused_imports)] pub use gen_GpuTextureFormat::*; #[cfg(feature = "GpuTextureSampleType")] #[allow(non_snake_case)] mod gen_GpuTextureSampleType; #[cfg(feature = "GpuTextureSampleType")] #[allow(unused_imports)] pub use gen_GpuTextureSampleType::*; #[cfg(feature = "GpuTextureView")] #[allow(non_snake_case)] mod gen_GpuTextureView; #[cfg(feature = "GpuTextureView")] #[allow(unused_imports)] pub use gen_GpuTextureView::*; #[cfg(feature = "GpuTextureViewDescriptor")] #[allow(non_snake_case)] mod gen_GpuTextureViewDescriptor; #[cfg(feature = "GpuTextureViewDescriptor")] #[allow(unused_imports)] pub use gen_GpuTextureViewDescriptor::*; #[cfg(feature = "GpuTextureViewDimension")] #[allow(non_snake_case)] mod gen_GpuTextureViewDimension; #[cfg(feature = "GpuTextureViewDimension")] #[allow(unused_imports)] pub use gen_GpuTextureViewDimension::*; #[cfg(feature = "GpuUncapturedErrorEvent")] #[allow(non_snake_case)] mod gen_GpuUncapturedErrorEvent; #[cfg(feature = "GpuUncapturedErrorEvent")] #[allow(unused_imports)] pub use gen_GpuUncapturedErrorEvent::*; #[cfg(feature = "GpuUncapturedErrorEventInit")] #[allow(non_snake_case)] mod gen_GpuUncapturedErrorEventInit; #[cfg(feature = "GpuUncapturedErrorEventInit")] #[allow(unused_imports)] pub use gen_GpuUncapturedErrorEventInit::*; #[cfg(feature = "GpuValidationError")] #[allow(non_snake_case)] mod gen_GpuValidationError; #[cfg(feature = "GpuValidationError")] #[allow(unused_imports)] pub use gen_GpuValidationError::*; #[cfg(feature = "GpuVertexAttribute")] #[allow(non_snake_case)] mod gen_GpuVertexAttribute; #[cfg(feature = "GpuVertexAttribute")] #[allow(unused_imports)] pub use gen_GpuVertexAttribute::*; #[cfg(feature = "GpuVertexBufferLayout")] #[allow(non_snake_case)] mod gen_GpuVertexBufferLayout; #[cfg(feature = "GpuVertexBufferLayout")] #[allow(unused_imports)] pub use gen_GpuVertexBufferLayout::*; #[cfg(feature = "GpuVertexFormat")] #[allow(non_snake_case)] mod gen_GpuVertexFormat; #[cfg(feature = "GpuVertexFormat")] #[allow(unused_imports)] pub use gen_GpuVertexFormat::*; #[cfg(feature = "GpuVertexState")] #[allow(non_snake_case)] mod gen_GpuVertexState; #[cfg(feature = "GpuVertexState")] #[allow(unused_imports)] pub use gen_GpuVertexState::*; #[cfg(feature = "GpuVertexStepMode")] #[allow(non_snake_case)] mod gen_GpuVertexStepMode; #[cfg(feature = "GpuVertexStepMode")] #[allow(unused_imports)] pub use gen_GpuVertexStepMode::*; #[cfg(feature = "GroupedHistoryEventInit")] #[allow(non_snake_case)] mod gen_GroupedHistoryEventInit; #[cfg(feature = "GroupedHistoryEventInit")] #[allow(unused_imports)] pub use gen_GroupedHistoryEventInit::*; #[cfg(feature = "HalfOpenInfoDict")] #[allow(non_snake_case)] mod gen_HalfOpenInfoDict; #[cfg(feature = "HalfOpenInfoDict")] #[allow(unused_imports)] pub use gen_HalfOpenInfoDict::*; #[cfg(feature = "HardwareAcceleration")] #[allow(non_snake_case)] mod gen_HardwareAcceleration; #[cfg(feature = "HardwareAcceleration")] #[allow(unused_imports)] pub use gen_HardwareAcceleration::*; #[cfg(feature = "HashChangeEvent")] #[allow(non_snake_case)] mod gen_HashChangeEvent; #[cfg(feature = "HashChangeEvent")] #[allow(unused_imports)] pub use gen_HashChangeEvent::*; #[cfg(feature = "HashChangeEventInit")] #[allow(non_snake_case)] mod gen_HashChangeEventInit; #[cfg(feature = "HashChangeEventInit")] #[allow(unused_imports)] pub use gen_HashChangeEventInit::*; #[cfg(feature = "Headers")] #[allow(non_snake_case)] mod gen_Headers; #[cfg(feature = "Headers")] #[allow(unused_imports)] pub use gen_Headers::*; #[cfg(feature = "HeadersGuardEnum")] #[allow(non_snake_case)] mod gen_HeadersGuardEnum; #[cfg(feature = "HeadersGuardEnum")] #[allow(unused_imports)] pub use gen_HeadersGuardEnum::*; #[cfg(feature = "Hid")] #[allow(non_snake_case)] mod gen_Hid; #[cfg(feature = "Hid")] #[allow(unused_imports)] pub use gen_Hid::*; #[cfg(feature = "HidCollectionInfo")] #[allow(non_snake_case)] mod gen_HidCollectionInfo; #[cfg(feature = "HidCollectionInfo")] #[allow(unused_imports)] pub use gen_HidCollectionInfo::*; #[cfg(feature = "HidConnectionEvent")] #[allow(non_snake_case)] mod gen_HidConnectionEvent; #[cfg(feature = "HidConnectionEvent")] #[allow(unused_imports)] pub use gen_HidConnectionEvent::*; #[cfg(feature = "HidConnectionEventInit")] #[allow(non_snake_case)] mod gen_HidConnectionEventInit; #[cfg(feature = "HidConnectionEventInit")] #[allow(unused_imports)] pub use gen_HidConnectionEventInit::*; #[cfg(feature = "HidDevice")] #[allow(non_snake_case)] mod gen_HidDevice; #[cfg(feature = "HidDevice")] #[allow(unused_imports)] pub use gen_HidDevice::*; #[cfg(feature = "HidDeviceFilter")] #[allow(non_snake_case)] mod gen_HidDeviceFilter; #[cfg(feature = "HidDeviceFilter")] #[allow(unused_imports)] pub use gen_HidDeviceFilter::*; #[cfg(feature = "HidDeviceRequestOptions")] #[allow(non_snake_case)] mod gen_HidDeviceRequestOptions; #[cfg(feature = "HidDeviceRequestOptions")] #[allow(unused_imports)] pub use gen_HidDeviceRequestOptions::*; #[cfg(feature = "HidInputReportEvent")] #[allow(non_snake_case)] mod gen_HidInputReportEvent; #[cfg(feature = "HidInputReportEvent")] #[allow(unused_imports)] pub use gen_HidInputReportEvent::*; #[cfg(feature = "HidInputReportEventInit")] #[allow(non_snake_case)] mod gen_HidInputReportEventInit; #[cfg(feature = "HidInputReportEventInit")] #[allow(unused_imports)] pub use gen_HidInputReportEventInit::*; #[cfg(feature = "HidReportInfo")] #[allow(non_snake_case)] mod gen_HidReportInfo; #[cfg(feature = "HidReportInfo")] #[allow(unused_imports)] pub use gen_HidReportInfo::*; #[cfg(feature = "HidReportItem")] #[allow(non_snake_case)] mod gen_HidReportItem; #[cfg(feature = "HidReportItem")] #[allow(unused_imports)] pub use gen_HidReportItem::*; #[cfg(feature = "HidUnitSystem")] #[allow(non_snake_case)] mod gen_HidUnitSystem; #[cfg(feature = "HidUnitSystem")] #[allow(unused_imports)] pub use gen_HidUnitSystem::*; #[cfg(feature = "HiddenPluginEventInit")] #[allow(non_snake_case)] mod gen_HiddenPluginEventInit; #[cfg(feature = "HiddenPluginEventInit")] #[allow(unused_imports)] pub use gen_HiddenPluginEventInit::*; #[cfg(feature = "History")] #[allow(non_snake_case)] mod gen_History; #[cfg(feature = "History")] #[allow(unused_imports)] pub use gen_History::*; #[cfg(feature = "HitRegionOptions")] #[allow(non_snake_case)] mod gen_HitRegionOptions; #[cfg(feature = "HitRegionOptions")] #[allow(unused_imports)] pub use gen_HitRegionOptions::*; #[cfg(feature = "HkdfParams")] #[allow(non_snake_case)] mod gen_HkdfParams; #[cfg(feature = "HkdfParams")] #[allow(unused_imports)] pub use gen_HkdfParams::*; #[cfg(feature = "HmacDerivedKeyParams")] #[allow(non_snake_case)] mod gen_HmacDerivedKeyParams; #[cfg(feature = "HmacDerivedKeyParams")] #[allow(unused_imports)] pub use gen_HmacDerivedKeyParams::*; #[cfg(feature = "HmacImportParams")] #[allow(non_snake_case)] mod gen_HmacImportParams; #[cfg(feature = "HmacImportParams")] #[allow(unused_imports)] pub use gen_HmacImportParams::*; #[cfg(feature = "HmacKeyAlgorithm")] #[allow(non_snake_case)] mod gen_HmacKeyAlgorithm; #[cfg(feature = "HmacKeyAlgorithm")] #[allow(unused_imports)] pub use gen_HmacKeyAlgorithm::*; #[cfg(feature = "HmacKeyGenParams")] #[allow(non_snake_case)] mod gen_HmacKeyGenParams; #[cfg(feature = "HmacKeyGenParams")] #[allow(unused_imports)] pub use gen_HmacKeyGenParams::*; #[cfg(feature = "HtmlAllCollection")] #[allow(non_snake_case)] mod gen_HtmlAllCollection; #[cfg(feature = "HtmlAllCollection")] #[allow(unused_imports)] pub use gen_HtmlAllCollection::*; #[cfg(feature = "HtmlAnchorElement")] #[allow(non_snake_case)] mod gen_HtmlAnchorElement; #[cfg(feature = "HtmlAnchorElement")] #[allow(unused_imports)] pub use gen_HtmlAnchorElement::*; #[cfg(feature = "HtmlAreaElement")] #[allow(non_snake_case)] mod gen_HtmlAreaElement; #[cfg(feature = "HtmlAreaElement")] #[allow(unused_imports)] pub use gen_HtmlAreaElement::*; #[cfg(feature = "HtmlAudioElement")] #[allow(non_snake_case)] mod gen_HtmlAudioElement; #[cfg(feature = "HtmlAudioElement")] #[allow(unused_imports)] pub use gen_HtmlAudioElement::*; #[cfg(feature = "HtmlBaseElement")] #[allow(non_snake_case)] mod gen_HtmlBaseElement; #[cfg(feature = "HtmlBaseElement")] #[allow(unused_imports)] pub use gen_HtmlBaseElement::*; #[cfg(feature = "HtmlBodyElement")] #[allow(non_snake_case)] mod gen_HtmlBodyElement; #[cfg(feature = "HtmlBodyElement")] #[allow(unused_imports)] pub use gen_HtmlBodyElement::*; #[cfg(feature = "HtmlBrElement")] #[allow(non_snake_case)] mod gen_HtmlBrElement; #[cfg(feature = "HtmlBrElement")] #[allow(unused_imports)] pub use gen_HtmlBrElement::*; #[cfg(feature = "HtmlButtonElement")] #[allow(non_snake_case)] mod gen_HtmlButtonElement; #[cfg(feature = "HtmlButtonElement")] #[allow(unused_imports)] pub use gen_HtmlButtonElement::*; #[cfg(feature = "HtmlCanvasElement")] #[allow(non_snake_case)] mod gen_HtmlCanvasElement; #[cfg(feature = "HtmlCanvasElement")] #[allow(unused_imports)] pub use gen_HtmlCanvasElement::*; #[cfg(feature = "HtmlCollection")] #[allow(non_snake_case)] mod gen_HtmlCollection; #[cfg(feature = "HtmlCollection")] #[allow(unused_imports)] pub use gen_HtmlCollection::*; #[cfg(feature = "HtmlDListElement")] #[allow(non_snake_case)] mod gen_HtmlDListElement; #[cfg(feature = "HtmlDListElement")] #[allow(unused_imports)] pub use gen_HtmlDListElement::*; #[cfg(feature = "HtmlDataElement")] #[allow(non_snake_case)] mod gen_HtmlDataElement; #[cfg(feature = "HtmlDataElement")] #[allow(unused_imports)] pub use gen_HtmlDataElement::*; #[cfg(feature = "HtmlDataListElement")] #[allow(non_snake_case)] mod gen_HtmlDataListElement; #[cfg(feature = "HtmlDataListElement")] #[allow(unused_imports)] pub use gen_HtmlDataListElement::*; #[cfg(feature = "HtmlDetailsElement")] #[allow(non_snake_case)] mod gen_HtmlDetailsElement; #[cfg(feature = "HtmlDetailsElement")] #[allow(unused_imports)] pub use gen_HtmlDetailsElement::*; #[cfg(feature = "HtmlDialogElement")] #[allow(non_snake_case)] mod gen_HtmlDialogElement; #[cfg(feature = "HtmlDialogElement")] #[allow(unused_imports)] pub use gen_HtmlDialogElement::*; #[cfg(feature = "HtmlDirectoryElement")] #[allow(non_snake_case)] mod gen_HtmlDirectoryElement; #[cfg(feature = "HtmlDirectoryElement")] #[allow(unused_imports)] pub use gen_HtmlDirectoryElement::*; #[cfg(feature = "HtmlDivElement")] #[allow(non_snake_case)] mod gen_HtmlDivElement; #[cfg(feature = "HtmlDivElement")] #[allow(unused_imports)] pub use gen_HtmlDivElement::*; #[cfg(feature = "HtmlDocument")] #[allow(non_snake_case)] mod gen_HtmlDocument; #[cfg(feature = "HtmlDocument")] #[allow(unused_imports)] pub use gen_HtmlDocument::*; #[cfg(feature = "HtmlElement")] #[allow(non_snake_case)] mod gen_HtmlElement; #[cfg(feature = "HtmlElement")] #[allow(unused_imports)] pub use gen_HtmlElement::*; #[cfg(feature = "HtmlEmbedElement")] #[allow(non_snake_case)] mod gen_HtmlEmbedElement; #[cfg(feature = "HtmlEmbedElement")] #[allow(unused_imports)] pub use gen_HtmlEmbedElement::*; #[cfg(feature = "HtmlFieldSetElement")] #[allow(non_snake_case)] mod gen_HtmlFieldSetElement; #[cfg(feature = "HtmlFieldSetElement")] #[allow(unused_imports)] pub use gen_HtmlFieldSetElement::*; #[cfg(feature = "HtmlFontElement")] #[allow(non_snake_case)] mod gen_HtmlFontElement; #[cfg(feature = "HtmlFontElement")] #[allow(unused_imports)] pub use gen_HtmlFontElement::*; #[cfg(feature = "HtmlFormControlsCollection")] #[allow(non_snake_case)] mod gen_HtmlFormControlsCollection; #[cfg(feature = "HtmlFormControlsCollection")] #[allow(unused_imports)] pub use gen_HtmlFormControlsCollection::*; #[cfg(feature = "HtmlFormElement")] #[allow(non_snake_case)] mod gen_HtmlFormElement; #[cfg(feature = "HtmlFormElement")] #[allow(unused_imports)] pub use gen_HtmlFormElement::*; #[cfg(feature = "HtmlFrameElement")] #[allow(non_snake_case)] mod gen_HtmlFrameElement; #[cfg(feature = "HtmlFrameElement")] #[allow(unused_imports)] pub use gen_HtmlFrameElement::*; #[cfg(feature = "HtmlFrameSetElement")] #[allow(non_snake_case)] mod gen_HtmlFrameSetElement; #[cfg(feature = "HtmlFrameSetElement")] #[allow(unused_imports)] pub use gen_HtmlFrameSetElement::*; #[cfg(feature = "HtmlHeadElement")] #[allow(non_snake_case)] mod gen_HtmlHeadElement; #[cfg(feature = "HtmlHeadElement")] #[allow(unused_imports)] pub use gen_HtmlHeadElement::*; #[cfg(feature = "HtmlHeadingElement")] #[allow(non_snake_case)] mod gen_HtmlHeadingElement; #[cfg(feature = "HtmlHeadingElement")] #[allow(unused_imports)] pub use gen_HtmlHeadingElement::*; #[cfg(feature = "HtmlHrElement")] #[allow(non_snake_case)] mod gen_HtmlHrElement; #[cfg(feature = "HtmlHrElement")] #[allow(unused_imports)] pub use gen_HtmlHrElement::*; #[cfg(feature = "HtmlHtmlElement")] #[allow(non_snake_case)] mod gen_HtmlHtmlElement; #[cfg(feature = "HtmlHtmlElement")] #[allow(unused_imports)] pub use gen_HtmlHtmlElement::*; #[cfg(feature = "HtmlIFrameElement")] #[allow(non_snake_case)] mod gen_HtmlIFrameElement; #[cfg(feature = "HtmlIFrameElement")] #[allow(unused_imports)] pub use gen_HtmlIFrameElement::*; #[cfg(feature = "HtmlImageElement")] #[allow(non_snake_case)] mod gen_HtmlImageElement; #[cfg(feature = "HtmlImageElement")] #[allow(unused_imports)] pub use gen_HtmlImageElement::*; #[cfg(feature = "HtmlInputElement")] #[allow(non_snake_case)] mod gen_HtmlInputElement; #[cfg(feature = "HtmlInputElement")] #[allow(unused_imports)] pub use gen_HtmlInputElement::*; #[cfg(feature = "HtmlLabelElement")] #[allow(non_snake_case)] mod gen_HtmlLabelElement; #[cfg(feature = "HtmlLabelElement")] #[allow(unused_imports)] pub use gen_HtmlLabelElement::*; #[cfg(feature = "HtmlLegendElement")] #[allow(non_snake_case)] mod gen_HtmlLegendElement; #[cfg(feature = "HtmlLegendElement")] #[allow(unused_imports)] pub use gen_HtmlLegendElement::*; #[cfg(feature = "HtmlLiElement")] #[allow(non_snake_case)] mod gen_HtmlLiElement; #[cfg(feature = "HtmlLiElement")] #[allow(unused_imports)] pub use gen_HtmlLiElement::*; #[cfg(feature = "HtmlLinkElement")] #[allow(non_snake_case)] mod gen_HtmlLinkElement; #[cfg(feature = "HtmlLinkElement")] #[allow(unused_imports)] pub use gen_HtmlLinkElement::*; #[cfg(feature = "HtmlMapElement")] #[allow(non_snake_case)] mod gen_HtmlMapElement; #[cfg(feature = "HtmlMapElement")] #[allow(unused_imports)] pub use gen_HtmlMapElement::*; #[cfg(feature = "HtmlMediaElement")] #[allow(non_snake_case)] mod gen_HtmlMediaElement; #[cfg(feature = "HtmlMediaElement")] #[allow(unused_imports)] pub use gen_HtmlMediaElement::*; #[cfg(feature = "HtmlMenuElement")] #[allow(non_snake_case)] mod gen_HtmlMenuElement; #[cfg(feature = "HtmlMenuElement")] #[allow(unused_imports)] pub use gen_HtmlMenuElement::*; #[cfg(feature = "HtmlMenuItemElement")] #[allow(non_snake_case)] mod gen_HtmlMenuItemElement; #[cfg(feature = "HtmlMenuItemElement")] #[allow(unused_imports)] pub use gen_HtmlMenuItemElement::*; #[cfg(feature = "HtmlMetaElement")] #[allow(non_snake_case)] mod gen_HtmlMetaElement; #[cfg(feature = "HtmlMetaElement")] #[allow(unused_imports)] pub use gen_HtmlMetaElement::*; #[cfg(feature = "HtmlMeterElement")] #[allow(non_snake_case)] mod gen_HtmlMeterElement; #[cfg(feature = "HtmlMeterElement")] #[allow(unused_imports)] pub use gen_HtmlMeterElement::*; #[cfg(feature = "HtmlModElement")] #[allow(non_snake_case)] mod gen_HtmlModElement; #[cfg(feature = "HtmlModElement")] #[allow(unused_imports)] pub use gen_HtmlModElement::*; #[cfg(feature = "HtmlOListElement")] #[allow(non_snake_case)] mod gen_HtmlOListElement; #[cfg(feature = "HtmlOListElement")] #[allow(unused_imports)] pub use gen_HtmlOListElement::*; #[cfg(feature = "HtmlObjectElement")] #[allow(non_snake_case)] mod gen_HtmlObjectElement; #[cfg(feature = "HtmlObjectElement")] #[allow(unused_imports)] pub use gen_HtmlObjectElement::*; #[cfg(feature = "HtmlOptGroupElement")] #[allow(non_snake_case)] mod gen_HtmlOptGroupElement; #[cfg(feature = "HtmlOptGroupElement")] #[allow(unused_imports)] pub use gen_HtmlOptGroupElement::*; #[cfg(feature = "HtmlOptionElement")] #[allow(non_snake_case)] mod gen_HtmlOptionElement; #[cfg(feature = "HtmlOptionElement")] #[allow(unused_imports)] pub use gen_HtmlOptionElement::*; #[cfg(feature = "HtmlOptionsCollection")] #[allow(non_snake_case)] mod gen_HtmlOptionsCollection; #[cfg(feature = "HtmlOptionsCollection")] #[allow(unused_imports)] pub use gen_HtmlOptionsCollection::*; #[cfg(feature = "HtmlOutputElement")] #[allow(non_snake_case)] mod gen_HtmlOutputElement; #[cfg(feature = "HtmlOutputElement")] #[allow(unused_imports)] pub use gen_HtmlOutputElement::*; #[cfg(feature = "HtmlParagraphElement")] #[allow(non_snake_case)] mod gen_HtmlParagraphElement; #[cfg(feature = "HtmlParagraphElement")] #[allow(unused_imports)] pub use gen_HtmlParagraphElement::*; #[cfg(feature = "HtmlParamElement")] #[allow(non_snake_case)] mod gen_HtmlParamElement; #[cfg(feature = "HtmlParamElement")] #[allow(unused_imports)] pub use gen_HtmlParamElement::*; #[cfg(feature = "HtmlPictureElement")] #[allow(non_snake_case)] mod gen_HtmlPictureElement; #[cfg(feature = "HtmlPictureElement")] #[allow(unused_imports)] pub use gen_HtmlPictureElement::*; #[cfg(feature = "HtmlPreElement")] #[allow(non_snake_case)] mod gen_HtmlPreElement; #[cfg(feature = "HtmlPreElement")] #[allow(unused_imports)] pub use gen_HtmlPreElement::*; #[cfg(feature = "HtmlProgressElement")] #[allow(non_snake_case)] mod gen_HtmlProgressElement; #[cfg(feature = "HtmlProgressElement")] #[allow(unused_imports)] pub use gen_HtmlProgressElement::*; #[cfg(feature = "HtmlQuoteElement")] #[allow(non_snake_case)] mod gen_HtmlQuoteElement; #[cfg(feature = "HtmlQuoteElement")] #[allow(unused_imports)] pub use gen_HtmlQuoteElement::*; #[cfg(feature = "HtmlScriptElement")] #[allow(non_snake_case)] mod gen_HtmlScriptElement; #[cfg(feature = "HtmlScriptElement")] #[allow(unused_imports)] pub use gen_HtmlScriptElement::*; #[cfg(feature = "HtmlSelectElement")] #[allow(non_snake_case)] mod gen_HtmlSelectElement; #[cfg(feature = "HtmlSelectElement")] #[allow(unused_imports)] pub use gen_HtmlSelectElement::*; #[cfg(feature = "HtmlSlotElement")] #[allow(non_snake_case)] mod gen_HtmlSlotElement; #[cfg(feature = "HtmlSlotElement")] #[allow(unused_imports)] pub use gen_HtmlSlotElement::*; #[cfg(feature = "HtmlSourceElement")] #[allow(non_snake_case)] mod gen_HtmlSourceElement; #[cfg(feature = "HtmlSourceElement")] #[allow(unused_imports)] pub use gen_HtmlSourceElement::*; #[cfg(feature = "HtmlSpanElement")] #[allow(non_snake_case)] mod gen_HtmlSpanElement; #[cfg(feature = "HtmlSpanElement")] #[allow(unused_imports)] pub use gen_HtmlSpanElement::*; #[cfg(feature = "HtmlStyleElement")] #[allow(non_snake_case)] mod gen_HtmlStyleElement; #[cfg(feature = "HtmlStyleElement")] #[allow(unused_imports)] pub use gen_HtmlStyleElement::*; #[cfg(feature = "HtmlTableCaptionElement")] #[allow(non_snake_case)] mod gen_HtmlTableCaptionElement; #[cfg(feature = "HtmlTableCaptionElement")] #[allow(unused_imports)] pub use gen_HtmlTableCaptionElement::*; #[cfg(feature = "HtmlTableCellElement")] #[allow(non_snake_case)] mod gen_HtmlTableCellElement; #[cfg(feature = "HtmlTableCellElement")] #[allow(unused_imports)] pub use gen_HtmlTableCellElement::*; #[cfg(feature = "HtmlTableColElement")] #[allow(non_snake_case)] mod gen_HtmlTableColElement; #[cfg(feature = "HtmlTableColElement")] #[allow(unused_imports)] pub use gen_HtmlTableColElement::*; #[cfg(feature = "HtmlTableElement")] #[allow(non_snake_case)] mod gen_HtmlTableElement; #[cfg(feature = "HtmlTableElement")] #[allow(unused_imports)] pub use gen_HtmlTableElement::*; #[cfg(feature = "HtmlTableRowElement")] #[allow(non_snake_case)] mod gen_HtmlTableRowElement; #[cfg(feature = "HtmlTableRowElement")] #[allow(unused_imports)] pub use gen_HtmlTableRowElement::*; #[cfg(feature = "HtmlTableSectionElement")] #[allow(non_snake_case)] mod gen_HtmlTableSectionElement; #[cfg(feature = "HtmlTableSectionElement")] #[allow(unused_imports)] pub use gen_HtmlTableSectionElement::*; #[cfg(feature = "HtmlTemplateElement")] #[allow(non_snake_case)] mod gen_HtmlTemplateElement; #[cfg(feature = "HtmlTemplateElement")] #[allow(unused_imports)] pub use gen_HtmlTemplateElement::*; #[cfg(feature = "HtmlTextAreaElement")] #[allow(non_snake_case)] mod gen_HtmlTextAreaElement; #[cfg(feature = "HtmlTextAreaElement")] #[allow(unused_imports)] pub use gen_HtmlTextAreaElement::*; #[cfg(feature = "HtmlTimeElement")] #[allow(non_snake_case)] mod gen_HtmlTimeElement; #[cfg(feature = "HtmlTimeElement")] #[allow(unused_imports)] pub use gen_HtmlTimeElement::*; #[cfg(feature = "HtmlTitleElement")] #[allow(non_snake_case)] mod gen_HtmlTitleElement; #[cfg(feature = "HtmlTitleElement")] #[allow(unused_imports)] pub use gen_HtmlTitleElement::*; #[cfg(feature = "HtmlTrackElement")] #[allow(non_snake_case)] mod gen_HtmlTrackElement; #[cfg(feature = "HtmlTrackElement")] #[allow(unused_imports)] pub use gen_HtmlTrackElement::*; #[cfg(feature = "HtmlUListElement")] #[allow(non_snake_case)] mod gen_HtmlUListElement; #[cfg(feature = "HtmlUListElement")] #[allow(unused_imports)] pub use gen_HtmlUListElement::*; #[cfg(feature = "HtmlUnknownElement")] #[allow(non_snake_case)] mod gen_HtmlUnknownElement; #[cfg(feature = "HtmlUnknownElement")] #[allow(unused_imports)] pub use gen_HtmlUnknownElement::*; #[cfg(feature = "HtmlVideoElement")] #[allow(non_snake_case)] mod gen_HtmlVideoElement; #[cfg(feature = "HtmlVideoElement")] #[allow(unused_imports)] pub use gen_HtmlVideoElement::*; #[cfg(feature = "HttpConnDict")] #[allow(non_snake_case)] mod gen_HttpConnDict; #[cfg(feature = "HttpConnDict")] #[allow(unused_imports)] pub use gen_HttpConnDict::*; #[cfg(feature = "HttpConnInfo")] #[allow(non_snake_case)] mod gen_HttpConnInfo; #[cfg(feature = "HttpConnInfo")] #[allow(unused_imports)] pub use gen_HttpConnInfo::*; #[cfg(feature = "HttpConnectionElement")] #[allow(non_snake_case)] mod gen_HttpConnectionElement; #[cfg(feature = "HttpConnectionElement")] #[allow(unused_imports)] pub use gen_HttpConnectionElement::*; #[cfg(feature = "IdbCursor")] #[allow(non_snake_case)] mod gen_IdbCursor; #[cfg(feature = "IdbCursor")] #[allow(unused_imports)] pub use gen_IdbCursor::*; #[cfg(feature = "IdbCursorDirection")] #[allow(non_snake_case)] mod gen_IdbCursorDirection; #[cfg(feature = "IdbCursorDirection")] #[allow(unused_imports)] pub use gen_IdbCursorDirection::*; #[cfg(feature = "IdbCursorWithValue")] #[allow(non_snake_case)] mod gen_IdbCursorWithValue; #[cfg(feature = "IdbCursorWithValue")] #[allow(unused_imports)] pub use gen_IdbCursorWithValue::*; #[cfg(feature = "IdbDatabase")] #[allow(non_snake_case)] mod gen_IdbDatabase; #[cfg(feature = "IdbDatabase")] #[allow(unused_imports)] pub use gen_IdbDatabase::*; #[cfg(feature = "IdbFactory")] #[allow(non_snake_case)] mod gen_IdbFactory; #[cfg(feature = "IdbFactory")] #[allow(unused_imports)] pub use gen_IdbFactory::*; #[cfg(feature = "IdbFileHandle")] #[allow(non_snake_case)] mod gen_IdbFileHandle; #[cfg(feature = "IdbFileHandle")] #[allow(unused_imports)] pub use gen_IdbFileHandle::*; #[cfg(feature = "IdbFileMetadataParameters")] #[allow(non_snake_case)] mod gen_IdbFileMetadataParameters; #[cfg(feature = "IdbFileMetadataParameters")] #[allow(unused_imports)] pub use gen_IdbFileMetadataParameters::*; #[cfg(feature = "IdbFileRequest")] #[allow(non_snake_case)] mod gen_IdbFileRequest; #[cfg(feature = "IdbFileRequest")] #[allow(unused_imports)] pub use gen_IdbFileRequest::*; #[cfg(feature = "IdbIndex")] #[allow(non_snake_case)] mod gen_IdbIndex; #[cfg(feature = "IdbIndex")] #[allow(unused_imports)] pub use gen_IdbIndex::*; #[cfg(feature = "IdbIndexParameters")] #[allow(non_snake_case)] mod gen_IdbIndexParameters; #[cfg(feature = "IdbIndexParameters")] #[allow(unused_imports)] pub use gen_IdbIndexParameters::*; #[cfg(feature = "IdbKeyRange")] #[allow(non_snake_case)] mod gen_IdbKeyRange; #[cfg(feature = "IdbKeyRange")] #[allow(unused_imports)] pub use gen_IdbKeyRange::*; #[cfg(feature = "IdbLocaleAwareKeyRange")] #[allow(non_snake_case)] mod gen_IdbLocaleAwareKeyRange; #[cfg(feature = "IdbLocaleAwareKeyRange")] #[allow(unused_imports)] pub use gen_IdbLocaleAwareKeyRange::*; #[cfg(feature = "IdbMutableFile")] #[allow(non_snake_case)] mod gen_IdbMutableFile; #[cfg(feature = "IdbMutableFile")] #[allow(unused_imports)] pub use gen_IdbMutableFile::*; #[cfg(feature = "IdbObjectStore")] #[allow(non_snake_case)] mod gen_IdbObjectStore; #[cfg(feature = "IdbObjectStore")] #[allow(unused_imports)] pub use gen_IdbObjectStore::*; #[cfg(feature = "IdbObjectStoreParameters")] #[allow(non_snake_case)] mod gen_IdbObjectStoreParameters; #[cfg(feature = "IdbObjectStoreParameters")] #[allow(unused_imports)] pub use gen_IdbObjectStoreParameters::*; #[cfg(feature = "IdbOpenDbOptions")] #[allow(non_snake_case)] mod gen_IdbOpenDbOptions; #[cfg(feature = "IdbOpenDbOptions")] #[allow(unused_imports)] pub use gen_IdbOpenDbOptions::*; #[cfg(feature = "IdbOpenDbRequest")] #[allow(non_snake_case)] mod gen_IdbOpenDbRequest; #[cfg(feature = "IdbOpenDbRequest")] #[allow(unused_imports)] pub use gen_IdbOpenDbRequest::*; #[cfg(feature = "IdbRequest")] #[allow(non_snake_case)] mod gen_IdbRequest; #[cfg(feature = "IdbRequest")] #[allow(unused_imports)] pub use gen_IdbRequest::*; #[cfg(feature = "IdbRequestReadyState")] #[allow(non_snake_case)] mod gen_IdbRequestReadyState; #[cfg(feature = "IdbRequestReadyState")] #[allow(unused_imports)] pub use gen_IdbRequestReadyState::*; #[cfg(feature = "IdbTransaction")] #[allow(non_snake_case)] mod gen_IdbTransaction; #[cfg(feature = "IdbTransaction")] #[allow(unused_imports)] pub use gen_IdbTransaction::*; #[cfg(feature = "IdbTransactionDurability")] #[allow(non_snake_case)] mod gen_IdbTransactionDurability; #[cfg(feature = "IdbTransactionDurability")] #[allow(unused_imports)] pub use gen_IdbTransactionDurability::*; #[cfg(feature = "IdbTransactionMode")] #[allow(non_snake_case)] mod gen_IdbTransactionMode; #[cfg(feature = "IdbTransactionMode")] #[allow(unused_imports)] pub use gen_IdbTransactionMode::*; #[cfg(feature = "IdbTransactionOptions")] #[allow(non_snake_case)] mod gen_IdbTransactionOptions; #[cfg(feature = "IdbTransactionOptions")] #[allow(unused_imports)] pub use gen_IdbTransactionOptions::*; #[cfg(feature = "IdbVersionChangeEvent")] #[allow(non_snake_case)] mod gen_IdbVersionChangeEvent; #[cfg(feature = "IdbVersionChangeEvent")] #[allow(unused_imports)] pub use gen_IdbVersionChangeEvent::*; #[cfg(feature = "IdbVersionChangeEventInit")] #[allow(non_snake_case)] mod gen_IdbVersionChangeEventInit; #[cfg(feature = "IdbVersionChangeEventInit")] #[allow(unused_imports)] pub use gen_IdbVersionChangeEventInit::*; #[cfg(feature = "IdleDeadline")] #[allow(non_snake_case)] mod gen_IdleDeadline; #[cfg(feature = "IdleDeadline")] #[allow(unused_imports)] pub use gen_IdleDeadline::*; #[cfg(feature = "IdleRequestOptions")] #[allow(non_snake_case)] mod gen_IdleRequestOptions; #[cfg(feature = "IdleRequestOptions")] #[allow(unused_imports)] pub use gen_IdleRequestOptions::*; #[cfg(feature = "IirFilterNode")] #[allow(non_snake_case)] mod gen_IirFilterNode; #[cfg(feature = "IirFilterNode")] #[allow(unused_imports)] pub use gen_IirFilterNode::*; #[cfg(feature = "IirFilterOptions")] #[allow(non_snake_case)] mod gen_IirFilterOptions; #[cfg(feature = "IirFilterOptions")] #[allow(unused_imports)] pub use gen_IirFilterOptions::*; #[cfg(feature = "ImageBitmap")] #[allow(non_snake_case)] mod gen_ImageBitmap; #[cfg(feature = "ImageBitmap")] #[allow(unused_imports)] pub use gen_ImageBitmap::*; #[cfg(feature = "ImageBitmapOptions")] #[allow(non_snake_case)] mod gen_ImageBitmapOptions; #[cfg(feature = "ImageBitmapOptions")] #[allow(unused_imports)] pub use gen_ImageBitmapOptions::*; #[cfg(feature = "ImageBitmapRenderingContext")] #[allow(non_snake_case)] mod gen_ImageBitmapRenderingContext; #[cfg(feature = "ImageBitmapRenderingContext")] #[allow(unused_imports)] pub use gen_ImageBitmapRenderingContext::*; #[cfg(feature = "ImageCapture")] #[allow(non_snake_case)] mod gen_ImageCapture; #[cfg(feature = "ImageCapture")] #[allow(unused_imports)] pub use gen_ImageCapture::*; #[cfg(feature = "ImageCaptureError")] #[allow(non_snake_case)] mod gen_ImageCaptureError; #[cfg(feature = "ImageCaptureError")] #[allow(unused_imports)] pub use gen_ImageCaptureError::*; #[cfg(feature = "ImageCaptureErrorEvent")] #[allow(non_snake_case)] mod gen_ImageCaptureErrorEvent; #[cfg(feature = "ImageCaptureErrorEvent")] #[allow(unused_imports)] pub use gen_ImageCaptureErrorEvent::*; #[cfg(feature = "ImageCaptureErrorEventInit")] #[allow(non_snake_case)] mod gen_ImageCaptureErrorEventInit; #[cfg(feature = "ImageCaptureErrorEventInit")] #[allow(unused_imports)] pub use gen_ImageCaptureErrorEventInit::*; #[cfg(feature = "ImageData")] #[allow(non_snake_case)] mod gen_ImageData; #[cfg(feature = "ImageData")] #[allow(unused_imports)] pub use gen_ImageData::*; #[cfg(feature = "ImageDecodeOptions")] #[allow(non_snake_case)] mod gen_ImageDecodeOptions; #[cfg(feature = "ImageDecodeOptions")] #[allow(unused_imports)] pub use gen_ImageDecodeOptions::*; #[cfg(feature = "ImageDecodeResult")] #[allow(non_snake_case)] mod gen_ImageDecodeResult; #[cfg(feature = "ImageDecodeResult")] #[allow(unused_imports)] pub use gen_ImageDecodeResult::*; #[cfg(feature = "ImageDecoder")] #[allow(non_snake_case)] mod gen_ImageDecoder; #[cfg(feature = "ImageDecoder")] #[allow(unused_imports)] pub use gen_ImageDecoder::*; #[cfg(feature = "ImageDecoderInit")] #[allow(non_snake_case)] mod gen_ImageDecoderInit; #[cfg(feature = "ImageDecoderInit")] #[allow(unused_imports)] pub use gen_ImageDecoderInit::*; #[cfg(feature = "ImageEncodeOptions")] #[allow(non_snake_case)] mod gen_ImageEncodeOptions; #[cfg(feature = "ImageEncodeOptions")] #[allow(unused_imports)] pub use gen_ImageEncodeOptions::*; #[cfg(feature = "ImageOrientation")] #[allow(non_snake_case)] mod gen_ImageOrientation; #[cfg(feature = "ImageOrientation")] #[allow(unused_imports)] pub use gen_ImageOrientation::*; #[cfg(feature = "ImageTrack")] #[allow(non_snake_case)] mod gen_ImageTrack; #[cfg(feature = "ImageTrack")] #[allow(unused_imports)] pub use gen_ImageTrack::*; #[cfg(feature = "ImageTrackList")] #[allow(non_snake_case)] mod gen_ImageTrackList; #[cfg(feature = "ImageTrackList")] #[allow(unused_imports)] pub use gen_ImageTrackList::*; #[cfg(feature = "InputDeviceInfo")] #[allow(non_snake_case)] mod gen_InputDeviceInfo; #[cfg(feature = "InputDeviceInfo")] #[allow(unused_imports)] pub use gen_InputDeviceInfo::*; #[cfg(feature = "InputEvent")] #[allow(non_snake_case)] mod gen_InputEvent; #[cfg(feature = "InputEvent")] #[allow(unused_imports)] pub use gen_InputEvent::*; #[cfg(feature = "InputEventInit")] #[allow(non_snake_case)] mod gen_InputEventInit; #[cfg(feature = "InputEventInit")] #[allow(unused_imports)] pub use gen_InputEventInit::*; #[cfg(feature = "IntersectionObserver")] #[allow(non_snake_case)] mod gen_IntersectionObserver; #[cfg(feature = "IntersectionObserver")] #[allow(unused_imports)] pub use gen_IntersectionObserver::*; #[cfg(feature = "IntersectionObserverEntry")] #[allow(non_snake_case)] mod gen_IntersectionObserverEntry; #[cfg(feature = "IntersectionObserverEntry")] #[allow(unused_imports)] pub use gen_IntersectionObserverEntry::*; #[cfg(feature = "IntersectionObserverEntryInit")] #[allow(non_snake_case)] mod gen_IntersectionObserverEntryInit; #[cfg(feature = "IntersectionObserverEntryInit")] #[allow(unused_imports)] pub use gen_IntersectionObserverEntryInit::*; #[cfg(feature = "IntersectionObserverInit")] #[allow(non_snake_case)] mod gen_IntersectionObserverInit; #[cfg(feature = "IntersectionObserverInit")] #[allow(unused_imports)] pub use gen_IntersectionObserverInit::*; #[cfg(feature = "IntlUtils")] #[allow(non_snake_case)] mod gen_IntlUtils; #[cfg(feature = "IntlUtils")] #[allow(unused_imports)] pub use gen_IntlUtils::*; #[cfg(feature = "IsInputPendingOptions")] #[allow(non_snake_case)] mod gen_IsInputPendingOptions; #[cfg(feature = "IsInputPendingOptions")] #[allow(unused_imports)] pub use gen_IsInputPendingOptions::*; #[cfg(feature = "IterableKeyAndValueResult")] #[allow(non_snake_case)] mod gen_IterableKeyAndValueResult; #[cfg(feature = "IterableKeyAndValueResult")] #[allow(unused_imports)] pub use gen_IterableKeyAndValueResult::*; #[cfg(feature = "IterableKeyOrValueResult")] #[allow(non_snake_case)] mod gen_IterableKeyOrValueResult; #[cfg(feature = "IterableKeyOrValueResult")] #[allow(unused_imports)] pub use gen_IterableKeyOrValueResult::*; #[cfg(feature = "IterationCompositeOperation")] #[allow(non_snake_case)] mod gen_IterationCompositeOperation; #[cfg(feature = "IterationCompositeOperation")] #[allow(unused_imports)] pub use gen_IterationCompositeOperation::*; #[cfg(feature = "JsonWebKey")] #[allow(non_snake_case)] mod gen_JsonWebKey; #[cfg(feature = "JsonWebKey")] #[allow(unused_imports)] pub use gen_JsonWebKey::*; #[cfg(feature = "KeyAlgorithm")] #[allow(non_snake_case)] mod gen_KeyAlgorithm; #[cfg(feature = "KeyAlgorithm")] #[allow(unused_imports)] pub use gen_KeyAlgorithm::*; #[cfg(feature = "KeyEvent")] #[allow(non_snake_case)] mod gen_KeyEvent; #[cfg(feature = "KeyEvent")] #[allow(unused_imports)] pub use gen_KeyEvent::*; #[cfg(feature = "KeyFrameRequestEvent")] #[allow(non_snake_case)] mod gen_KeyFrameRequestEvent; #[cfg(feature = "KeyFrameRequestEvent")] #[allow(unused_imports)] pub use gen_KeyFrameRequestEvent::*; #[cfg(feature = "KeyIdsInitData")] #[allow(non_snake_case)] mod gen_KeyIdsInitData; #[cfg(feature = "KeyIdsInitData")] #[allow(unused_imports)] pub use gen_KeyIdsInitData::*; #[cfg(feature = "KeyboardEvent")] #[allow(non_snake_case)] mod gen_KeyboardEvent; #[cfg(feature = "KeyboardEvent")] #[allow(unused_imports)] pub use gen_KeyboardEvent::*; #[cfg(feature = "KeyboardEventInit")] #[allow(non_snake_case)] mod gen_KeyboardEventInit; #[cfg(feature = "KeyboardEventInit")] #[allow(unused_imports)] pub use gen_KeyboardEventInit::*; #[cfg(feature = "KeyframeAnimationOptions")] #[allow(non_snake_case)] mod gen_KeyframeAnimationOptions; #[cfg(feature = "KeyframeAnimationOptions")] #[allow(unused_imports)] pub use gen_KeyframeAnimationOptions::*; #[cfg(feature = "KeyframeEffect")] #[allow(non_snake_case)] mod gen_KeyframeEffect; #[cfg(feature = "KeyframeEffect")] #[allow(unused_imports)] pub use gen_KeyframeEffect::*; #[cfg(feature = "KeyframeEffectOptions")] #[allow(non_snake_case)] mod gen_KeyframeEffectOptions; #[cfg(feature = "KeyframeEffectOptions")] #[allow(unused_imports)] pub use gen_KeyframeEffectOptions::*; #[cfg(feature = "L10nElement")] #[allow(non_snake_case)] mod gen_L10nElement; #[cfg(feature = "L10nElement")] #[allow(unused_imports)] pub use gen_L10nElement::*; #[cfg(feature = "L10nValue")] #[allow(non_snake_case)] mod gen_L10nValue; #[cfg(feature = "L10nValue")] #[allow(unused_imports)] pub use gen_L10nValue::*; #[cfg(feature = "LargeBlobSupport")] #[allow(non_snake_case)] mod gen_LargeBlobSupport; #[cfg(feature = "LargeBlobSupport")] #[allow(unused_imports)] pub use gen_LargeBlobSupport::*; #[cfg(feature = "LatencyMode")] #[allow(non_snake_case)] mod gen_LatencyMode; #[cfg(feature = "LatencyMode")] #[allow(unused_imports)] pub use gen_LatencyMode::*; #[cfg(feature = "LifecycleCallbacks")] #[allow(non_snake_case)] mod gen_LifecycleCallbacks; #[cfg(feature = "LifecycleCallbacks")] #[allow(unused_imports)] pub use gen_LifecycleCallbacks::*; #[cfg(feature = "LineAlignSetting")] #[allow(non_snake_case)] mod gen_LineAlignSetting; #[cfg(feature = "LineAlignSetting")] #[allow(unused_imports)] pub use gen_LineAlignSetting::*; #[cfg(feature = "ListBoxObject")] #[allow(non_snake_case)] mod gen_ListBoxObject; #[cfg(feature = "ListBoxObject")] #[allow(unused_imports)] pub use gen_ListBoxObject::*; #[cfg(feature = "LocalMediaStream")] #[allow(non_snake_case)] mod gen_LocalMediaStream; #[cfg(feature = "LocalMediaStream")] #[allow(unused_imports)] pub use gen_LocalMediaStream::*; #[cfg(feature = "LocaleInfo")] #[allow(non_snake_case)] mod gen_LocaleInfo; #[cfg(feature = "LocaleInfo")] #[allow(unused_imports)] pub use gen_LocaleInfo::*; #[cfg(feature = "Location")] #[allow(non_snake_case)] mod gen_Location; #[cfg(feature = "Location")] #[allow(unused_imports)] pub use gen_Location::*; #[cfg(feature = "Lock")] #[allow(non_snake_case)] mod gen_Lock; #[cfg(feature = "Lock")] #[allow(unused_imports)] pub use gen_Lock::*; #[cfg(feature = "LockInfo")] #[allow(non_snake_case)] mod gen_LockInfo; #[cfg(feature = "LockInfo")] #[allow(unused_imports)] pub use gen_LockInfo::*; #[cfg(feature = "LockManager")] #[allow(non_snake_case)] mod gen_LockManager; #[cfg(feature = "LockManager")] #[allow(unused_imports)] pub use gen_LockManager::*; #[cfg(feature = "LockManagerSnapshot")] #[allow(non_snake_case)] mod gen_LockManagerSnapshot; #[cfg(feature = "LockManagerSnapshot")] #[allow(unused_imports)] pub use gen_LockManagerSnapshot::*; #[cfg(feature = "LockMode")] #[allow(non_snake_case)] mod gen_LockMode; #[cfg(feature = "LockMode")] #[allow(unused_imports)] pub use gen_LockMode::*; #[cfg(feature = "LockOptions")] #[allow(non_snake_case)] mod gen_LockOptions; #[cfg(feature = "LockOptions")] #[allow(unused_imports)] pub use gen_LockOptions::*; #[cfg(feature = "MathMlElement")] #[allow(non_snake_case)] mod gen_MathMlElement; #[cfg(feature = "MathMlElement")] #[allow(unused_imports)] pub use gen_MathMlElement::*; #[cfg(feature = "MediaCapabilities")] #[allow(non_snake_case)] mod gen_MediaCapabilities; #[cfg(feature = "MediaCapabilities")] #[allow(unused_imports)] pub use gen_MediaCapabilities::*; #[cfg(feature = "MediaCapabilitiesInfo")] #[allow(non_snake_case)] mod gen_MediaCapabilitiesInfo; #[cfg(feature = "MediaCapabilitiesInfo")] #[allow(unused_imports)] pub use gen_MediaCapabilitiesInfo::*; #[cfg(feature = "MediaConfiguration")] #[allow(non_snake_case)] mod gen_MediaConfiguration; #[cfg(feature = "MediaConfiguration")] #[allow(unused_imports)] pub use gen_MediaConfiguration::*; #[cfg(feature = "MediaDecodingConfiguration")] #[allow(non_snake_case)] mod gen_MediaDecodingConfiguration; #[cfg(feature = "MediaDecodingConfiguration")] #[allow(unused_imports)] pub use gen_MediaDecodingConfiguration::*; #[cfg(feature = "MediaDecodingType")] #[allow(non_snake_case)] mod gen_MediaDecodingType; #[cfg(feature = "MediaDecodingType")] #[allow(unused_imports)] pub use gen_MediaDecodingType::*; #[cfg(feature = "MediaDeviceInfo")] #[allow(non_snake_case)] mod gen_MediaDeviceInfo; #[cfg(feature = "MediaDeviceInfo")] #[allow(unused_imports)] pub use gen_MediaDeviceInfo::*; #[cfg(feature = "MediaDeviceKind")] #[allow(non_snake_case)] mod gen_MediaDeviceKind; #[cfg(feature = "MediaDeviceKind")] #[allow(unused_imports)] pub use gen_MediaDeviceKind::*; #[cfg(feature = "MediaDevices")] #[allow(non_snake_case)] mod gen_MediaDevices; #[cfg(feature = "MediaDevices")] #[allow(unused_imports)] pub use gen_MediaDevices::*; #[cfg(feature = "MediaElementAudioSourceNode")] #[allow(non_snake_case)] mod gen_MediaElementAudioSourceNode; #[cfg(feature = "MediaElementAudioSourceNode")] #[allow(unused_imports)] pub use gen_MediaElementAudioSourceNode::*; #[cfg(feature = "MediaElementAudioSourceOptions")] #[allow(non_snake_case)] mod gen_MediaElementAudioSourceOptions; #[cfg(feature = "MediaElementAudioSourceOptions")] #[allow(unused_imports)] pub use gen_MediaElementAudioSourceOptions::*; #[cfg(feature = "MediaEncodingConfiguration")] #[allow(non_snake_case)] mod gen_MediaEncodingConfiguration; #[cfg(feature = "MediaEncodingConfiguration")] #[allow(unused_imports)] pub use gen_MediaEncodingConfiguration::*; #[cfg(feature = "MediaEncodingType")] #[allow(non_snake_case)] mod gen_MediaEncodingType; #[cfg(feature = "MediaEncodingType")] #[allow(unused_imports)] pub use gen_MediaEncodingType::*; #[cfg(feature = "MediaEncryptedEvent")] #[allow(non_snake_case)] mod gen_MediaEncryptedEvent; #[cfg(feature = "MediaEncryptedEvent")] #[allow(unused_imports)] pub use gen_MediaEncryptedEvent::*; #[cfg(feature = "MediaError")] #[allow(non_snake_case)] mod gen_MediaError; #[cfg(feature = "MediaError")] #[allow(unused_imports)] pub use gen_MediaError::*; #[cfg(feature = "MediaImage")] #[allow(non_snake_case)] mod gen_MediaImage; #[cfg(feature = "MediaImage")] #[allow(unused_imports)] pub use gen_MediaImage::*; #[cfg(feature = "MediaKeyError")] #[allow(non_snake_case)] mod gen_MediaKeyError; #[cfg(feature = "MediaKeyError")] #[allow(unused_imports)] pub use gen_MediaKeyError::*; #[cfg(feature = "MediaKeyMessageEvent")] #[allow(non_snake_case)] mod gen_MediaKeyMessageEvent; #[cfg(feature = "MediaKeyMessageEvent")] #[allow(unused_imports)] pub use gen_MediaKeyMessageEvent::*; #[cfg(feature = "MediaKeyMessageEventInit")] #[allow(non_snake_case)] mod gen_MediaKeyMessageEventInit; #[cfg(feature = "MediaKeyMessageEventInit")] #[allow(unused_imports)] pub use gen_MediaKeyMessageEventInit::*; #[cfg(feature = "MediaKeyMessageType")] #[allow(non_snake_case)] mod gen_MediaKeyMessageType; #[cfg(feature = "MediaKeyMessageType")] #[allow(unused_imports)] pub use gen_MediaKeyMessageType::*; #[cfg(feature = "MediaKeyNeededEventInit")] #[allow(non_snake_case)] mod gen_MediaKeyNeededEventInit; #[cfg(feature = "MediaKeyNeededEventInit")] #[allow(unused_imports)] pub use gen_MediaKeyNeededEventInit::*; #[cfg(feature = "MediaKeySession")] #[allow(non_snake_case)] mod gen_MediaKeySession; #[cfg(feature = "MediaKeySession")] #[allow(unused_imports)] pub use gen_MediaKeySession::*; #[cfg(feature = "MediaKeySessionType")] #[allow(non_snake_case)] mod gen_MediaKeySessionType; #[cfg(feature = "MediaKeySessionType")] #[allow(unused_imports)] pub use gen_MediaKeySessionType::*; #[cfg(feature = "MediaKeyStatus")] #[allow(non_snake_case)] mod gen_MediaKeyStatus; #[cfg(feature = "MediaKeyStatus")] #[allow(unused_imports)] pub use gen_MediaKeyStatus::*; #[cfg(feature = "MediaKeyStatusMap")] #[allow(non_snake_case)] mod gen_MediaKeyStatusMap; #[cfg(feature = "MediaKeyStatusMap")] #[allow(unused_imports)] pub use gen_MediaKeyStatusMap::*; #[cfg(feature = "MediaKeySystemAccess")] #[allow(non_snake_case)] mod gen_MediaKeySystemAccess; #[cfg(feature = "MediaKeySystemAccess")] #[allow(unused_imports)] pub use gen_MediaKeySystemAccess::*; #[cfg(feature = "MediaKeySystemConfiguration")] #[allow(non_snake_case)] mod gen_MediaKeySystemConfiguration; #[cfg(feature = "MediaKeySystemConfiguration")] #[allow(unused_imports)] pub use gen_MediaKeySystemConfiguration::*; #[cfg(feature = "MediaKeySystemMediaCapability")] #[allow(non_snake_case)] mod gen_MediaKeySystemMediaCapability; #[cfg(feature = "MediaKeySystemMediaCapability")] #[allow(unused_imports)] pub use gen_MediaKeySystemMediaCapability::*; #[cfg(feature = "MediaKeySystemStatus")] #[allow(non_snake_case)] mod gen_MediaKeySystemStatus; #[cfg(feature = "MediaKeySystemStatus")] #[allow(unused_imports)] pub use gen_MediaKeySystemStatus::*; #[cfg(feature = "MediaKeys")] #[allow(non_snake_case)] mod gen_MediaKeys; #[cfg(feature = "MediaKeys")] #[allow(unused_imports)] pub use gen_MediaKeys::*; #[cfg(feature = "MediaKeysPolicy")] #[allow(non_snake_case)] mod gen_MediaKeysPolicy; #[cfg(feature = "MediaKeysPolicy")] #[allow(unused_imports)] pub use gen_MediaKeysPolicy::*; #[cfg(feature = "MediaKeysRequirement")] #[allow(non_snake_case)] mod gen_MediaKeysRequirement; #[cfg(feature = "MediaKeysRequirement")] #[allow(unused_imports)] pub use gen_MediaKeysRequirement::*; #[cfg(feature = "MediaList")] #[allow(non_snake_case)] mod gen_MediaList; #[cfg(feature = "MediaList")] #[allow(unused_imports)] pub use gen_MediaList::*; #[cfg(feature = "MediaMetadata")] #[allow(non_snake_case)] mod gen_MediaMetadata; #[cfg(feature = "MediaMetadata")] #[allow(unused_imports)] pub use gen_MediaMetadata::*; #[cfg(feature = "MediaMetadataInit")] #[allow(non_snake_case)] mod gen_MediaMetadataInit; #[cfg(feature = "MediaMetadataInit")] #[allow(unused_imports)] pub use gen_MediaMetadataInit::*; #[cfg(feature = "MediaPositionState")] #[allow(non_snake_case)] mod gen_MediaPositionState; #[cfg(feature = "MediaPositionState")] #[allow(unused_imports)] pub use gen_MediaPositionState::*; #[cfg(feature = "MediaQueryList")] #[allow(non_snake_case)] mod gen_MediaQueryList; #[cfg(feature = "MediaQueryList")] #[allow(unused_imports)] pub use gen_MediaQueryList::*; #[cfg(feature = "MediaQueryListEvent")] #[allow(non_snake_case)] mod gen_MediaQueryListEvent; #[cfg(feature = "MediaQueryListEvent")] #[allow(unused_imports)] pub use gen_MediaQueryListEvent::*; #[cfg(feature = "MediaQueryListEventInit")] #[allow(non_snake_case)] mod gen_MediaQueryListEventInit; #[cfg(feature = "MediaQueryListEventInit")] #[allow(unused_imports)] pub use gen_MediaQueryListEventInit::*; #[cfg(feature = "MediaRecorder")] #[allow(non_snake_case)] mod gen_MediaRecorder; #[cfg(feature = "MediaRecorder")] #[allow(unused_imports)] pub use gen_MediaRecorder::*; #[cfg(feature = "MediaRecorderErrorEvent")] #[allow(non_snake_case)] mod gen_MediaRecorderErrorEvent; #[cfg(feature = "MediaRecorderErrorEvent")] #[allow(unused_imports)] pub use gen_MediaRecorderErrorEvent::*; #[cfg(feature = "MediaRecorderErrorEventInit")] #[allow(non_snake_case)] mod gen_MediaRecorderErrorEventInit; #[cfg(feature = "MediaRecorderErrorEventInit")] #[allow(unused_imports)] pub use gen_MediaRecorderErrorEventInit::*; #[cfg(feature = "MediaRecorderOptions")] #[allow(non_snake_case)] mod gen_MediaRecorderOptions; #[cfg(feature = "MediaRecorderOptions")] #[allow(unused_imports)] pub use gen_MediaRecorderOptions::*; #[cfg(feature = "MediaSession")] #[allow(non_snake_case)] mod gen_MediaSession; #[cfg(feature = "MediaSession")] #[allow(unused_imports)] pub use gen_MediaSession::*; #[cfg(feature = "MediaSessionAction")] #[allow(non_snake_case)] mod gen_MediaSessionAction; #[cfg(feature = "MediaSessionAction")] #[allow(unused_imports)] pub use gen_MediaSessionAction::*; #[cfg(feature = "MediaSessionActionDetails")] #[allow(non_snake_case)] mod gen_MediaSessionActionDetails; #[cfg(feature = "MediaSessionActionDetails")] #[allow(unused_imports)] pub use gen_MediaSessionActionDetails::*; #[cfg(feature = "MediaSessionPlaybackState")] #[allow(non_snake_case)] mod gen_MediaSessionPlaybackState; #[cfg(feature = "MediaSessionPlaybackState")] #[allow(unused_imports)] pub use gen_MediaSessionPlaybackState::*; #[cfg(feature = "MediaSource")] #[allow(non_snake_case)] mod gen_MediaSource; #[cfg(feature = "MediaSource")] #[allow(unused_imports)] pub use gen_MediaSource::*; #[cfg(feature = "MediaSourceEndOfStreamError")] #[allow(non_snake_case)] mod gen_MediaSourceEndOfStreamError; #[cfg(feature = "MediaSourceEndOfStreamError")] #[allow(unused_imports)] pub use gen_MediaSourceEndOfStreamError::*; #[cfg(feature = "MediaSourceEnum")] #[allow(non_snake_case)] mod gen_MediaSourceEnum; #[cfg(feature = "MediaSourceEnum")] #[allow(unused_imports)] pub use gen_MediaSourceEnum::*; #[cfg(feature = "MediaSourceReadyState")] #[allow(non_snake_case)] mod gen_MediaSourceReadyState; #[cfg(feature = "MediaSourceReadyState")] #[allow(unused_imports)] pub use gen_MediaSourceReadyState::*; #[cfg(feature = "MediaStream")] #[allow(non_snake_case)] mod gen_MediaStream; #[cfg(feature = "MediaStream")] #[allow(unused_imports)] pub use gen_MediaStream::*; #[cfg(feature = "MediaStreamAudioDestinationNode")] #[allow(non_snake_case)] mod gen_MediaStreamAudioDestinationNode; #[cfg(feature = "MediaStreamAudioDestinationNode")] #[allow(unused_imports)] pub use gen_MediaStreamAudioDestinationNode::*; #[cfg(feature = "MediaStreamAudioSourceNode")] #[allow(non_snake_case)] mod gen_MediaStreamAudioSourceNode; #[cfg(feature = "MediaStreamAudioSourceNode")] #[allow(unused_imports)] pub use gen_MediaStreamAudioSourceNode::*; #[cfg(feature = "MediaStreamAudioSourceOptions")] #[allow(non_snake_case)] mod gen_MediaStreamAudioSourceOptions; #[cfg(feature = "MediaStreamAudioSourceOptions")] #[allow(unused_imports)] pub use gen_MediaStreamAudioSourceOptions::*; #[cfg(feature = "MediaStreamConstraints")] #[allow(non_snake_case)] mod gen_MediaStreamConstraints; #[cfg(feature = "MediaStreamConstraints")] #[allow(unused_imports)] pub use gen_MediaStreamConstraints::*; #[cfg(feature = "MediaStreamError")] #[allow(non_snake_case)] mod gen_MediaStreamError; #[cfg(feature = "MediaStreamError")] #[allow(unused_imports)] pub use gen_MediaStreamError::*; #[cfg(feature = "MediaStreamEvent")] #[allow(non_snake_case)] mod gen_MediaStreamEvent; #[cfg(feature = "MediaStreamEvent")] #[allow(unused_imports)] pub use gen_MediaStreamEvent::*; #[cfg(feature = "MediaStreamEventInit")] #[allow(non_snake_case)] mod gen_MediaStreamEventInit; #[cfg(feature = "MediaStreamEventInit")] #[allow(unused_imports)] pub use gen_MediaStreamEventInit::*; #[cfg(feature = "MediaStreamTrack")] #[allow(non_snake_case)] mod gen_MediaStreamTrack; #[cfg(feature = "MediaStreamTrack")] #[allow(unused_imports)] pub use gen_MediaStreamTrack::*; #[cfg(feature = "MediaStreamTrackEvent")] #[allow(non_snake_case)] mod gen_MediaStreamTrackEvent; #[cfg(feature = "MediaStreamTrackEvent")] #[allow(unused_imports)] pub use gen_MediaStreamTrackEvent::*; #[cfg(feature = "MediaStreamTrackEventInit")] #[allow(non_snake_case)] mod gen_MediaStreamTrackEventInit; #[cfg(feature = "MediaStreamTrackEventInit")] #[allow(unused_imports)] pub use gen_MediaStreamTrackEventInit::*; #[cfg(feature = "MediaStreamTrackGenerator")] #[allow(non_snake_case)] mod gen_MediaStreamTrackGenerator; #[cfg(feature = "MediaStreamTrackGenerator")] #[allow(unused_imports)] pub use gen_MediaStreamTrackGenerator::*; #[cfg(feature = "MediaStreamTrackGeneratorInit")] #[allow(non_snake_case)] mod gen_MediaStreamTrackGeneratorInit; #[cfg(feature = "MediaStreamTrackGeneratorInit")] #[allow(unused_imports)] pub use gen_MediaStreamTrackGeneratorInit::*; #[cfg(feature = "MediaStreamTrackProcessor")] #[allow(non_snake_case)] mod gen_MediaStreamTrackProcessor; #[cfg(feature = "MediaStreamTrackProcessor")] #[allow(unused_imports)] pub use gen_MediaStreamTrackProcessor::*; #[cfg(feature = "MediaStreamTrackProcessorInit")] #[allow(non_snake_case)] mod gen_MediaStreamTrackProcessorInit; #[cfg(feature = "MediaStreamTrackProcessorInit")] #[allow(unused_imports)] pub use gen_MediaStreamTrackProcessorInit::*; #[cfg(feature = "MediaStreamTrackState")] #[allow(non_snake_case)] mod gen_MediaStreamTrackState; #[cfg(feature = "MediaStreamTrackState")] #[allow(unused_imports)] pub use gen_MediaStreamTrackState::*; #[cfg(feature = "MediaTrackCapabilities")] #[allow(non_snake_case)] mod gen_MediaTrackCapabilities; #[cfg(feature = "MediaTrackCapabilities")] #[allow(unused_imports)] pub use gen_MediaTrackCapabilities::*; #[cfg(feature = "MediaTrackConstraintSet")] #[allow(non_snake_case)] mod gen_MediaTrackConstraintSet; #[cfg(feature = "MediaTrackConstraintSet")] #[allow(unused_imports)] pub use gen_MediaTrackConstraintSet::*; #[cfg(feature = "MediaTrackConstraints")] #[allow(non_snake_case)] mod gen_MediaTrackConstraints; #[cfg(feature = "MediaTrackConstraints")] #[allow(unused_imports)] pub use gen_MediaTrackConstraints::*; #[cfg(feature = "MediaTrackSettings")] #[allow(non_snake_case)] mod gen_MediaTrackSettings; #[cfg(feature = "MediaTrackSettings")] #[allow(unused_imports)] pub use gen_MediaTrackSettings::*; #[cfg(feature = "MediaTrackSupportedConstraints")] #[allow(non_snake_case)] mod gen_MediaTrackSupportedConstraints; #[cfg(feature = "MediaTrackSupportedConstraints")] #[allow(unused_imports)] pub use gen_MediaTrackSupportedConstraints::*; #[cfg(feature = "MemoryAttribution")] #[allow(non_snake_case)] mod gen_MemoryAttribution; #[cfg(feature = "MemoryAttribution")] #[allow(unused_imports)] pub use gen_MemoryAttribution::*; #[cfg(feature = "MemoryAttributionContainer")] #[allow(non_snake_case)] mod gen_MemoryAttributionContainer; #[cfg(feature = "MemoryAttributionContainer")] #[allow(unused_imports)] pub use gen_MemoryAttributionContainer::*; #[cfg(feature = "MemoryBreakdownEntry")] #[allow(non_snake_case)] mod gen_MemoryBreakdownEntry; #[cfg(feature = "MemoryBreakdownEntry")] #[allow(unused_imports)] pub use gen_MemoryBreakdownEntry::*; #[cfg(feature = "MemoryMeasurement")] #[allow(non_snake_case)] mod gen_MemoryMeasurement; #[cfg(feature = "MemoryMeasurement")] #[allow(unused_imports)] pub use gen_MemoryMeasurement::*; #[cfg(feature = "MessageChannel")] #[allow(non_snake_case)] mod gen_MessageChannel; #[cfg(feature = "MessageChannel")] #[allow(unused_imports)] pub use gen_MessageChannel::*; #[cfg(feature = "MessageEvent")] #[allow(non_snake_case)] mod gen_MessageEvent; #[cfg(feature = "MessageEvent")] #[allow(unused_imports)] pub use gen_MessageEvent::*; #[cfg(feature = "MessageEventInit")] #[allow(non_snake_case)] mod gen_MessageEventInit; #[cfg(feature = "MessageEventInit")] #[allow(unused_imports)] pub use gen_MessageEventInit::*; #[cfg(feature = "MessagePort")] #[allow(non_snake_case)] mod gen_MessagePort; #[cfg(feature = "MessagePort")] #[allow(unused_imports)] pub use gen_MessagePort::*; #[cfg(feature = "MidiAccess")] #[allow(non_snake_case)] mod gen_MidiAccess; #[cfg(feature = "MidiAccess")] #[allow(unused_imports)] pub use gen_MidiAccess::*; #[cfg(feature = "MidiConnectionEvent")] #[allow(non_snake_case)] mod gen_MidiConnectionEvent; #[cfg(feature = "MidiConnectionEvent")] #[allow(unused_imports)] pub use gen_MidiConnectionEvent::*; #[cfg(feature = "MidiConnectionEventInit")] #[allow(non_snake_case)] mod gen_MidiConnectionEventInit; #[cfg(feature = "MidiConnectionEventInit")] #[allow(unused_imports)] pub use gen_MidiConnectionEventInit::*; #[cfg(feature = "MidiInput")] #[allow(non_snake_case)] mod gen_MidiInput; #[cfg(feature = "MidiInput")] #[allow(unused_imports)] pub use gen_MidiInput::*; #[cfg(feature = "MidiInputMap")] #[allow(non_snake_case)] mod gen_MidiInputMap; #[cfg(feature = "MidiInputMap")] #[allow(unused_imports)] pub use gen_MidiInputMap::*; #[cfg(feature = "MidiMessageEvent")] #[allow(non_snake_case)] mod gen_MidiMessageEvent; #[cfg(feature = "MidiMessageEvent")] #[allow(unused_imports)] pub use gen_MidiMessageEvent::*; #[cfg(feature = "MidiMessageEventInit")] #[allow(non_snake_case)] mod gen_MidiMessageEventInit; #[cfg(feature = "MidiMessageEventInit")] #[allow(unused_imports)] pub use gen_MidiMessageEventInit::*; #[cfg(feature = "MidiOptions")] #[allow(non_snake_case)] mod gen_MidiOptions; #[cfg(feature = "MidiOptions")] #[allow(unused_imports)] pub use gen_MidiOptions::*; #[cfg(feature = "MidiOutput")] #[allow(non_snake_case)] mod gen_MidiOutput; #[cfg(feature = "MidiOutput")] #[allow(unused_imports)] pub use gen_MidiOutput::*; #[cfg(feature = "MidiOutputMap")] #[allow(non_snake_case)] mod gen_MidiOutputMap; #[cfg(feature = "MidiOutputMap")] #[allow(unused_imports)] pub use gen_MidiOutputMap::*; #[cfg(feature = "MidiPort")] #[allow(non_snake_case)] mod gen_MidiPort; #[cfg(feature = "MidiPort")] #[allow(unused_imports)] pub use gen_MidiPort::*; #[cfg(feature = "MidiPortConnectionState")] #[allow(non_snake_case)] mod gen_MidiPortConnectionState; #[cfg(feature = "MidiPortConnectionState")] #[allow(unused_imports)] pub use gen_MidiPortConnectionState::*; #[cfg(feature = "MidiPortDeviceState")] #[allow(non_snake_case)] mod gen_MidiPortDeviceState; #[cfg(feature = "MidiPortDeviceState")] #[allow(unused_imports)] pub use gen_MidiPortDeviceState::*; #[cfg(feature = "MidiPortType")] #[allow(non_snake_case)] mod gen_MidiPortType; #[cfg(feature = "MidiPortType")] #[allow(unused_imports)] pub use gen_MidiPortType::*; #[cfg(feature = "MimeType")] #[allow(non_snake_case)] mod gen_MimeType; #[cfg(feature = "MimeType")] #[allow(unused_imports)] pub use gen_MimeType::*; #[cfg(feature = "MimeTypeArray")] #[allow(non_snake_case)] mod gen_MimeTypeArray; #[cfg(feature = "MimeTypeArray")] #[allow(unused_imports)] pub use gen_MimeTypeArray::*; #[cfg(feature = "MouseEvent")] #[allow(non_snake_case)] mod gen_MouseEvent; #[cfg(feature = "MouseEvent")] #[allow(unused_imports)] pub use gen_MouseEvent::*; #[cfg(feature = "MouseEventInit")] #[allow(non_snake_case)] mod gen_MouseEventInit; #[cfg(feature = "MouseEventInit")] #[allow(unused_imports)] pub use gen_MouseEventInit::*; #[cfg(feature = "MouseScrollEvent")] #[allow(non_snake_case)] mod gen_MouseScrollEvent; #[cfg(feature = "MouseScrollEvent")] #[allow(unused_imports)] pub use gen_MouseScrollEvent::*; #[cfg(feature = "MozDebug")] #[allow(non_snake_case)] mod gen_MozDebug; #[cfg(feature = "MozDebug")] #[allow(unused_imports)] pub use gen_MozDebug::*; #[cfg(feature = "MutationEvent")] #[allow(non_snake_case)] mod gen_MutationEvent; #[cfg(feature = "MutationEvent")] #[allow(unused_imports)] pub use gen_MutationEvent::*; #[cfg(feature = "MutationObserver")] #[allow(non_snake_case)] mod gen_MutationObserver; #[cfg(feature = "MutationObserver")] #[allow(unused_imports)] pub use gen_MutationObserver::*; #[cfg(feature = "MutationObserverInit")] #[allow(non_snake_case)] mod gen_MutationObserverInit; #[cfg(feature = "MutationObserverInit")] #[allow(unused_imports)] pub use gen_MutationObserverInit::*; #[cfg(feature = "MutationObservingInfo")] #[allow(non_snake_case)] mod gen_MutationObservingInfo; #[cfg(feature = "MutationObservingInfo")] #[allow(unused_imports)] pub use gen_MutationObservingInfo::*; #[cfg(feature = "MutationRecord")] #[allow(non_snake_case)] mod gen_MutationRecord; #[cfg(feature = "MutationRecord")] #[allow(unused_imports)] pub use gen_MutationRecord::*; #[cfg(feature = "NamedNodeMap")] #[allow(non_snake_case)] mod gen_NamedNodeMap; #[cfg(feature = "NamedNodeMap")] #[allow(unused_imports)] pub use gen_NamedNodeMap::*; #[cfg(feature = "NativeOsFileReadOptions")] #[allow(non_snake_case)] mod gen_NativeOsFileReadOptions; #[cfg(feature = "NativeOsFileReadOptions")] #[allow(unused_imports)] pub use gen_NativeOsFileReadOptions::*; #[cfg(feature = "NativeOsFileWriteAtomicOptions")] #[allow(non_snake_case)] mod gen_NativeOsFileWriteAtomicOptions; #[cfg(feature = "NativeOsFileWriteAtomicOptions")] #[allow(unused_imports)] pub use gen_NativeOsFileWriteAtomicOptions::*; #[cfg(feature = "NavigationType")] #[allow(non_snake_case)] mod gen_NavigationType; #[cfg(feature = "NavigationType")] #[allow(unused_imports)] pub use gen_NavigationType::*; #[cfg(feature = "Navigator")] #[allow(non_snake_case)] mod gen_Navigator; #[cfg(feature = "Navigator")] #[allow(unused_imports)] pub use gen_Navigator::*; #[cfg(feature = "NavigatorAutomationInformation")] #[allow(non_snake_case)] mod gen_NavigatorAutomationInformation; #[cfg(feature = "NavigatorAutomationInformation")] #[allow(unused_imports)] pub use gen_NavigatorAutomationInformation::*; #[cfg(feature = "NavigatorUaBrandVersion")] #[allow(non_snake_case)] mod gen_NavigatorUaBrandVersion; #[cfg(feature = "NavigatorUaBrandVersion")] #[allow(unused_imports)] pub use gen_NavigatorUaBrandVersion::*; #[cfg(feature = "NavigatorUaData")] #[allow(non_snake_case)] mod gen_NavigatorUaData; #[cfg(feature = "NavigatorUaData")] #[allow(unused_imports)] pub use gen_NavigatorUaData::*; #[cfg(feature = "NetworkCommandOptions")] #[allow(non_snake_case)] mod gen_NetworkCommandOptions; #[cfg(feature = "NetworkCommandOptions")] #[allow(unused_imports)] pub use gen_NetworkCommandOptions::*; #[cfg(feature = "NetworkInformation")] #[allow(non_snake_case)] mod gen_NetworkInformation; #[cfg(feature = "NetworkInformation")] #[allow(unused_imports)] pub use gen_NetworkInformation::*; #[cfg(feature = "NetworkResultOptions")] #[allow(non_snake_case)] mod gen_NetworkResultOptions; #[cfg(feature = "NetworkResultOptions")] #[allow(unused_imports)] pub use gen_NetworkResultOptions::*; #[cfg(feature = "Node")] #[allow(non_snake_case)] mod gen_Node; #[cfg(feature = "Node")] #[allow(unused_imports)] pub use gen_Node::*; #[cfg(feature = "NodeFilter")] #[allow(non_snake_case)] mod gen_NodeFilter; #[cfg(feature = "NodeFilter")] #[allow(unused_imports)] pub use gen_NodeFilter::*; #[cfg(feature = "NodeIterator")] #[allow(non_snake_case)] mod gen_NodeIterator; #[cfg(feature = "NodeIterator")] #[allow(unused_imports)] pub use gen_NodeIterator::*; #[cfg(feature = "NodeList")] #[allow(non_snake_case)] mod gen_NodeList; #[cfg(feature = "NodeList")] #[allow(unused_imports)] pub use gen_NodeList::*; #[cfg(feature = "Notification")] #[allow(non_snake_case)] mod gen_Notification; #[cfg(feature = "Notification")] #[allow(unused_imports)] pub use gen_Notification::*; #[cfg(feature = "NotificationAction")] #[allow(non_snake_case)] mod gen_NotificationAction; #[cfg(feature = "NotificationAction")] #[allow(unused_imports)] pub use gen_NotificationAction::*; #[cfg(feature = "NotificationDirection")] #[allow(non_snake_case)] mod gen_NotificationDirection; #[cfg(feature = "NotificationDirection")] #[allow(unused_imports)] pub use gen_NotificationDirection::*; #[cfg(feature = "NotificationEvent")] #[allow(non_snake_case)] mod gen_NotificationEvent; #[cfg(feature = "NotificationEvent")] #[allow(unused_imports)] pub use gen_NotificationEvent::*; #[cfg(feature = "NotificationEventInit")] #[allow(non_snake_case)] mod gen_NotificationEventInit; #[cfg(feature = "NotificationEventInit")] #[allow(unused_imports)] pub use gen_NotificationEventInit::*; #[cfg(feature = "NotificationOptions")] #[allow(non_snake_case)] mod gen_NotificationOptions; #[cfg(feature = "NotificationOptions")] #[allow(unused_imports)] pub use gen_NotificationOptions::*; #[cfg(feature = "NotificationPermission")] #[allow(non_snake_case)] mod gen_NotificationPermission; #[cfg(feature = "NotificationPermission")] #[allow(unused_imports)] pub use gen_NotificationPermission::*; #[cfg(feature = "ObserverCallback")] #[allow(non_snake_case)] mod gen_ObserverCallback; #[cfg(feature = "ObserverCallback")] #[allow(unused_imports)] pub use gen_ObserverCallback::*; #[cfg(feature = "OesElementIndexUint")] #[allow(non_snake_case)] mod gen_OesElementIndexUint; #[cfg(feature = "OesElementIndexUint")] #[allow(unused_imports)] pub use gen_OesElementIndexUint::*; #[cfg(feature = "OesStandardDerivatives")] #[allow(non_snake_case)] mod gen_OesStandardDerivatives; #[cfg(feature = "OesStandardDerivatives")] #[allow(unused_imports)] pub use gen_OesStandardDerivatives::*; #[cfg(feature = "OesTextureFloat")] #[allow(non_snake_case)] mod gen_OesTextureFloat; #[cfg(feature = "OesTextureFloat")] #[allow(unused_imports)] pub use gen_OesTextureFloat::*; #[cfg(feature = "OesTextureFloatLinear")] #[allow(non_snake_case)] mod gen_OesTextureFloatLinear; #[cfg(feature = "OesTextureFloatLinear")] #[allow(unused_imports)] pub use gen_OesTextureFloatLinear::*; #[cfg(feature = "OesTextureHalfFloat")] #[allow(non_snake_case)] mod gen_OesTextureHalfFloat; #[cfg(feature = "OesTextureHalfFloat")] #[allow(unused_imports)] pub use gen_OesTextureHalfFloat::*; #[cfg(feature = "OesTextureHalfFloatLinear")] #[allow(non_snake_case)] mod gen_OesTextureHalfFloatLinear; #[cfg(feature = "OesTextureHalfFloatLinear")] #[allow(unused_imports)] pub use gen_OesTextureHalfFloatLinear::*; #[cfg(feature = "OesVertexArrayObject")] #[allow(non_snake_case)] mod gen_OesVertexArrayObject; #[cfg(feature = "OesVertexArrayObject")] #[allow(unused_imports)] pub use gen_OesVertexArrayObject::*; #[cfg(feature = "OfflineAudioCompletionEvent")] #[allow(non_snake_case)] mod gen_OfflineAudioCompletionEvent; #[cfg(feature = "OfflineAudioCompletionEvent")] #[allow(unused_imports)] pub use gen_OfflineAudioCompletionEvent::*; #[cfg(feature = "OfflineAudioCompletionEventInit")] #[allow(non_snake_case)] mod gen_OfflineAudioCompletionEventInit; #[cfg(feature = "OfflineAudioCompletionEventInit")] #[allow(unused_imports)] pub use gen_OfflineAudioCompletionEventInit::*; #[cfg(feature = "OfflineAudioContext")] #[allow(non_snake_case)] mod gen_OfflineAudioContext; #[cfg(feature = "OfflineAudioContext")] #[allow(unused_imports)] pub use gen_OfflineAudioContext::*; #[cfg(feature = "OfflineAudioContextOptions")] #[allow(non_snake_case)] mod gen_OfflineAudioContextOptions; #[cfg(feature = "OfflineAudioContextOptions")] #[allow(unused_imports)] pub use gen_OfflineAudioContextOptions::*; #[cfg(feature = "OfflineResourceList")] #[allow(non_snake_case)] mod gen_OfflineResourceList; #[cfg(feature = "OfflineResourceList")] #[allow(unused_imports)] pub use gen_OfflineResourceList::*; #[cfg(feature = "OffscreenCanvas")] #[allow(non_snake_case)] mod gen_OffscreenCanvas; #[cfg(feature = "OffscreenCanvas")] #[allow(unused_imports)] pub use gen_OffscreenCanvas::*; #[cfg(feature = "OffscreenCanvasRenderingContext2d")] #[allow(non_snake_case)] mod gen_OffscreenCanvasRenderingContext2d; #[cfg(feature = "OffscreenCanvasRenderingContext2d")] #[allow(unused_imports)] pub use gen_OffscreenCanvasRenderingContext2d::*; #[cfg(feature = "OpenFilePickerOptions")] #[allow(non_snake_case)] mod gen_OpenFilePickerOptions; #[cfg(feature = "OpenFilePickerOptions")] #[allow(unused_imports)] pub use gen_OpenFilePickerOptions::*; #[cfg(feature = "OpenWindowEventDetail")] #[allow(non_snake_case)] mod gen_OpenWindowEventDetail; #[cfg(feature = "OpenWindowEventDetail")] #[allow(unused_imports)] pub use gen_OpenWindowEventDetail::*; #[cfg(feature = "OptionalEffectTiming")] #[allow(non_snake_case)] mod gen_OptionalEffectTiming; #[cfg(feature = "OptionalEffectTiming")] #[allow(unused_imports)] pub use gen_OptionalEffectTiming::*; #[cfg(feature = "OrientationLockType")] #[allow(non_snake_case)] mod gen_OrientationLockType; #[cfg(feature = "OrientationLockType")] #[allow(unused_imports)] pub use gen_OrientationLockType::*; #[cfg(feature = "OrientationType")] #[allow(non_snake_case)] mod gen_OrientationType; #[cfg(feature = "OrientationType")] #[allow(unused_imports)] pub use gen_OrientationType::*; #[cfg(feature = "OscillatorNode")] #[allow(non_snake_case)] mod gen_OscillatorNode; #[cfg(feature = "OscillatorNode")] #[allow(unused_imports)] pub use gen_OscillatorNode::*; #[cfg(feature = "OscillatorOptions")] #[allow(non_snake_case)] mod gen_OscillatorOptions; #[cfg(feature = "OscillatorOptions")] #[allow(unused_imports)] pub use gen_OscillatorOptions::*; #[cfg(feature = "OscillatorType")] #[allow(non_snake_case)] mod gen_OscillatorType; #[cfg(feature = "OscillatorType")] #[allow(unused_imports)] pub use gen_OscillatorType::*; #[cfg(feature = "OverSampleType")] #[allow(non_snake_case)] mod gen_OverSampleType; #[cfg(feature = "OverSampleType")] #[allow(unused_imports)] pub use gen_OverSampleType::*; #[cfg(feature = "OvrMultiview2")] #[allow(non_snake_case)] mod gen_OvrMultiview2; #[cfg(feature = "OvrMultiview2")] #[allow(unused_imports)] pub use gen_OvrMultiview2::*; #[cfg(feature = "PageTransitionEvent")] #[allow(non_snake_case)] mod gen_PageTransitionEvent; #[cfg(feature = "PageTransitionEvent")] #[allow(unused_imports)] pub use gen_PageTransitionEvent::*; #[cfg(feature = "PageTransitionEventInit")] #[allow(non_snake_case)] mod gen_PageTransitionEventInit; #[cfg(feature = "PageTransitionEventInit")] #[allow(unused_imports)] pub use gen_PageTransitionEventInit::*; #[cfg(feature = "PaintRequest")] #[allow(non_snake_case)] mod gen_PaintRequest; #[cfg(feature = "PaintRequest")] #[allow(unused_imports)] pub use gen_PaintRequest::*; #[cfg(feature = "PaintRequestList")] #[allow(non_snake_case)] mod gen_PaintRequestList; #[cfg(feature = "PaintRequestList")] #[allow(unused_imports)] pub use gen_PaintRequestList::*; #[cfg(feature = "PaintWorkletGlobalScope")] #[allow(non_snake_case)] mod gen_PaintWorkletGlobalScope; #[cfg(feature = "PaintWorkletGlobalScope")] #[allow(unused_imports)] pub use gen_PaintWorkletGlobalScope::*; #[cfg(feature = "PannerNode")] #[allow(non_snake_case)] mod gen_PannerNode; #[cfg(feature = "PannerNode")] #[allow(unused_imports)] pub use gen_PannerNode::*; #[cfg(feature = "PannerOptions")] #[allow(non_snake_case)] mod gen_PannerOptions; #[cfg(feature = "PannerOptions")] #[allow(unused_imports)] pub use gen_PannerOptions::*; #[cfg(feature = "PanningModelType")] #[allow(non_snake_case)] mod gen_PanningModelType; #[cfg(feature = "PanningModelType")] #[allow(unused_imports)] pub use gen_PanningModelType::*; #[cfg(feature = "ParityType")] #[allow(non_snake_case)] mod gen_ParityType; #[cfg(feature = "ParityType")] #[allow(unused_imports)] pub use gen_ParityType::*; #[cfg(feature = "Path2d")] #[allow(non_snake_case)] mod gen_Path2d; #[cfg(feature = "Path2d")] #[allow(unused_imports)] pub use gen_Path2d::*; #[cfg(feature = "PaymentAddress")] #[allow(non_snake_case)] mod gen_PaymentAddress; #[cfg(feature = "PaymentAddress")] #[allow(unused_imports)] pub use gen_PaymentAddress::*; #[cfg(feature = "PaymentComplete")] #[allow(non_snake_case)] mod gen_PaymentComplete; #[cfg(feature = "PaymentComplete")] #[allow(unused_imports)] pub use gen_PaymentComplete::*; #[cfg(feature = "PaymentMethodChangeEvent")] #[allow(non_snake_case)] mod gen_PaymentMethodChangeEvent; #[cfg(feature = "PaymentMethodChangeEvent")] #[allow(unused_imports)] pub use gen_PaymentMethodChangeEvent::*; #[cfg(feature = "PaymentMethodChangeEventInit")] #[allow(non_snake_case)] mod gen_PaymentMethodChangeEventInit; #[cfg(feature = "PaymentMethodChangeEventInit")] #[allow(unused_imports)] pub use gen_PaymentMethodChangeEventInit::*; #[cfg(feature = "PaymentRequestUpdateEvent")] #[allow(non_snake_case)] mod gen_PaymentRequestUpdateEvent; #[cfg(feature = "PaymentRequestUpdateEvent")] #[allow(unused_imports)] pub use gen_PaymentRequestUpdateEvent::*; #[cfg(feature = "PaymentRequestUpdateEventInit")] #[allow(non_snake_case)] mod gen_PaymentRequestUpdateEventInit; #[cfg(feature = "PaymentRequestUpdateEventInit")] #[allow(unused_imports)] pub use gen_PaymentRequestUpdateEventInit::*; #[cfg(feature = "PaymentResponse")] #[allow(non_snake_case)] mod gen_PaymentResponse; #[cfg(feature = "PaymentResponse")] #[allow(unused_imports)] pub use gen_PaymentResponse::*; #[cfg(feature = "Pbkdf2Params")] #[allow(non_snake_case)] mod gen_Pbkdf2Params; #[cfg(feature = "Pbkdf2Params")] #[allow(unused_imports)] pub use gen_Pbkdf2Params::*; #[cfg(feature = "PcImplIceConnectionState")] #[allow(non_snake_case)] mod gen_PcImplIceConnectionState; #[cfg(feature = "PcImplIceConnectionState")] #[allow(unused_imports)] pub use gen_PcImplIceConnectionState::*; #[cfg(feature = "PcImplIceGatheringState")] #[allow(non_snake_case)] mod gen_PcImplIceGatheringState; #[cfg(feature = "PcImplIceGatheringState")] #[allow(unused_imports)] pub use gen_PcImplIceGatheringState::*; #[cfg(feature = "PcImplSignalingState")] #[allow(non_snake_case)] mod gen_PcImplSignalingState; #[cfg(feature = "PcImplSignalingState")] #[allow(unused_imports)] pub use gen_PcImplSignalingState::*; #[cfg(feature = "PcObserverStateType")] #[allow(non_snake_case)] mod gen_PcObserverStateType; #[cfg(feature = "PcObserverStateType")] #[allow(unused_imports)] pub use gen_PcObserverStateType::*; #[cfg(feature = "Performance")] #[allow(non_snake_case)] mod gen_Performance; #[cfg(feature = "Performance")] #[allow(unused_imports)] pub use gen_Performance::*; #[cfg(feature = "PerformanceEntry")] #[allow(non_snake_case)] mod gen_PerformanceEntry; #[cfg(feature = "PerformanceEntry")] #[allow(unused_imports)] pub use gen_PerformanceEntry::*; #[cfg(feature = "PerformanceEntryEventInit")] #[allow(non_snake_case)] mod gen_PerformanceEntryEventInit; #[cfg(feature = "PerformanceEntryEventInit")] #[allow(unused_imports)] pub use gen_PerformanceEntryEventInit::*; #[cfg(feature = "PerformanceEntryFilterOptions")] #[allow(non_snake_case)] mod gen_PerformanceEntryFilterOptions; #[cfg(feature = "PerformanceEntryFilterOptions")] #[allow(unused_imports)] pub use gen_PerformanceEntryFilterOptions::*; #[cfg(feature = "PerformanceMark")] #[allow(non_snake_case)] mod gen_PerformanceMark; #[cfg(feature = "PerformanceMark")] #[allow(unused_imports)] pub use gen_PerformanceMark::*; #[cfg(feature = "PerformanceMeasure")] #[allow(non_snake_case)] mod gen_PerformanceMeasure; #[cfg(feature = "PerformanceMeasure")] #[allow(unused_imports)] pub use gen_PerformanceMeasure::*; #[cfg(feature = "PerformanceNavigation")] #[allow(non_snake_case)] mod gen_PerformanceNavigation; #[cfg(feature = "PerformanceNavigation")] #[allow(unused_imports)] pub use gen_PerformanceNavigation::*; #[cfg(feature = "PerformanceNavigationTiming")] #[allow(non_snake_case)] mod gen_PerformanceNavigationTiming; #[cfg(feature = "PerformanceNavigationTiming")] #[allow(unused_imports)] pub use gen_PerformanceNavigationTiming::*; #[cfg(feature = "PerformanceObserver")] #[allow(non_snake_case)] mod gen_PerformanceObserver; #[cfg(feature = "PerformanceObserver")] #[allow(unused_imports)] pub use gen_PerformanceObserver::*; #[cfg(feature = "PerformanceObserverEntryList")] #[allow(non_snake_case)] mod gen_PerformanceObserverEntryList; #[cfg(feature = "PerformanceObserverEntryList")] #[allow(unused_imports)] pub use gen_PerformanceObserverEntryList::*; #[cfg(feature = "PerformanceObserverInit")] #[allow(non_snake_case)] mod gen_PerformanceObserverInit; #[cfg(feature = "PerformanceObserverInit")] #[allow(unused_imports)] pub use gen_PerformanceObserverInit::*; #[cfg(feature = "PerformanceResourceTiming")] #[allow(non_snake_case)] mod gen_PerformanceResourceTiming; #[cfg(feature = "PerformanceResourceTiming")] #[allow(unused_imports)] pub use gen_PerformanceResourceTiming::*; #[cfg(feature = "PerformanceServerTiming")] #[allow(non_snake_case)] mod gen_PerformanceServerTiming; #[cfg(feature = "PerformanceServerTiming")] #[allow(unused_imports)] pub use gen_PerformanceServerTiming::*; #[cfg(feature = "PerformanceTiming")] #[allow(non_snake_case)] mod gen_PerformanceTiming; #[cfg(feature = "PerformanceTiming")] #[allow(unused_imports)] pub use gen_PerformanceTiming::*; #[cfg(feature = "PeriodicWave")] #[allow(non_snake_case)] mod gen_PeriodicWave; #[cfg(feature = "PeriodicWave")] #[allow(unused_imports)] pub use gen_PeriodicWave::*; #[cfg(feature = "PeriodicWaveConstraints")] #[allow(non_snake_case)] mod gen_PeriodicWaveConstraints; #[cfg(feature = "PeriodicWaveConstraints")] #[allow(unused_imports)] pub use gen_PeriodicWaveConstraints::*; #[cfg(feature = "PeriodicWaveOptions")] #[allow(non_snake_case)] mod gen_PeriodicWaveOptions; #[cfg(feature = "PeriodicWaveOptions")] #[allow(unused_imports)] pub use gen_PeriodicWaveOptions::*; #[cfg(feature = "PermissionDescriptor")] #[allow(non_snake_case)] mod gen_PermissionDescriptor; #[cfg(feature = "PermissionDescriptor")] #[allow(unused_imports)] pub use gen_PermissionDescriptor::*; #[cfg(feature = "PermissionName")] #[allow(non_snake_case)] mod gen_PermissionName; #[cfg(feature = "PermissionName")] #[allow(unused_imports)] pub use gen_PermissionName::*; #[cfg(feature = "PermissionState")] #[allow(non_snake_case)] mod gen_PermissionState; #[cfg(feature = "PermissionState")] #[allow(unused_imports)] pub use gen_PermissionState::*; #[cfg(feature = "PermissionStatus")] #[allow(non_snake_case)] mod gen_PermissionStatus; #[cfg(feature = "PermissionStatus")] #[allow(unused_imports)] pub use gen_PermissionStatus::*; #[cfg(feature = "Permissions")] #[allow(non_snake_case)] mod gen_Permissions; #[cfg(feature = "Permissions")] #[allow(unused_imports)] pub use gen_Permissions::*; #[cfg(feature = "PictureInPictureEvent")] #[allow(non_snake_case)] mod gen_PictureInPictureEvent; #[cfg(feature = "PictureInPictureEvent")] #[allow(unused_imports)] pub use gen_PictureInPictureEvent::*; #[cfg(feature = "PictureInPictureEventInit")] #[allow(non_snake_case)] mod gen_PictureInPictureEventInit; #[cfg(feature = "PictureInPictureEventInit")] #[allow(unused_imports)] pub use gen_PictureInPictureEventInit::*; #[cfg(feature = "PictureInPictureWindow")] #[allow(non_snake_case)] mod gen_PictureInPictureWindow; #[cfg(feature = "PictureInPictureWindow")] #[allow(unused_imports)] pub use gen_PictureInPictureWindow::*; #[cfg(feature = "PlaneLayout")] #[allow(non_snake_case)] mod gen_PlaneLayout; #[cfg(feature = "PlaneLayout")] #[allow(unused_imports)] pub use gen_PlaneLayout::*; #[cfg(feature = "PlaybackDirection")] #[allow(non_snake_case)] mod gen_PlaybackDirection; #[cfg(feature = "PlaybackDirection")] #[allow(unused_imports)] pub use gen_PlaybackDirection::*; #[cfg(feature = "Plugin")] #[allow(non_snake_case)] mod gen_Plugin; #[cfg(feature = "Plugin")] #[allow(unused_imports)] pub use gen_Plugin::*; #[cfg(feature = "PluginArray")] #[allow(non_snake_case)] mod gen_PluginArray; #[cfg(feature = "PluginArray")] #[allow(unused_imports)] pub use gen_PluginArray::*; #[cfg(feature = "PluginCrashedEventInit")] #[allow(non_snake_case)] mod gen_PluginCrashedEventInit; #[cfg(feature = "PluginCrashedEventInit")] #[allow(unused_imports)] pub use gen_PluginCrashedEventInit::*; #[cfg(feature = "PointerEvent")] #[allow(non_snake_case)] mod gen_PointerEvent; #[cfg(feature = "PointerEvent")] #[allow(unused_imports)] pub use gen_PointerEvent::*; #[cfg(feature = "PointerEventInit")] #[allow(non_snake_case)] mod gen_PointerEventInit; #[cfg(feature = "PointerEventInit")] #[allow(unused_imports)] pub use gen_PointerEventInit::*; #[cfg(feature = "PopStateEvent")] #[allow(non_snake_case)] mod gen_PopStateEvent; #[cfg(feature = "PopStateEvent")] #[allow(unused_imports)] pub use gen_PopStateEvent::*; #[cfg(feature = "PopStateEventInit")] #[allow(non_snake_case)] mod gen_PopStateEventInit; #[cfg(feature = "PopStateEventInit")] #[allow(unused_imports)] pub use gen_PopStateEventInit::*; #[cfg(feature = "PopupBlockedEvent")] #[allow(non_snake_case)] mod gen_PopupBlockedEvent; #[cfg(feature = "PopupBlockedEvent")] #[allow(unused_imports)] pub use gen_PopupBlockedEvent::*; #[cfg(feature = "PopupBlockedEventInit")] #[allow(non_snake_case)] mod gen_PopupBlockedEventInit; #[cfg(feature = "PopupBlockedEventInit")] #[allow(unused_imports)] pub use gen_PopupBlockedEventInit::*; #[cfg(feature = "Position")] #[allow(non_snake_case)] mod gen_Position; #[cfg(feature = "Position")] #[allow(unused_imports)] pub use gen_Position::*; #[cfg(feature = "PositionAlignSetting")] #[allow(non_snake_case)] mod gen_PositionAlignSetting; #[cfg(feature = "PositionAlignSetting")] #[allow(unused_imports)] pub use gen_PositionAlignSetting::*; #[cfg(feature = "PositionError")] #[allow(non_snake_case)] mod gen_PositionError; #[cfg(feature = "PositionError")] #[allow(unused_imports)] pub use gen_PositionError::*; #[cfg(feature = "PositionOptions")] #[allow(non_snake_case)] mod gen_PositionOptions; #[cfg(feature = "PositionOptions")] #[allow(unused_imports)] pub use gen_PositionOptions::*; #[cfg(feature = "PremultiplyAlpha")] #[allow(non_snake_case)] mod gen_PremultiplyAlpha; #[cfg(feature = "PremultiplyAlpha")] #[allow(unused_imports)] pub use gen_PremultiplyAlpha::*; #[cfg(feature = "Presentation")] #[allow(non_snake_case)] mod gen_Presentation; #[cfg(feature = "Presentation")] #[allow(unused_imports)] pub use gen_Presentation::*; #[cfg(feature = "PresentationAvailability")] #[allow(non_snake_case)] mod gen_PresentationAvailability; #[cfg(feature = "PresentationAvailability")] #[allow(unused_imports)] pub use gen_PresentationAvailability::*; #[cfg(feature = "PresentationConnection")] #[allow(non_snake_case)] mod gen_PresentationConnection; #[cfg(feature = "PresentationConnection")] #[allow(unused_imports)] pub use gen_PresentationConnection::*; #[cfg(feature = "PresentationConnectionAvailableEvent")] #[allow(non_snake_case)] mod gen_PresentationConnectionAvailableEvent; #[cfg(feature = "PresentationConnectionAvailableEvent")] #[allow(unused_imports)] pub use gen_PresentationConnectionAvailableEvent::*; #[cfg(feature = "PresentationConnectionAvailableEventInit")] #[allow(non_snake_case)] mod gen_PresentationConnectionAvailableEventInit; #[cfg(feature = "PresentationConnectionAvailableEventInit")] #[allow(unused_imports)] pub use gen_PresentationConnectionAvailableEventInit::*; #[cfg(feature = "PresentationConnectionBinaryType")] #[allow(non_snake_case)] mod gen_PresentationConnectionBinaryType; #[cfg(feature = "PresentationConnectionBinaryType")] #[allow(unused_imports)] pub use gen_PresentationConnectionBinaryType::*; #[cfg(feature = "PresentationConnectionCloseEvent")] #[allow(non_snake_case)] mod gen_PresentationConnectionCloseEvent; #[cfg(feature = "PresentationConnectionCloseEvent")] #[allow(unused_imports)] pub use gen_PresentationConnectionCloseEvent::*; #[cfg(feature = "PresentationConnectionCloseEventInit")] #[allow(non_snake_case)] mod gen_PresentationConnectionCloseEventInit; #[cfg(feature = "PresentationConnectionCloseEventInit")] #[allow(unused_imports)] pub use gen_PresentationConnectionCloseEventInit::*; #[cfg(feature = "PresentationConnectionClosedReason")] #[allow(non_snake_case)] mod gen_PresentationConnectionClosedReason; #[cfg(feature = "PresentationConnectionClosedReason")] #[allow(unused_imports)] pub use gen_PresentationConnectionClosedReason::*; #[cfg(feature = "PresentationConnectionList")] #[allow(non_snake_case)] mod gen_PresentationConnectionList; #[cfg(feature = "PresentationConnectionList")] #[allow(unused_imports)] pub use gen_PresentationConnectionList::*; #[cfg(feature = "PresentationConnectionState")] #[allow(non_snake_case)] mod gen_PresentationConnectionState; #[cfg(feature = "PresentationConnectionState")] #[allow(unused_imports)] pub use gen_PresentationConnectionState::*; #[cfg(feature = "PresentationReceiver")] #[allow(non_snake_case)] mod gen_PresentationReceiver; #[cfg(feature = "PresentationReceiver")] #[allow(unused_imports)] pub use gen_PresentationReceiver::*; #[cfg(feature = "PresentationRequest")] #[allow(non_snake_case)] mod gen_PresentationRequest; #[cfg(feature = "PresentationRequest")] #[allow(unused_imports)] pub use gen_PresentationRequest::*; #[cfg(feature = "PresentationStyle")] #[allow(non_snake_case)] mod gen_PresentationStyle; #[cfg(feature = "PresentationStyle")] #[allow(unused_imports)] pub use gen_PresentationStyle::*; #[cfg(feature = "ProcessingInstruction")] #[allow(non_snake_case)] mod gen_ProcessingInstruction; #[cfg(feature = "ProcessingInstruction")] #[allow(unused_imports)] pub use gen_ProcessingInstruction::*; #[cfg(feature = "ProfileTimelineLayerRect")] #[allow(non_snake_case)] mod gen_ProfileTimelineLayerRect; #[cfg(feature = "ProfileTimelineLayerRect")] #[allow(unused_imports)] pub use gen_ProfileTimelineLayerRect::*; #[cfg(feature = "ProfileTimelineMarker")] #[allow(non_snake_case)] mod gen_ProfileTimelineMarker; #[cfg(feature = "ProfileTimelineMarker")] #[allow(unused_imports)] pub use gen_ProfileTimelineMarker::*; #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[allow(non_snake_case)] mod gen_ProfileTimelineMessagePortOperationType; #[cfg(feature = "ProfileTimelineMessagePortOperationType")] #[allow(unused_imports)] pub use gen_ProfileTimelineMessagePortOperationType::*; #[cfg(feature = "ProfileTimelineStackFrame")] #[allow(non_snake_case)] mod gen_ProfileTimelineStackFrame; #[cfg(feature = "ProfileTimelineStackFrame")] #[allow(unused_imports)] pub use gen_ProfileTimelineStackFrame::*; #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[allow(non_snake_case)] mod gen_ProfileTimelineWorkerOperationType; #[cfg(feature = "ProfileTimelineWorkerOperationType")] #[allow(unused_imports)] pub use gen_ProfileTimelineWorkerOperationType::*; #[cfg(feature = "ProgressEvent")] #[allow(non_snake_case)] mod gen_ProgressEvent; #[cfg(feature = "ProgressEvent")] #[allow(unused_imports)] pub use gen_ProgressEvent::*; #[cfg(feature = "ProgressEventInit")] #[allow(non_snake_case)] mod gen_ProgressEventInit; #[cfg(feature = "ProgressEventInit")] #[allow(unused_imports)] pub use gen_ProgressEventInit::*; #[cfg(feature = "PromiseNativeHandler")] #[allow(non_snake_case)] mod gen_PromiseNativeHandler; #[cfg(feature = "PromiseNativeHandler")] #[allow(unused_imports)] pub use gen_PromiseNativeHandler::*; #[cfg(feature = "PromiseRejectionEvent")] #[allow(non_snake_case)] mod gen_PromiseRejectionEvent; #[cfg(feature = "PromiseRejectionEvent")] #[allow(unused_imports)] pub use gen_PromiseRejectionEvent::*; #[cfg(feature = "PromiseRejectionEventInit")] #[allow(non_snake_case)] mod gen_PromiseRejectionEventInit; #[cfg(feature = "PromiseRejectionEventInit")] #[allow(unused_imports)] pub use gen_PromiseRejectionEventInit::*; #[cfg(feature = "PublicKeyCredential")] #[allow(non_snake_case)] mod gen_PublicKeyCredential; #[cfg(feature = "PublicKeyCredential")] #[allow(unused_imports)] pub use gen_PublicKeyCredential::*; #[cfg(feature = "PublicKeyCredentialCreationOptions")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialCreationOptions; #[cfg(feature = "PublicKeyCredentialCreationOptions")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialCreationOptions::*; #[cfg(feature = "PublicKeyCredentialCreationOptionsJson")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialCreationOptionsJson; #[cfg(feature = "PublicKeyCredentialCreationOptionsJson")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialCreationOptionsJson::*; #[cfg(feature = "PublicKeyCredentialDescriptor")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialDescriptor; #[cfg(feature = "PublicKeyCredentialDescriptor")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialDescriptor::*; #[cfg(feature = "PublicKeyCredentialDescriptorJson")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialDescriptorJson; #[cfg(feature = "PublicKeyCredentialDescriptorJson")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialDescriptorJson::*; #[cfg(feature = "PublicKeyCredentialEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialEntity; #[cfg(feature = "PublicKeyCredentialEntity")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialEntity::*; #[cfg(feature = "PublicKeyCredentialHints")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialHints; #[cfg(feature = "PublicKeyCredentialHints")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialHints::*; #[cfg(feature = "PublicKeyCredentialParameters")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialParameters; #[cfg(feature = "PublicKeyCredentialParameters")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialParameters::*; #[cfg(feature = "PublicKeyCredentialRequestOptions")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialRequestOptions; #[cfg(feature = "PublicKeyCredentialRequestOptions")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialRequestOptions::*; #[cfg(feature = "PublicKeyCredentialRequestOptionsJson")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialRequestOptionsJson; #[cfg(feature = "PublicKeyCredentialRequestOptionsJson")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialRequestOptionsJson::*; #[cfg(feature = "PublicKeyCredentialRpEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialRpEntity; #[cfg(feature = "PublicKeyCredentialRpEntity")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialRpEntity::*; #[cfg(feature = "PublicKeyCredentialType")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialType; #[cfg(feature = "PublicKeyCredentialType")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialType::*; #[cfg(feature = "PublicKeyCredentialUserEntity")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialUserEntity; #[cfg(feature = "PublicKeyCredentialUserEntity")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialUserEntity::*; #[cfg(feature = "PublicKeyCredentialUserEntityJson")] #[allow(non_snake_case)] mod gen_PublicKeyCredentialUserEntityJson; #[cfg(feature = "PublicKeyCredentialUserEntityJson")] #[allow(unused_imports)] pub use gen_PublicKeyCredentialUserEntityJson::*; #[cfg(feature = "PushEncryptionKeyName")] #[allow(non_snake_case)] mod gen_PushEncryptionKeyName; #[cfg(feature = "PushEncryptionKeyName")] #[allow(unused_imports)] pub use gen_PushEncryptionKeyName::*; #[cfg(feature = "PushEvent")] #[allow(non_snake_case)] mod gen_PushEvent; #[cfg(feature = "PushEvent")] #[allow(unused_imports)] pub use gen_PushEvent::*; #[cfg(feature = "PushEventInit")] #[allow(non_snake_case)] mod gen_PushEventInit; #[cfg(feature = "PushEventInit")] #[allow(unused_imports)] pub use gen_PushEventInit::*; #[cfg(feature = "PushManager")] #[allow(non_snake_case)] mod gen_PushManager; #[cfg(feature = "PushManager")] #[allow(unused_imports)] pub use gen_PushManager::*; #[cfg(feature = "PushMessageData")] #[allow(non_snake_case)] mod gen_PushMessageData; #[cfg(feature = "PushMessageData")] #[allow(unused_imports)] pub use gen_PushMessageData::*; #[cfg(feature = "PushPermissionState")] #[allow(non_snake_case)] mod gen_PushPermissionState; #[cfg(feature = "PushPermissionState")] #[allow(unused_imports)] pub use gen_PushPermissionState::*; #[cfg(feature = "PushSubscription")] #[allow(non_snake_case)] mod gen_PushSubscription; #[cfg(feature = "PushSubscription")] #[allow(unused_imports)] pub use gen_PushSubscription::*; #[cfg(feature = "PushSubscriptionInit")] #[allow(non_snake_case)] mod gen_PushSubscriptionInit; #[cfg(feature = "PushSubscriptionInit")] #[allow(unused_imports)] pub use gen_PushSubscriptionInit::*; #[cfg(feature = "PushSubscriptionJson")] #[allow(non_snake_case)] mod gen_PushSubscriptionJson; #[cfg(feature = "PushSubscriptionJson")] #[allow(unused_imports)] pub use gen_PushSubscriptionJson::*; #[cfg(feature = "PushSubscriptionKeys")] #[allow(non_snake_case)] mod gen_PushSubscriptionKeys; #[cfg(feature = "PushSubscriptionKeys")] #[allow(unused_imports)] pub use gen_PushSubscriptionKeys::*; #[cfg(feature = "PushSubscriptionOptions")] #[allow(non_snake_case)] mod gen_PushSubscriptionOptions; #[cfg(feature = "PushSubscriptionOptions")] #[allow(unused_imports)] pub use gen_PushSubscriptionOptions::*; #[cfg(feature = "PushSubscriptionOptionsInit")] #[allow(non_snake_case)] mod gen_PushSubscriptionOptionsInit; #[cfg(feature = "PushSubscriptionOptionsInit")] #[allow(unused_imports)] pub use gen_PushSubscriptionOptionsInit::*; #[cfg(feature = "QueryOptions")] #[allow(non_snake_case)] mod gen_QueryOptions; #[cfg(feature = "QueryOptions")] #[allow(unused_imports)] pub use gen_QueryOptions::*; #[cfg(feature = "QueuingStrategy")] #[allow(non_snake_case)] mod gen_QueuingStrategy; #[cfg(feature = "QueuingStrategy")] #[allow(unused_imports)] pub use gen_QueuingStrategy::*; #[cfg(feature = "QueuingStrategyInit")] #[allow(non_snake_case)] mod gen_QueuingStrategyInit; #[cfg(feature = "QueuingStrategyInit")] #[allow(unused_imports)] pub use gen_QueuingStrategyInit::*; #[cfg(feature = "RadioNodeList")] #[allow(non_snake_case)] mod gen_RadioNodeList; #[cfg(feature = "RadioNodeList")] #[allow(unused_imports)] pub use gen_RadioNodeList::*; #[cfg(feature = "Range")] #[allow(non_snake_case)] mod gen_Range; #[cfg(feature = "Range")] #[allow(unused_imports)] pub use gen_Range::*; #[cfg(feature = "RcwnPerfStats")] #[allow(non_snake_case)] mod gen_RcwnPerfStats; #[cfg(feature = "RcwnPerfStats")] #[allow(unused_imports)] pub use gen_RcwnPerfStats::*; #[cfg(feature = "RcwnStatus")] #[allow(non_snake_case)] mod gen_RcwnStatus; #[cfg(feature = "RcwnStatus")] #[allow(unused_imports)] pub use gen_RcwnStatus::*; #[cfg(feature = "ReadableByteStreamController")] #[allow(non_snake_case)] mod gen_ReadableByteStreamController; #[cfg(feature = "ReadableByteStreamController")] #[allow(unused_imports)] pub use gen_ReadableByteStreamController::*; #[cfg(feature = "ReadableStream")] #[allow(non_snake_case)] mod gen_ReadableStream; #[cfg(feature = "ReadableStream")] #[allow(unused_imports)] pub use gen_ReadableStream::*; #[cfg(feature = "ReadableStreamByobReader")] #[allow(non_snake_case)] mod gen_ReadableStreamByobReader; #[cfg(feature = "ReadableStreamByobReader")] #[allow(unused_imports)] pub use gen_ReadableStreamByobReader::*; #[cfg(feature = "ReadableStreamByobRequest")] #[allow(non_snake_case)] mod gen_ReadableStreamByobRequest; #[cfg(feature = "ReadableStreamByobRequest")] #[allow(unused_imports)] pub use gen_ReadableStreamByobRequest::*; #[cfg(feature = "ReadableStreamDefaultController")] #[allow(non_snake_case)] mod gen_ReadableStreamDefaultController; #[cfg(feature = "ReadableStreamDefaultController")] #[allow(unused_imports)] pub use gen_ReadableStreamDefaultController::*; #[cfg(feature = "ReadableStreamDefaultReader")] #[allow(non_snake_case)] mod gen_ReadableStreamDefaultReader; #[cfg(feature = "ReadableStreamDefaultReader")] #[allow(unused_imports)] pub use gen_ReadableStreamDefaultReader::*; #[cfg(feature = "ReadableStreamGetReaderOptions")] #[allow(non_snake_case)] mod gen_ReadableStreamGetReaderOptions; #[cfg(feature = "ReadableStreamGetReaderOptions")] #[allow(unused_imports)] pub use gen_ReadableStreamGetReaderOptions::*; #[cfg(feature = "ReadableStreamIteratorOptions")] #[allow(non_snake_case)] mod gen_ReadableStreamIteratorOptions; #[cfg(feature = "ReadableStreamIteratorOptions")] #[allow(unused_imports)] pub use gen_ReadableStreamIteratorOptions::*; #[cfg(feature = "ReadableStreamReadResult")] #[allow(non_snake_case)] mod gen_ReadableStreamReadResult; #[cfg(feature = "ReadableStreamReadResult")] #[allow(unused_imports)] pub use gen_ReadableStreamReadResult::*; #[cfg(feature = "ReadableStreamReaderMode")] #[allow(non_snake_case)] mod gen_ReadableStreamReaderMode; #[cfg(feature = "ReadableStreamReaderMode")] #[allow(unused_imports)] pub use gen_ReadableStreamReaderMode::*; #[cfg(feature = "ReadableStreamType")] #[allow(non_snake_case)] mod gen_ReadableStreamType; #[cfg(feature = "ReadableStreamType")] #[allow(unused_imports)] pub use gen_ReadableStreamType::*; #[cfg(feature = "ReadableWritablePair")] #[allow(non_snake_case)] mod gen_ReadableWritablePair; #[cfg(feature = "ReadableWritablePair")] #[allow(unused_imports)] pub use gen_ReadableWritablePair::*; #[cfg(feature = "RecordingState")] #[allow(non_snake_case)] mod gen_RecordingState; #[cfg(feature = "RecordingState")] #[allow(unused_imports)] pub use gen_RecordingState::*; #[cfg(feature = "ReferrerPolicy")] #[allow(non_snake_case)] mod gen_ReferrerPolicy; #[cfg(feature = "ReferrerPolicy")] #[allow(unused_imports)] pub use gen_ReferrerPolicy::*; #[cfg(feature = "RegisterRequest")] #[allow(non_snake_case)] mod gen_RegisterRequest; #[cfg(feature = "RegisterRequest")] #[allow(unused_imports)] pub use gen_RegisterRequest::*; #[cfg(feature = "RegisterResponse")] #[allow(non_snake_case)] mod gen_RegisterResponse; #[cfg(feature = "RegisterResponse")] #[allow(unused_imports)] pub use gen_RegisterResponse::*; #[cfg(feature = "RegisteredKey")] #[allow(non_snake_case)] mod gen_RegisteredKey; #[cfg(feature = "RegisteredKey")] #[allow(unused_imports)] pub use gen_RegisteredKey::*; #[cfg(feature = "RegistrationOptions")] #[allow(non_snake_case)] mod gen_RegistrationOptions; #[cfg(feature = "RegistrationOptions")] #[allow(unused_imports)] pub use gen_RegistrationOptions::*; #[cfg(feature = "RegistrationResponseJson")] #[allow(non_snake_case)] mod gen_RegistrationResponseJson; #[cfg(feature = "RegistrationResponseJson")] #[allow(unused_imports)] pub use gen_RegistrationResponseJson::*; #[cfg(feature = "Request")] #[allow(non_snake_case)] mod gen_Request; #[cfg(feature = "Request")] #[allow(unused_imports)] pub use gen_Request::*; #[cfg(feature = "RequestCache")] #[allow(non_snake_case)] mod gen_RequestCache; #[cfg(feature = "RequestCache")] #[allow(unused_imports)] pub use gen_RequestCache::*; #[cfg(feature = "RequestCredentials")] #[allow(non_snake_case)] mod gen_RequestCredentials; #[cfg(feature = "RequestCredentials")] #[allow(unused_imports)] pub use gen_RequestCredentials::*; #[cfg(feature = "RequestDestination")] #[allow(non_snake_case)] mod gen_RequestDestination; #[cfg(feature = "RequestDestination")] #[allow(unused_imports)] pub use gen_RequestDestination::*; #[cfg(feature = "RequestDeviceOptions")] #[allow(non_snake_case)] mod gen_RequestDeviceOptions; #[cfg(feature = "RequestDeviceOptions")] #[allow(unused_imports)] pub use gen_RequestDeviceOptions::*; #[cfg(feature = "RequestInit")] #[allow(non_snake_case)] mod gen_RequestInit; #[cfg(feature = "RequestInit")] #[allow(unused_imports)] pub use gen_RequestInit::*; #[cfg(feature = "RequestMediaKeySystemAccessNotification")] #[allow(non_snake_case)] mod gen_RequestMediaKeySystemAccessNotification; #[cfg(feature = "RequestMediaKeySystemAccessNotification")] #[allow(unused_imports)] pub use gen_RequestMediaKeySystemAccessNotification::*; #[cfg(feature = "RequestMode")] #[allow(non_snake_case)] mod gen_RequestMode; #[cfg(feature = "RequestMode")] #[allow(unused_imports)] pub use gen_RequestMode::*; #[cfg(feature = "RequestRedirect")] #[allow(non_snake_case)] mod gen_RequestRedirect; #[cfg(feature = "RequestRedirect")] #[allow(unused_imports)] pub use gen_RequestRedirect::*; #[cfg(feature = "ResidentKeyRequirement")] #[allow(non_snake_case)] mod gen_ResidentKeyRequirement; #[cfg(feature = "ResidentKeyRequirement")] #[allow(unused_imports)] pub use gen_ResidentKeyRequirement::*; #[cfg(feature = "ResizeObserver")] #[allow(non_snake_case)] mod gen_ResizeObserver; #[cfg(feature = "ResizeObserver")] #[allow(unused_imports)] pub use gen_ResizeObserver::*; #[cfg(feature = "ResizeObserverBoxOptions")] #[allow(non_snake_case)] mod gen_ResizeObserverBoxOptions; #[cfg(feature = "ResizeObserverBoxOptions")] #[allow(unused_imports)] pub use gen_ResizeObserverBoxOptions::*; #[cfg(feature = "ResizeObserverEntry")] #[allow(non_snake_case)] mod gen_ResizeObserverEntry; #[cfg(feature = "ResizeObserverEntry")] #[allow(unused_imports)] pub use gen_ResizeObserverEntry::*; #[cfg(feature = "ResizeObserverOptions")] #[allow(non_snake_case)] mod gen_ResizeObserverOptions; #[cfg(feature = "ResizeObserverOptions")] #[allow(unused_imports)] pub use gen_ResizeObserverOptions::*; #[cfg(feature = "ResizeObserverSize")] #[allow(non_snake_case)] mod gen_ResizeObserverSize; #[cfg(feature = "ResizeObserverSize")] #[allow(unused_imports)] pub use gen_ResizeObserverSize::*; #[cfg(feature = "ResizeQuality")] #[allow(non_snake_case)] mod gen_ResizeQuality; #[cfg(feature = "ResizeQuality")] #[allow(unused_imports)] pub use gen_ResizeQuality::*; #[cfg(feature = "Response")] #[allow(non_snake_case)] mod gen_Response; #[cfg(feature = "Response")] #[allow(unused_imports)] pub use gen_Response::*; #[cfg(feature = "ResponseInit")] #[allow(non_snake_case)] mod gen_ResponseInit; #[cfg(feature = "ResponseInit")] #[allow(unused_imports)] pub use gen_ResponseInit::*; #[cfg(feature = "ResponseType")] #[allow(non_snake_case)] mod gen_ResponseType; #[cfg(feature = "ResponseType")] #[allow(unused_imports)] pub use gen_ResponseType::*; #[cfg(feature = "RsaHashedImportParams")] #[allow(non_snake_case)] mod gen_RsaHashedImportParams; #[cfg(feature = "RsaHashedImportParams")] #[allow(unused_imports)] pub use gen_RsaHashedImportParams::*; #[cfg(feature = "RsaOaepParams")] #[allow(non_snake_case)] mod gen_RsaOaepParams; #[cfg(feature = "RsaOaepParams")] #[allow(unused_imports)] pub use gen_RsaOaepParams::*; #[cfg(feature = "RsaOtherPrimesInfo")] #[allow(non_snake_case)] mod gen_RsaOtherPrimesInfo; #[cfg(feature = "RsaOtherPrimesInfo")] #[allow(unused_imports)] pub use gen_RsaOtherPrimesInfo::*; #[cfg(feature = "RsaPssParams")] #[allow(non_snake_case)] mod gen_RsaPssParams; #[cfg(feature = "RsaPssParams")] #[allow(unused_imports)] pub use gen_RsaPssParams::*; #[cfg(feature = "RtcAnswerOptions")] #[allow(non_snake_case)] mod gen_RtcAnswerOptions; #[cfg(feature = "RtcAnswerOptions")] #[allow(unused_imports)] pub use gen_RtcAnswerOptions::*; #[cfg(feature = "RtcBundlePolicy")] #[allow(non_snake_case)] mod gen_RtcBundlePolicy; #[cfg(feature = "RtcBundlePolicy")] #[allow(unused_imports)] pub use gen_RtcBundlePolicy::*; #[cfg(feature = "RtcCertificate")] #[allow(non_snake_case)] mod gen_RtcCertificate; #[cfg(feature = "RtcCertificate")] #[allow(unused_imports)] pub use gen_RtcCertificate::*; #[cfg(feature = "RtcCertificateExpiration")] #[allow(non_snake_case)] mod gen_RtcCertificateExpiration; #[cfg(feature = "RtcCertificateExpiration")] #[allow(unused_imports)] pub use gen_RtcCertificateExpiration::*; #[cfg(feature = "RtcCodecStats")] #[allow(non_snake_case)] mod gen_RtcCodecStats; #[cfg(feature = "RtcCodecStats")] #[allow(unused_imports)] pub use gen_RtcCodecStats::*; #[cfg(feature = "RtcConfiguration")] #[allow(non_snake_case)] mod gen_RtcConfiguration; #[cfg(feature = "RtcConfiguration")] #[allow(unused_imports)] pub use gen_RtcConfiguration::*; #[cfg(feature = "RtcDataChannel")] #[allow(non_snake_case)] mod gen_RtcDataChannel; #[cfg(feature = "RtcDataChannel")] #[allow(unused_imports)] pub use gen_RtcDataChannel::*; #[cfg(feature = "RtcDataChannelEvent")] #[allow(non_snake_case)] mod gen_RtcDataChannelEvent; #[cfg(feature = "RtcDataChannelEvent")] #[allow(unused_imports)] pub use gen_RtcDataChannelEvent::*; #[cfg(feature = "RtcDataChannelEventInit")] #[allow(non_snake_case)] mod gen_RtcDataChannelEventInit; #[cfg(feature = "RtcDataChannelEventInit")] #[allow(unused_imports)] pub use gen_RtcDataChannelEventInit::*; #[cfg(feature = "RtcDataChannelInit")] #[allow(non_snake_case)] mod gen_RtcDataChannelInit; #[cfg(feature = "RtcDataChannelInit")] #[allow(unused_imports)] pub use gen_RtcDataChannelInit::*; #[cfg(feature = "RtcDataChannelState")] #[allow(non_snake_case)] mod gen_RtcDataChannelState; #[cfg(feature = "RtcDataChannelState")] #[allow(unused_imports)] pub use gen_RtcDataChannelState::*; #[cfg(feature = "RtcDataChannelType")] #[allow(non_snake_case)] mod gen_RtcDataChannelType; #[cfg(feature = "RtcDataChannelType")] #[allow(unused_imports)] pub use gen_RtcDataChannelType::*; #[cfg(feature = "RtcDegradationPreference")] #[allow(non_snake_case)] mod gen_RtcDegradationPreference; #[cfg(feature = "RtcDegradationPreference")] #[allow(unused_imports)] pub use gen_RtcDegradationPreference::*; #[cfg(feature = "RtcEncodedAudioFrame")] #[allow(non_snake_case)] mod gen_RtcEncodedAudioFrame; #[cfg(feature = "RtcEncodedAudioFrame")] #[allow(unused_imports)] pub use gen_RtcEncodedAudioFrame::*; #[cfg(feature = "RtcEncodedAudioFrameMetadata")] #[allow(non_snake_case)] mod gen_RtcEncodedAudioFrameMetadata; #[cfg(feature = "RtcEncodedAudioFrameMetadata")] #[allow(unused_imports)] pub use gen_RtcEncodedAudioFrameMetadata::*; #[cfg(feature = "RtcEncodedAudioFrameOptions")] #[allow(non_snake_case)] mod gen_RtcEncodedAudioFrameOptions; #[cfg(feature = "RtcEncodedAudioFrameOptions")] #[allow(unused_imports)] pub use gen_RtcEncodedAudioFrameOptions::*; #[cfg(feature = "RtcEncodedVideoFrame")] #[allow(non_snake_case)] mod gen_RtcEncodedVideoFrame; #[cfg(feature = "RtcEncodedVideoFrame")] #[allow(unused_imports)] pub use gen_RtcEncodedVideoFrame::*; #[cfg(feature = "RtcEncodedVideoFrameMetadata")] #[allow(non_snake_case)] mod gen_RtcEncodedVideoFrameMetadata; #[cfg(feature = "RtcEncodedVideoFrameMetadata")] #[allow(unused_imports)] pub use gen_RtcEncodedVideoFrameMetadata::*; #[cfg(feature = "RtcEncodedVideoFrameOptions")] #[allow(non_snake_case)] mod gen_RtcEncodedVideoFrameOptions; #[cfg(feature = "RtcEncodedVideoFrameOptions")] #[allow(unused_imports)] pub use gen_RtcEncodedVideoFrameOptions::*; #[cfg(feature = "RtcEncodedVideoFrameType")] #[allow(non_snake_case)] mod gen_RtcEncodedVideoFrameType; #[cfg(feature = "RtcEncodedVideoFrameType")] #[allow(unused_imports)] pub use gen_RtcEncodedVideoFrameType::*; #[cfg(feature = "RtcFecParameters")] #[allow(non_snake_case)] mod gen_RtcFecParameters; #[cfg(feature = "RtcFecParameters")] #[allow(unused_imports)] pub use gen_RtcFecParameters::*; #[cfg(feature = "RtcIceCandidate")] #[allow(non_snake_case)] mod gen_RtcIceCandidate; #[cfg(feature = "RtcIceCandidate")] #[allow(unused_imports)] pub use gen_RtcIceCandidate::*; #[cfg(feature = "RtcIceCandidateInit")] #[allow(non_snake_case)] mod gen_RtcIceCandidateInit; #[cfg(feature = "RtcIceCandidateInit")] #[allow(unused_imports)] pub use gen_RtcIceCandidateInit::*; #[cfg(feature = "RtcIceCandidatePairStats")] #[allow(non_snake_case)] mod gen_RtcIceCandidatePairStats; #[cfg(feature = "RtcIceCandidatePairStats")] #[allow(unused_imports)] pub use gen_RtcIceCandidatePairStats::*; #[cfg(feature = "RtcIceCandidateStats")] #[allow(non_snake_case)] mod gen_RtcIceCandidateStats; #[cfg(feature = "RtcIceCandidateStats")] #[allow(unused_imports)] pub use gen_RtcIceCandidateStats::*; #[cfg(feature = "RtcIceComponentStats")] #[allow(non_snake_case)] mod gen_RtcIceComponentStats; #[cfg(feature = "RtcIceComponentStats")] #[allow(unused_imports)] pub use gen_RtcIceComponentStats::*; #[cfg(feature = "RtcIceConnectionState")] #[allow(non_snake_case)] mod gen_RtcIceConnectionState; #[cfg(feature = "RtcIceConnectionState")] #[allow(unused_imports)] pub use gen_RtcIceConnectionState::*; #[cfg(feature = "RtcIceCredentialType")] #[allow(non_snake_case)] mod gen_RtcIceCredentialType; #[cfg(feature = "RtcIceCredentialType")] #[allow(unused_imports)] pub use gen_RtcIceCredentialType::*; #[cfg(feature = "RtcIceGatheringState")] #[allow(non_snake_case)] mod gen_RtcIceGatheringState; #[cfg(feature = "RtcIceGatheringState")] #[allow(unused_imports)] pub use gen_RtcIceGatheringState::*; #[cfg(feature = "RtcIceServer")] #[allow(non_snake_case)] mod gen_RtcIceServer; #[cfg(feature = "RtcIceServer")] #[allow(unused_imports)] pub use gen_RtcIceServer::*; #[cfg(feature = "RtcIceTransportPolicy")] #[allow(non_snake_case)] mod gen_RtcIceTransportPolicy; #[cfg(feature = "RtcIceTransportPolicy")] #[allow(unused_imports)] pub use gen_RtcIceTransportPolicy::*; #[cfg(feature = "RtcIdentityAssertion")] #[allow(non_snake_case)] mod gen_RtcIdentityAssertion; #[cfg(feature = "RtcIdentityAssertion")] #[allow(unused_imports)] pub use gen_RtcIdentityAssertion::*; #[cfg(feature = "RtcIdentityAssertionResult")] #[allow(non_snake_case)] mod gen_RtcIdentityAssertionResult; #[cfg(feature = "RtcIdentityAssertionResult")] #[allow(unused_imports)] pub use gen_RtcIdentityAssertionResult::*; #[cfg(feature = "RtcIdentityProvider")] #[allow(non_snake_case)] mod gen_RtcIdentityProvider; #[cfg(feature = "RtcIdentityProvider")] #[allow(unused_imports)] pub use gen_RtcIdentityProvider::*; #[cfg(feature = "RtcIdentityProviderDetails")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderDetails; #[cfg(feature = "RtcIdentityProviderDetails")] #[allow(unused_imports)] pub use gen_RtcIdentityProviderDetails::*; #[cfg(feature = "RtcIdentityProviderOptions")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderOptions; #[cfg(feature = "RtcIdentityProviderOptions")] #[allow(unused_imports)] pub use gen_RtcIdentityProviderOptions::*; #[cfg(feature = "RtcIdentityProviderRegistrar")] #[allow(non_snake_case)] mod gen_RtcIdentityProviderRegistrar; #[cfg(feature = "RtcIdentityProviderRegistrar")] #[allow(unused_imports)] pub use gen_RtcIdentityProviderRegistrar::*; #[cfg(feature = "RtcIdentityValidationResult")] #[allow(non_snake_case)] mod gen_RtcIdentityValidationResult; #[cfg(feature = "RtcIdentityValidationResult")] #[allow(unused_imports)] pub use gen_RtcIdentityValidationResult::*; #[cfg(feature = "RtcInboundRtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcInboundRtpStreamStats; #[cfg(feature = "RtcInboundRtpStreamStats")] #[allow(unused_imports)] pub use gen_RtcInboundRtpStreamStats::*; #[cfg(feature = "RtcMediaStreamStats")] #[allow(non_snake_case)] mod gen_RtcMediaStreamStats; #[cfg(feature = "RtcMediaStreamStats")] #[allow(unused_imports)] pub use gen_RtcMediaStreamStats::*; #[cfg(feature = "RtcMediaStreamTrackStats")] #[allow(non_snake_case)] mod gen_RtcMediaStreamTrackStats; #[cfg(feature = "RtcMediaStreamTrackStats")] #[allow(unused_imports)] pub use gen_RtcMediaStreamTrackStats::*; #[cfg(feature = "RtcOfferAnswerOptions")] #[allow(non_snake_case)] mod gen_RtcOfferAnswerOptions; #[cfg(feature = "RtcOfferAnswerOptions")] #[allow(unused_imports)] pub use gen_RtcOfferAnswerOptions::*; #[cfg(feature = "RtcOfferOptions")] #[allow(non_snake_case)] mod gen_RtcOfferOptions; #[cfg(feature = "RtcOfferOptions")] #[allow(unused_imports)] pub use gen_RtcOfferOptions::*; #[cfg(feature = "RtcOutboundRtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcOutboundRtpStreamStats; #[cfg(feature = "RtcOutboundRtpStreamStats")] #[allow(unused_imports)] pub use gen_RtcOutboundRtpStreamStats::*; #[cfg(feature = "RtcPeerConnection")] #[allow(non_snake_case)] mod gen_RtcPeerConnection; #[cfg(feature = "RtcPeerConnection")] #[allow(unused_imports)] pub use gen_RtcPeerConnection::*; #[cfg(feature = "RtcPeerConnectionIceErrorEvent")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionIceErrorEvent; #[cfg(feature = "RtcPeerConnectionIceErrorEvent")] #[allow(unused_imports)] pub use gen_RtcPeerConnectionIceErrorEvent::*; #[cfg(feature = "RtcPeerConnectionIceEvent")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionIceEvent; #[cfg(feature = "RtcPeerConnectionIceEvent")] #[allow(unused_imports)] pub use gen_RtcPeerConnectionIceEvent::*; #[cfg(feature = "RtcPeerConnectionIceEventInit")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionIceEventInit; #[cfg(feature = "RtcPeerConnectionIceEventInit")] #[allow(unused_imports)] pub use gen_RtcPeerConnectionIceEventInit::*; #[cfg(feature = "RtcPeerConnectionState")] #[allow(non_snake_case)] mod gen_RtcPeerConnectionState; #[cfg(feature = "RtcPeerConnectionState")] #[allow(unused_imports)] pub use gen_RtcPeerConnectionState::*; #[cfg(feature = "RtcPriorityType")] #[allow(non_snake_case)] mod gen_RtcPriorityType; #[cfg(feature = "RtcPriorityType")] #[allow(unused_imports)] pub use gen_RtcPriorityType::*; #[cfg(feature = "RtcRtcpParameters")] #[allow(non_snake_case)] mod gen_RtcRtcpParameters; #[cfg(feature = "RtcRtcpParameters")] #[allow(unused_imports)] pub use gen_RtcRtcpParameters::*; #[cfg(feature = "RtcRtpCapabilities")] #[allow(non_snake_case)] mod gen_RtcRtpCapabilities; #[cfg(feature = "RtcRtpCapabilities")] #[allow(unused_imports)] pub use gen_RtcRtpCapabilities::*; #[cfg(feature = "RtcRtpCodecCapability")] #[allow(non_snake_case)] mod gen_RtcRtpCodecCapability; #[cfg(feature = "RtcRtpCodecCapability")] #[allow(unused_imports)] pub use gen_RtcRtpCodecCapability::*; #[cfg(feature = "RtcRtpCodecParameters")] #[allow(non_snake_case)] mod gen_RtcRtpCodecParameters; #[cfg(feature = "RtcRtpCodecParameters")] #[allow(unused_imports)] pub use gen_RtcRtpCodecParameters::*; #[cfg(feature = "RtcRtpContributingSource")] #[allow(non_snake_case)] mod gen_RtcRtpContributingSource; #[cfg(feature = "RtcRtpContributingSource")] #[allow(unused_imports)] pub use gen_RtcRtpContributingSource::*; #[cfg(feature = "RtcRtpEncodingParameters")] #[allow(non_snake_case)] mod gen_RtcRtpEncodingParameters; #[cfg(feature = "RtcRtpEncodingParameters")] #[allow(unused_imports)] pub use gen_RtcRtpEncodingParameters::*; #[cfg(feature = "RtcRtpHeaderExtensionCapability")] #[allow(non_snake_case)] mod gen_RtcRtpHeaderExtensionCapability; #[cfg(feature = "RtcRtpHeaderExtensionCapability")] #[allow(unused_imports)] pub use gen_RtcRtpHeaderExtensionCapability::*; #[cfg(feature = "RtcRtpHeaderExtensionParameters")] #[allow(non_snake_case)] mod gen_RtcRtpHeaderExtensionParameters; #[cfg(feature = "RtcRtpHeaderExtensionParameters")] #[allow(unused_imports)] pub use gen_RtcRtpHeaderExtensionParameters::*; #[cfg(feature = "RtcRtpParameters")] #[allow(non_snake_case)] mod gen_RtcRtpParameters; #[cfg(feature = "RtcRtpParameters")] #[allow(unused_imports)] pub use gen_RtcRtpParameters::*; #[cfg(feature = "RtcRtpReceiver")] #[allow(non_snake_case)] mod gen_RtcRtpReceiver; #[cfg(feature = "RtcRtpReceiver")] #[allow(unused_imports)] pub use gen_RtcRtpReceiver::*; #[cfg(feature = "RtcRtpScriptTransform")] #[allow(non_snake_case)] mod gen_RtcRtpScriptTransform; #[cfg(feature = "RtcRtpScriptTransform")] #[allow(unused_imports)] pub use gen_RtcRtpScriptTransform::*; #[cfg(feature = "RtcRtpScriptTransformer")] #[allow(non_snake_case)] mod gen_RtcRtpScriptTransformer; #[cfg(feature = "RtcRtpScriptTransformer")] #[allow(unused_imports)] pub use gen_RtcRtpScriptTransformer::*; #[cfg(feature = "RtcRtpSender")] #[allow(non_snake_case)] mod gen_RtcRtpSender; #[cfg(feature = "RtcRtpSender")] #[allow(unused_imports)] pub use gen_RtcRtpSender::*; #[cfg(feature = "RtcRtpSourceEntry")] #[allow(non_snake_case)] mod gen_RtcRtpSourceEntry; #[cfg(feature = "RtcRtpSourceEntry")] #[allow(unused_imports)] pub use gen_RtcRtpSourceEntry::*; #[cfg(feature = "RtcRtpSourceEntryType")] #[allow(non_snake_case)] mod gen_RtcRtpSourceEntryType; #[cfg(feature = "RtcRtpSourceEntryType")] #[allow(unused_imports)] pub use gen_RtcRtpSourceEntryType::*; #[cfg(feature = "RtcRtpSynchronizationSource")] #[allow(non_snake_case)] mod gen_RtcRtpSynchronizationSource; #[cfg(feature = "RtcRtpSynchronizationSource")] #[allow(unused_imports)] pub use gen_RtcRtpSynchronizationSource::*; #[cfg(feature = "RtcRtpTransceiver")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiver; #[cfg(feature = "RtcRtpTransceiver")] #[allow(unused_imports)] pub use gen_RtcRtpTransceiver::*; #[cfg(feature = "RtcRtpTransceiverDirection")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiverDirection; #[cfg(feature = "RtcRtpTransceiverDirection")] #[allow(unused_imports)] pub use gen_RtcRtpTransceiverDirection::*; #[cfg(feature = "RtcRtpTransceiverInit")] #[allow(non_snake_case)] mod gen_RtcRtpTransceiverInit; #[cfg(feature = "RtcRtpTransceiverInit")] #[allow(unused_imports)] pub use gen_RtcRtpTransceiverInit::*; #[cfg(feature = "RtcRtxParameters")] #[allow(non_snake_case)] mod gen_RtcRtxParameters; #[cfg(feature = "RtcRtxParameters")] #[allow(unused_imports)] pub use gen_RtcRtxParameters::*; #[cfg(feature = "RtcSdpType")] #[allow(non_snake_case)] mod gen_RtcSdpType; #[cfg(feature = "RtcSdpType")] #[allow(unused_imports)] pub use gen_RtcSdpType::*; #[cfg(feature = "RtcSessionDescription")] #[allow(non_snake_case)] mod gen_RtcSessionDescription; #[cfg(feature = "RtcSessionDescription")] #[allow(unused_imports)] pub use gen_RtcSessionDescription::*; #[cfg(feature = "RtcSessionDescriptionInit")] #[allow(non_snake_case)] mod gen_RtcSessionDescriptionInit; #[cfg(feature = "RtcSessionDescriptionInit")] #[allow(unused_imports)] pub use gen_RtcSessionDescriptionInit::*; #[cfg(feature = "RtcSignalingState")] #[allow(non_snake_case)] mod gen_RtcSignalingState; #[cfg(feature = "RtcSignalingState")] #[allow(unused_imports)] pub use gen_RtcSignalingState::*; #[cfg(feature = "RtcStats")] #[allow(non_snake_case)] mod gen_RtcStats; #[cfg(feature = "RtcStats")] #[allow(unused_imports)] pub use gen_RtcStats::*; #[cfg(feature = "RtcStatsIceCandidatePairState")] #[allow(non_snake_case)] mod gen_RtcStatsIceCandidatePairState; #[cfg(feature = "RtcStatsIceCandidatePairState")] #[allow(unused_imports)] pub use gen_RtcStatsIceCandidatePairState::*; #[cfg(feature = "RtcStatsIceCandidateType")] #[allow(non_snake_case)] mod gen_RtcStatsIceCandidateType; #[cfg(feature = "RtcStatsIceCandidateType")] #[allow(unused_imports)] pub use gen_RtcStatsIceCandidateType::*; #[cfg(feature = "RtcStatsReport")] #[allow(non_snake_case)] mod gen_RtcStatsReport; #[cfg(feature = "RtcStatsReport")] #[allow(unused_imports)] pub use gen_RtcStatsReport::*; #[cfg(feature = "RtcStatsReportInternal")] #[allow(non_snake_case)] mod gen_RtcStatsReportInternal; #[cfg(feature = "RtcStatsReportInternal")] #[allow(unused_imports)] pub use gen_RtcStatsReportInternal::*; #[cfg(feature = "RtcStatsType")] #[allow(non_snake_case)] mod gen_RtcStatsType; #[cfg(feature = "RtcStatsType")] #[allow(unused_imports)] pub use gen_RtcStatsType::*; #[cfg(feature = "RtcTrackEvent")] #[allow(non_snake_case)] mod gen_RtcTrackEvent; #[cfg(feature = "RtcTrackEvent")] #[allow(unused_imports)] pub use gen_RtcTrackEvent::*; #[cfg(feature = "RtcTrackEventInit")] #[allow(non_snake_case)] mod gen_RtcTrackEventInit; #[cfg(feature = "RtcTrackEventInit")] #[allow(unused_imports)] pub use gen_RtcTrackEventInit::*; #[cfg(feature = "RtcTransformEvent")] #[allow(non_snake_case)] mod gen_RtcTransformEvent; #[cfg(feature = "RtcTransformEvent")] #[allow(unused_imports)] pub use gen_RtcTransformEvent::*; #[cfg(feature = "RtcTransportStats")] #[allow(non_snake_case)] mod gen_RtcTransportStats; #[cfg(feature = "RtcTransportStats")] #[allow(unused_imports)] pub use gen_RtcTransportStats::*; #[cfg(feature = "RtcdtmfSender")] #[allow(non_snake_case)] mod gen_RtcdtmfSender; #[cfg(feature = "RtcdtmfSender")] #[allow(unused_imports)] pub use gen_RtcdtmfSender::*; #[cfg(feature = "RtcdtmfToneChangeEvent")] #[allow(non_snake_case)] mod gen_RtcdtmfToneChangeEvent; #[cfg(feature = "RtcdtmfToneChangeEvent")] #[allow(unused_imports)] pub use gen_RtcdtmfToneChangeEvent::*; #[cfg(feature = "RtcdtmfToneChangeEventInit")] #[allow(non_snake_case)] mod gen_RtcdtmfToneChangeEventInit; #[cfg(feature = "RtcdtmfToneChangeEventInit")] #[allow(unused_imports)] pub use gen_RtcdtmfToneChangeEventInit::*; #[cfg(feature = "RtcrtpContributingSourceStats")] #[allow(non_snake_case)] mod gen_RtcrtpContributingSourceStats; #[cfg(feature = "RtcrtpContributingSourceStats")] #[allow(unused_imports)] pub use gen_RtcrtpContributingSourceStats::*; #[cfg(feature = "RtcrtpStreamStats")] #[allow(non_snake_case)] mod gen_RtcrtpStreamStats; #[cfg(feature = "RtcrtpStreamStats")] #[allow(unused_imports)] pub use gen_RtcrtpStreamStats::*; #[cfg(feature = "SFrameTransform")] #[allow(non_snake_case)] mod gen_SFrameTransform; #[cfg(feature = "SFrameTransform")] #[allow(unused_imports)] pub use gen_SFrameTransform::*; #[cfg(feature = "SFrameTransformErrorEvent")] #[allow(non_snake_case)] mod gen_SFrameTransformErrorEvent; #[cfg(feature = "SFrameTransformErrorEvent")] #[allow(unused_imports)] pub use gen_SFrameTransformErrorEvent::*; #[cfg(feature = "SFrameTransformErrorEventInit")] #[allow(non_snake_case)] mod gen_SFrameTransformErrorEventInit; #[cfg(feature = "SFrameTransformErrorEventInit")] #[allow(unused_imports)] pub use gen_SFrameTransformErrorEventInit::*; #[cfg(feature = "SFrameTransformErrorEventType")] #[allow(non_snake_case)] mod gen_SFrameTransformErrorEventType; #[cfg(feature = "SFrameTransformErrorEventType")] #[allow(unused_imports)] pub use gen_SFrameTransformErrorEventType::*; #[cfg(feature = "SFrameTransformOptions")] #[allow(non_snake_case)] mod gen_SFrameTransformOptions; #[cfg(feature = "SFrameTransformOptions")] #[allow(unused_imports)] pub use gen_SFrameTransformOptions::*; #[cfg(feature = "SFrameTransformRole")] #[allow(non_snake_case)] mod gen_SFrameTransformRole; #[cfg(feature = "SFrameTransformRole")] #[allow(unused_imports)] pub use gen_SFrameTransformRole::*; #[cfg(feature = "SaveFilePickerOptions")] #[allow(non_snake_case)] mod gen_SaveFilePickerOptions; #[cfg(feature = "SaveFilePickerOptions")] #[allow(unused_imports)] pub use gen_SaveFilePickerOptions::*; #[cfg(feature = "Scheduler")] #[allow(non_snake_case)] mod gen_Scheduler; #[cfg(feature = "Scheduler")] #[allow(unused_imports)] pub use gen_Scheduler::*; #[cfg(feature = "SchedulerPostTaskOptions")] #[allow(non_snake_case)] mod gen_SchedulerPostTaskOptions; #[cfg(feature = "SchedulerPostTaskOptions")] #[allow(unused_imports)] pub use gen_SchedulerPostTaskOptions::*; #[cfg(feature = "Scheduling")] #[allow(non_snake_case)] mod gen_Scheduling; #[cfg(feature = "Scheduling")] #[allow(unused_imports)] pub use gen_Scheduling::*; #[cfg(feature = "Screen")] #[allow(non_snake_case)] mod gen_Screen; #[cfg(feature = "Screen")] #[allow(unused_imports)] pub use gen_Screen::*; #[cfg(feature = "ScreenColorGamut")] #[allow(non_snake_case)] mod gen_ScreenColorGamut; #[cfg(feature = "ScreenColorGamut")] #[allow(unused_imports)] pub use gen_ScreenColorGamut::*; #[cfg(feature = "ScreenLuminance")] #[allow(non_snake_case)] mod gen_ScreenLuminance; #[cfg(feature = "ScreenLuminance")] #[allow(unused_imports)] pub use gen_ScreenLuminance::*; #[cfg(feature = "ScreenOrientation")] #[allow(non_snake_case)] mod gen_ScreenOrientation; #[cfg(feature = "ScreenOrientation")] #[allow(unused_imports)] pub use gen_ScreenOrientation::*; #[cfg(feature = "ScriptProcessorNode")] #[allow(non_snake_case)] mod gen_ScriptProcessorNode; #[cfg(feature = "ScriptProcessorNode")] #[allow(unused_imports)] pub use gen_ScriptProcessorNode::*; #[cfg(feature = "ScrollAreaEvent")] #[allow(non_snake_case)] mod gen_ScrollAreaEvent; #[cfg(feature = "ScrollAreaEvent")] #[allow(unused_imports)] pub use gen_ScrollAreaEvent::*; #[cfg(feature = "ScrollBehavior")] #[allow(non_snake_case)] mod gen_ScrollBehavior; #[cfg(feature = "ScrollBehavior")] #[allow(unused_imports)] pub use gen_ScrollBehavior::*; #[cfg(feature = "ScrollBoxObject")] #[allow(non_snake_case)] mod gen_ScrollBoxObject; #[cfg(feature = "ScrollBoxObject")] #[allow(unused_imports)] pub use gen_ScrollBoxObject::*; #[cfg(feature = "ScrollIntoViewOptions")] #[allow(non_snake_case)] mod gen_ScrollIntoViewOptions; #[cfg(feature = "ScrollIntoViewOptions")] #[allow(unused_imports)] pub use gen_ScrollIntoViewOptions::*; #[cfg(feature = "ScrollLogicalPosition")] #[allow(non_snake_case)] mod gen_ScrollLogicalPosition; #[cfg(feature = "ScrollLogicalPosition")] #[allow(unused_imports)] pub use gen_ScrollLogicalPosition::*; #[cfg(feature = "ScrollOptions")] #[allow(non_snake_case)] mod gen_ScrollOptions; #[cfg(feature = "ScrollOptions")] #[allow(unused_imports)] pub use gen_ScrollOptions::*; #[cfg(feature = "ScrollRestoration")] #[allow(non_snake_case)] mod gen_ScrollRestoration; #[cfg(feature = "ScrollRestoration")] #[allow(unused_imports)] pub use gen_ScrollRestoration::*; #[cfg(feature = "ScrollSetting")] #[allow(non_snake_case)] mod gen_ScrollSetting; #[cfg(feature = "ScrollSetting")] #[allow(unused_imports)] pub use gen_ScrollSetting::*; #[cfg(feature = "ScrollState")] #[allow(non_snake_case)] mod gen_ScrollState; #[cfg(feature = "ScrollState")] #[allow(unused_imports)] pub use gen_ScrollState::*; #[cfg(feature = "ScrollToOptions")] #[allow(non_snake_case)] mod gen_ScrollToOptions; #[cfg(feature = "ScrollToOptions")] #[allow(unused_imports)] pub use gen_ScrollToOptions::*; #[cfg(feature = "ScrollViewChangeEventInit")] #[allow(non_snake_case)] mod gen_ScrollViewChangeEventInit; #[cfg(feature = "ScrollViewChangeEventInit")] #[allow(unused_imports)] pub use gen_ScrollViewChangeEventInit::*; #[cfg(feature = "SecurityPolicyViolationEvent")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEvent; #[cfg(feature = "SecurityPolicyViolationEvent")] #[allow(unused_imports)] pub use gen_SecurityPolicyViolationEvent::*; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEventDisposition; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] #[allow(unused_imports)] pub use gen_SecurityPolicyViolationEventDisposition::*; #[cfg(feature = "SecurityPolicyViolationEventInit")] #[allow(non_snake_case)] mod gen_SecurityPolicyViolationEventInit; #[cfg(feature = "SecurityPolicyViolationEventInit")] #[allow(unused_imports)] pub use gen_SecurityPolicyViolationEventInit::*; #[cfg(feature = "Selection")] #[allow(non_snake_case)] mod gen_Selection; #[cfg(feature = "Selection")] #[allow(unused_imports)] pub use gen_Selection::*; #[cfg(feature = "SelectionMode")] #[allow(non_snake_case)] mod gen_SelectionMode; #[cfg(feature = "SelectionMode")] #[allow(unused_imports)] pub use gen_SelectionMode::*; #[cfg(feature = "Serial")] #[allow(non_snake_case)] mod gen_Serial; #[cfg(feature = "Serial")] #[allow(unused_imports)] pub use gen_Serial::*; #[cfg(feature = "SerialInputSignals")] #[allow(non_snake_case)] mod gen_SerialInputSignals; #[cfg(feature = "SerialInputSignals")] #[allow(unused_imports)] pub use gen_SerialInputSignals::*; #[cfg(feature = "SerialOptions")] #[allow(non_snake_case)] mod gen_SerialOptions; #[cfg(feature = "SerialOptions")] #[allow(unused_imports)] pub use gen_SerialOptions::*; #[cfg(feature = "SerialOutputSignals")] #[allow(non_snake_case)] mod gen_SerialOutputSignals; #[cfg(feature = "SerialOutputSignals")] #[allow(unused_imports)] pub use gen_SerialOutputSignals::*; #[cfg(feature = "SerialPort")] #[allow(non_snake_case)] mod gen_SerialPort; #[cfg(feature = "SerialPort")] #[allow(unused_imports)] pub use gen_SerialPort::*; #[cfg(feature = "SerialPortFilter")] #[allow(non_snake_case)] mod gen_SerialPortFilter; #[cfg(feature = "SerialPortFilter")] #[allow(unused_imports)] pub use gen_SerialPortFilter::*; #[cfg(feature = "SerialPortInfo")] #[allow(non_snake_case)] mod gen_SerialPortInfo; #[cfg(feature = "SerialPortInfo")] #[allow(unused_imports)] pub use gen_SerialPortInfo::*; #[cfg(feature = "SerialPortRequestOptions")] #[allow(non_snake_case)] mod gen_SerialPortRequestOptions; #[cfg(feature = "SerialPortRequestOptions")] #[allow(unused_imports)] pub use gen_SerialPortRequestOptions::*; #[cfg(feature = "ServerSocketOptions")] #[allow(non_snake_case)] mod gen_ServerSocketOptions; #[cfg(feature = "ServerSocketOptions")] #[allow(unused_imports)] pub use gen_ServerSocketOptions::*; #[cfg(feature = "ServiceWorker")] #[allow(non_snake_case)] mod gen_ServiceWorker; #[cfg(feature = "ServiceWorker")] #[allow(unused_imports)] pub use gen_ServiceWorker::*; #[cfg(feature = "ServiceWorkerContainer")] #[allow(non_snake_case)] mod gen_ServiceWorkerContainer; #[cfg(feature = "ServiceWorkerContainer")] #[allow(unused_imports)] pub use gen_ServiceWorkerContainer::*; #[cfg(feature = "ServiceWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_ServiceWorkerGlobalScope; #[cfg(feature = "ServiceWorkerGlobalScope")] #[allow(unused_imports)] pub use gen_ServiceWorkerGlobalScope::*; #[cfg(feature = "ServiceWorkerRegistration")] #[allow(non_snake_case)] mod gen_ServiceWorkerRegistration; #[cfg(feature = "ServiceWorkerRegistration")] #[allow(unused_imports)] pub use gen_ServiceWorkerRegistration::*; #[cfg(feature = "ServiceWorkerState")] #[allow(non_snake_case)] mod gen_ServiceWorkerState; #[cfg(feature = "ServiceWorkerState")] #[allow(unused_imports)] pub use gen_ServiceWorkerState::*; #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[allow(non_snake_case)] mod gen_ServiceWorkerUpdateViaCache; #[cfg(feature = "ServiceWorkerUpdateViaCache")] #[allow(unused_imports)] pub use gen_ServiceWorkerUpdateViaCache::*; #[cfg(feature = "ShadowRoot")] #[allow(non_snake_case)] mod gen_ShadowRoot; #[cfg(feature = "ShadowRoot")] #[allow(unused_imports)] pub use gen_ShadowRoot::*; #[cfg(feature = "ShadowRootInit")] #[allow(non_snake_case)] mod gen_ShadowRootInit; #[cfg(feature = "ShadowRootInit")] #[allow(unused_imports)] pub use gen_ShadowRootInit::*; #[cfg(feature = "ShadowRootMode")] #[allow(non_snake_case)] mod gen_ShadowRootMode; #[cfg(feature = "ShadowRootMode")] #[allow(unused_imports)] pub use gen_ShadowRootMode::*; #[cfg(feature = "ShareData")] #[allow(non_snake_case)] mod gen_ShareData; #[cfg(feature = "ShareData")] #[allow(unused_imports)] pub use gen_ShareData::*; #[cfg(feature = "SharedWorker")] #[allow(non_snake_case)] mod gen_SharedWorker; #[cfg(feature = "SharedWorker")] #[allow(unused_imports)] pub use gen_SharedWorker::*; #[cfg(feature = "SharedWorkerGlobalScope")] #[allow(non_snake_case)] mod gen_SharedWorkerGlobalScope; #[cfg(feature = "SharedWorkerGlobalScope")] #[allow(unused_imports)] pub use gen_SharedWorkerGlobalScope::*; #[cfg(feature = "SignResponse")] #[allow(non_snake_case)] mod gen_SignResponse; #[cfg(feature = "SignResponse")] #[allow(unused_imports)] pub use gen_SignResponse::*; #[cfg(feature = "SocketElement")] #[allow(non_snake_case)] mod gen_SocketElement; #[cfg(feature = "SocketElement")] #[allow(unused_imports)] pub use gen_SocketElement::*; #[cfg(feature = "SocketOptions")] #[allow(non_snake_case)] mod gen_SocketOptions; #[cfg(feature = "SocketOptions")] #[allow(unused_imports)] pub use gen_SocketOptions::*; #[cfg(feature = "SocketReadyState")] #[allow(non_snake_case)] mod gen_SocketReadyState; #[cfg(feature = "SocketReadyState")] #[allow(unused_imports)] pub use gen_SocketReadyState::*; #[cfg(feature = "SocketsDict")] #[allow(non_snake_case)] mod gen_SocketsDict; #[cfg(feature = "SocketsDict")] #[allow(unused_imports)] pub use gen_SocketsDict::*; #[cfg(feature = "SourceBuffer")] #[allow(non_snake_case)] mod gen_SourceBuffer; #[cfg(feature = "SourceBuffer")] #[allow(unused_imports)] pub use gen_SourceBuffer::*; #[cfg(feature = "SourceBufferAppendMode")] #[allow(non_snake_case)] mod gen_SourceBufferAppendMode; #[cfg(feature = "SourceBufferAppendMode")] #[allow(unused_imports)] pub use gen_SourceBufferAppendMode::*; #[cfg(feature = "SourceBufferList")] #[allow(non_snake_case)] mod gen_SourceBufferList; #[cfg(feature = "SourceBufferList")] #[allow(unused_imports)] pub use gen_SourceBufferList::*; #[cfg(feature = "SpeechGrammar")] #[allow(non_snake_case)] mod gen_SpeechGrammar; #[cfg(feature = "SpeechGrammar")] #[allow(unused_imports)] pub use gen_SpeechGrammar::*; #[cfg(feature = "SpeechGrammarList")] #[allow(non_snake_case)] mod gen_SpeechGrammarList; #[cfg(feature = "SpeechGrammarList")] #[allow(unused_imports)] pub use gen_SpeechGrammarList::*; #[cfg(feature = "SpeechRecognition")] #[allow(non_snake_case)] mod gen_SpeechRecognition; #[cfg(feature = "SpeechRecognition")] #[allow(unused_imports)] pub use gen_SpeechRecognition::*; #[cfg(feature = "SpeechRecognitionAlternative")] #[allow(non_snake_case)] mod gen_SpeechRecognitionAlternative; #[cfg(feature = "SpeechRecognitionAlternative")] #[allow(unused_imports)] pub use gen_SpeechRecognitionAlternative::*; #[cfg(feature = "SpeechRecognitionError")] #[allow(non_snake_case)] mod gen_SpeechRecognitionError; #[cfg(feature = "SpeechRecognitionError")] #[allow(unused_imports)] pub use gen_SpeechRecognitionError::*; #[cfg(feature = "SpeechRecognitionErrorCode")] #[allow(non_snake_case)] mod gen_SpeechRecognitionErrorCode; #[cfg(feature = "SpeechRecognitionErrorCode")] #[allow(unused_imports)] pub use gen_SpeechRecognitionErrorCode::*; #[cfg(feature = "SpeechRecognitionErrorInit")] #[allow(non_snake_case)] mod gen_SpeechRecognitionErrorInit; #[cfg(feature = "SpeechRecognitionErrorInit")] #[allow(unused_imports)] pub use gen_SpeechRecognitionErrorInit::*; #[cfg(feature = "SpeechRecognitionEvent")] #[allow(non_snake_case)] mod gen_SpeechRecognitionEvent; #[cfg(feature = "SpeechRecognitionEvent")] #[allow(unused_imports)] pub use gen_SpeechRecognitionEvent::*; #[cfg(feature = "SpeechRecognitionEventInit")] #[allow(non_snake_case)] mod gen_SpeechRecognitionEventInit; #[cfg(feature = "SpeechRecognitionEventInit")] #[allow(unused_imports)] pub use gen_SpeechRecognitionEventInit::*; #[cfg(feature = "SpeechRecognitionResult")] #[allow(non_snake_case)] mod gen_SpeechRecognitionResult; #[cfg(feature = "SpeechRecognitionResult")] #[allow(unused_imports)] pub use gen_SpeechRecognitionResult::*; #[cfg(feature = "SpeechRecognitionResultList")] #[allow(non_snake_case)] mod gen_SpeechRecognitionResultList; #[cfg(feature = "SpeechRecognitionResultList")] #[allow(unused_imports)] pub use gen_SpeechRecognitionResultList::*; #[cfg(feature = "SpeechSynthesis")] #[allow(non_snake_case)] mod gen_SpeechSynthesis; #[cfg(feature = "SpeechSynthesis")] #[allow(unused_imports)] pub use gen_SpeechSynthesis::*; #[cfg(feature = "SpeechSynthesisErrorCode")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorCode; #[cfg(feature = "SpeechSynthesisErrorCode")] #[allow(unused_imports)] pub use gen_SpeechSynthesisErrorCode::*; #[cfg(feature = "SpeechSynthesisErrorEvent")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorEvent; #[cfg(feature = "SpeechSynthesisErrorEvent")] #[allow(unused_imports)] pub use gen_SpeechSynthesisErrorEvent::*; #[cfg(feature = "SpeechSynthesisErrorEventInit")] #[allow(non_snake_case)] mod gen_SpeechSynthesisErrorEventInit; #[cfg(feature = "SpeechSynthesisErrorEventInit")] #[allow(unused_imports)] pub use gen_SpeechSynthesisErrorEventInit::*; #[cfg(feature = "SpeechSynthesisEvent")] #[allow(non_snake_case)] mod gen_SpeechSynthesisEvent; #[cfg(feature = "SpeechSynthesisEvent")] #[allow(unused_imports)] pub use gen_SpeechSynthesisEvent::*; #[cfg(feature = "SpeechSynthesisEventInit")] #[allow(non_snake_case)] mod gen_SpeechSynthesisEventInit; #[cfg(feature = "SpeechSynthesisEventInit")] #[allow(unused_imports)] pub use gen_SpeechSynthesisEventInit::*; #[cfg(feature = "SpeechSynthesisUtterance")] #[allow(non_snake_case)] mod gen_SpeechSynthesisUtterance; #[cfg(feature = "SpeechSynthesisUtterance")] #[allow(unused_imports)] pub use gen_SpeechSynthesisUtterance::*; #[cfg(feature = "SpeechSynthesisVoice")] #[allow(non_snake_case)] mod gen_SpeechSynthesisVoice; #[cfg(feature = "SpeechSynthesisVoice")] #[allow(unused_imports)] pub use gen_SpeechSynthesisVoice::*; #[cfg(feature = "StereoPannerNode")] #[allow(non_snake_case)] mod gen_StereoPannerNode; #[cfg(feature = "StereoPannerNode")] #[allow(unused_imports)] pub use gen_StereoPannerNode::*; #[cfg(feature = "StereoPannerOptions")] #[allow(non_snake_case)] mod gen_StereoPannerOptions; #[cfg(feature = "StereoPannerOptions")] #[allow(unused_imports)] pub use gen_StereoPannerOptions::*; #[cfg(feature = "Storage")] #[allow(non_snake_case)] mod gen_Storage; #[cfg(feature = "Storage")] #[allow(unused_imports)] pub use gen_Storage::*; #[cfg(feature = "StorageEstimate")] #[allow(non_snake_case)] mod gen_StorageEstimate; #[cfg(feature = "StorageEstimate")] #[allow(unused_imports)] pub use gen_StorageEstimate::*; #[cfg(feature = "StorageEvent")] #[allow(non_snake_case)] mod gen_StorageEvent; #[cfg(feature = "StorageEvent")] #[allow(unused_imports)] pub use gen_StorageEvent::*; #[cfg(feature = "StorageEventInit")] #[allow(non_snake_case)] mod gen_StorageEventInit; #[cfg(feature = "StorageEventInit")] #[allow(unused_imports)] pub use gen_StorageEventInit::*; #[cfg(feature = "StorageManager")] #[allow(non_snake_case)] mod gen_StorageManager; #[cfg(feature = "StorageManager")] #[allow(unused_imports)] pub use gen_StorageManager::*; #[cfg(feature = "StorageType")] #[allow(non_snake_case)] mod gen_StorageType; #[cfg(feature = "StorageType")] #[allow(unused_imports)] pub use gen_StorageType::*; #[cfg(feature = "StreamPipeOptions")] #[allow(non_snake_case)] mod gen_StreamPipeOptions; #[cfg(feature = "StreamPipeOptions")] #[allow(unused_imports)] pub use gen_StreamPipeOptions::*; #[cfg(feature = "StyleRuleChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleRuleChangeEventInit; #[cfg(feature = "StyleRuleChangeEventInit")] #[allow(unused_imports)] pub use gen_StyleRuleChangeEventInit::*; #[cfg(feature = "StyleSheet")] #[allow(non_snake_case)] mod gen_StyleSheet; #[cfg(feature = "StyleSheet")] #[allow(unused_imports)] pub use gen_StyleSheet::*; #[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleSheetApplicableStateChangeEventInit; #[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] #[allow(unused_imports)] pub use gen_StyleSheetApplicableStateChangeEventInit::*; #[cfg(feature = "StyleSheetChangeEventInit")] #[allow(non_snake_case)] mod gen_StyleSheetChangeEventInit; #[cfg(feature = "StyleSheetChangeEventInit")] #[allow(unused_imports)] pub use gen_StyleSheetChangeEventInit::*; #[cfg(feature = "StyleSheetList")] #[allow(non_snake_case)] mod gen_StyleSheetList; #[cfg(feature = "StyleSheetList")] #[allow(unused_imports)] pub use gen_StyleSheetList::*; #[cfg(feature = "SubmitEvent")] #[allow(non_snake_case)] mod gen_SubmitEvent; #[cfg(feature = "SubmitEvent")] #[allow(unused_imports)] pub use gen_SubmitEvent::*; #[cfg(feature = "SubmitEventInit")] #[allow(non_snake_case)] mod gen_SubmitEventInit; #[cfg(feature = "SubmitEventInit")] #[allow(unused_imports)] pub use gen_SubmitEventInit::*; #[cfg(feature = "SubtleCrypto")] #[allow(non_snake_case)] mod gen_SubtleCrypto; #[cfg(feature = "SubtleCrypto")] #[allow(unused_imports)] pub use gen_SubtleCrypto::*; #[cfg(feature = "SupportedType")] #[allow(non_snake_case)] mod gen_SupportedType; #[cfg(feature = "SupportedType")] #[allow(unused_imports)] pub use gen_SupportedType::*; #[cfg(feature = "SvcOutputMetadata")] #[allow(non_snake_case)] mod gen_SvcOutputMetadata; #[cfg(feature = "SvcOutputMetadata")] #[allow(unused_imports)] pub use gen_SvcOutputMetadata::*; #[cfg(feature = "SvgAngle")] #[allow(non_snake_case)] mod gen_SvgAngle; #[cfg(feature = "SvgAngle")] #[allow(unused_imports)] pub use gen_SvgAngle::*; #[cfg(feature = "SvgAnimateElement")] #[allow(non_snake_case)] mod gen_SvgAnimateElement; #[cfg(feature = "SvgAnimateElement")] #[allow(unused_imports)] pub use gen_SvgAnimateElement::*; #[cfg(feature = "SvgAnimateMotionElement")] #[allow(non_snake_case)] mod gen_SvgAnimateMotionElement; #[cfg(feature = "SvgAnimateMotionElement")] #[allow(unused_imports)] pub use gen_SvgAnimateMotionElement::*; #[cfg(feature = "SvgAnimateTransformElement")] #[allow(non_snake_case)] mod gen_SvgAnimateTransformElement; #[cfg(feature = "SvgAnimateTransformElement")] #[allow(unused_imports)] pub use gen_SvgAnimateTransformElement::*; #[cfg(feature = "SvgAnimatedAngle")] #[allow(non_snake_case)] mod gen_SvgAnimatedAngle; #[cfg(feature = "SvgAnimatedAngle")] #[allow(unused_imports)] pub use gen_SvgAnimatedAngle::*; #[cfg(feature = "SvgAnimatedBoolean")] #[allow(non_snake_case)] mod gen_SvgAnimatedBoolean; #[cfg(feature = "SvgAnimatedBoolean")] #[allow(unused_imports)] pub use gen_SvgAnimatedBoolean::*; #[cfg(feature = "SvgAnimatedEnumeration")] #[allow(non_snake_case)] mod gen_SvgAnimatedEnumeration; #[cfg(feature = "SvgAnimatedEnumeration")] #[allow(unused_imports)] pub use gen_SvgAnimatedEnumeration::*; #[cfg(feature = "SvgAnimatedInteger")] #[allow(non_snake_case)] mod gen_SvgAnimatedInteger; #[cfg(feature = "SvgAnimatedInteger")] #[allow(unused_imports)] pub use gen_SvgAnimatedInteger::*; #[cfg(feature = "SvgAnimatedLength")] #[allow(non_snake_case)] mod gen_SvgAnimatedLength; #[cfg(feature = "SvgAnimatedLength")] #[allow(unused_imports)] pub use gen_SvgAnimatedLength::*; #[cfg(feature = "SvgAnimatedLengthList")] #[allow(non_snake_case)] mod gen_SvgAnimatedLengthList; #[cfg(feature = "SvgAnimatedLengthList")] #[allow(unused_imports)] pub use gen_SvgAnimatedLengthList::*; #[cfg(feature = "SvgAnimatedNumber")] #[allow(non_snake_case)] mod gen_SvgAnimatedNumber; #[cfg(feature = "SvgAnimatedNumber")] #[allow(unused_imports)] pub use gen_SvgAnimatedNumber::*; #[cfg(feature = "SvgAnimatedNumberList")] #[allow(non_snake_case)] mod gen_SvgAnimatedNumberList; #[cfg(feature = "SvgAnimatedNumberList")] #[allow(unused_imports)] pub use gen_SvgAnimatedNumberList::*; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] #[allow(non_snake_case)] mod gen_SvgAnimatedPreserveAspectRatio; #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] #[allow(unused_imports)] pub use gen_SvgAnimatedPreserveAspectRatio::*; #[cfg(feature = "SvgAnimatedRect")] #[allow(non_snake_case)] mod gen_SvgAnimatedRect; #[cfg(feature = "SvgAnimatedRect")] #[allow(unused_imports)] pub use gen_SvgAnimatedRect::*; #[cfg(feature = "SvgAnimatedString")] #[allow(non_snake_case)] mod gen_SvgAnimatedString; #[cfg(feature = "SvgAnimatedString")] #[allow(unused_imports)] pub use gen_SvgAnimatedString::*; #[cfg(feature = "SvgAnimatedTransformList")] #[allow(non_snake_case)] mod gen_SvgAnimatedTransformList; #[cfg(feature = "SvgAnimatedTransformList")] #[allow(unused_imports)] pub use gen_SvgAnimatedTransformList::*; #[cfg(feature = "SvgAnimationElement")] #[allow(non_snake_case)] mod gen_SvgAnimationElement; #[cfg(feature = "SvgAnimationElement")] #[allow(unused_imports)] pub use gen_SvgAnimationElement::*; #[cfg(feature = "SvgBoundingBoxOptions")] #[allow(non_snake_case)] mod gen_SvgBoundingBoxOptions; #[cfg(feature = "SvgBoundingBoxOptions")] #[allow(unused_imports)] pub use gen_SvgBoundingBoxOptions::*; #[cfg(feature = "SvgCircleElement")] #[allow(non_snake_case)] mod gen_SvgCircleElement; #[cfg(feature = "SvgCircleElement")] #[allow(unused_imports)] pub use gen_SvgCircleElement::*; #[cfg(feature = "SvgClipPathElement")] #[allow(non_snake_case)] mod gen_SvgClipPathElement; #[cfg(feature = "SvgClipPathElement")] #[allow(unused_imports)] pub use gen_SvgClipPathElement::*; #[cfg(feature = "SvgComponentTransferFunctionElement")] #[allow(non_snake_case)] mod gen_SvgComponentTransferFunctionElement; #[cfg(feature = "SvgComponentTransferFunctionElement")] #[allow(unused_imports)] pub use gen_SvgComponentTransferFunctionElement::*; #[cfg(feature = "SvgDefsElement")] #[allow(non_snake_case)] mod gen_SvgDefsElement; #[cfg(feature = "SvgDefsElement")] #[allow(unused_imports)] pub use gen_SvgDefsElement::*; #[cfg(feature = "SvgDescElement")] #[allow(non_snake_case)] mod gen_SvgDescElement; #[cfg(feature = "SvgDescElement")] #[allow(unused_imports)] pub use gen_SvgDescElement::*; #[cfg(feature = "SvgElement")] #[allow(non_snake_case)] mod gen_SvgElement; #[cfg(feature = "SvgElement")] #[allow(unused_imports)] pub use gen_SvgElement::*; #[cfg(feature = "SvgEllipseElement")] #[allow(non_snake_case)] mod gen_SvgEllipseElement; #[cfg(feature = "SvgEllipseElement")] #[allow(unused_imports)] pub use gen_SvgEllipseElement::*; #[cfg(feature = "SvgFilterElement")] #[allow(non_snake_case)] mod gen_SvgFilterElement; #[cfg(feature = "SvgFilterElement")] #[allow(unused_imports)] pub use gen_SvgFilterElement::*; #[cfg(feature = "SvgForeignObjectElement")] #[allow(non_snake_case)] mod gen_SvgForeignObjectElement; #[cfg(feature = "SvgForeignObjectElement")] #[allow(unused_imports)] pub use gen_SvgForeignObjectElement::*; #[cfg(feature = "SvgGeometryElement")] #[allow(non_snake_case)] mod gen_SvgGeometryElement; #[cfg(feature = "SvgGeometryElement")] #[allow(unused_imports)] pub use gen_SvgGeometryElement::*; #[cfg(feature = "SvgGradientElement")] #[allow(non_snake_case)] mod gen_SvgGradientElement; #[cfg(feature = "SvgGradientElement")] #[allow(unused_imports)] pub use gen_SvgGradientElement::*; #[cfg(feature = "SvgGraphicsElement")] #[allow(non_snake_case)] mod gen_SvgGraphicsElement; #[cfg(feature = "SvgGraphicsElement")] #[allow(unused_imports)] pub use gen_SvgGraphicsElement::*; #[cfg(feature = "SvgImageElement")] #[allow(non_snake_case)] mod gen_SvgImageElement; #[cfg(feature = "SvgImageElement")] #[allow(unused_imports)] pub use gen_SvgImageElement::*; #[cfg(feature = "SvgLength")] #[allow(non_snake_case)] mod gen_SvgLength; #[cfg(feature = "SvgLength")] #[allow(unused_imports)] pub use gen_SvgLength::*; #[cfg(feature = "SvgLengthList")] #[allow(non_snake_case)] mod gen_SvgLengthList; #[cfg(feature = "SvgLengthList")] #[allow(unused_imports)] pub use gen_SvgLengthList::*; #[cfg(feature = "SvgLineElement")] #[allow(non_snake_case)] mod gen_SvgLineElement; #[cfg(feature = "SvgLineElement")] #[allow(unused_imports)] pub use gen_SvgLineElement::*; #[cfg(feature = "SvgLinearGradientElement")] #[allow(non_snake_case)] mod gen_SvgLinearGradientElement; #[cfg(feature = "SvgLinearGradientElement")] #[allow(unused_imports)] pub use gen_SvgLinearGradientElement::*; #[cfg(feature = "SvgMarkerElement")] #[allow(non_snake_case)] mod gen_SvgMarkerElement; #[cfg(feature = "SvgMarkerElement")] #[allow(unused_imports)] pub use gen_SvgMarkerElement::*; #[cfg(feature = "SvgMaskElement")] #[allow(non_snake_case)] mod gen_SvgMaskElement; #[cfg(feature = "SvgMaskElement")] #[allow(unused_imports)] pub use gen_SvgMaskElement::*; #[cfg(feature = "SvgMatrix")] #[allow(non_snake_case)] mod gen_SvgMatrix; #[cfg(feature = "SvgMatrix")] #[allow(unused_imports)] pub use gen_SvgMatrix::*; #[cfg(feature = "SvgMetadataElement")] #[allow(non_snake_case)] mod gen_SvgMetadataElement; #[cfg(feature = "SvgMetadataElement")] #[allow(unused_imports)] pub use gen_SvgMetadataElement::*; #[cfg(feature = "SvgNumber")] #[allow(non_snake_case)] mod gen_SvgNumber; #[cfg(feature = "SvgNumber")] #[allow(unused_imports)] pub use gen_SvgNumber::*; #[cfg(feature = "SvgNumberList")] #[allow(non_snake_case)] mod gen_SvgNumberList; #[cfg(feature = "SvgNumberList")] #[allow(unused_imports)] pub use gen_SvgNumberList::*; #[cfg(feature = "SvgPathElement")] #[allow(non_snake_case)] mod gen_SvgPathElement; #[cfg(feature = "SvgPathElement")] #[allow(unused_imports)] pub use gen_SvgPathElement::*; #[cfg(feature = "SvgPathSeg")] #[allow(non_snake_case)] mod gen_SvgPathSeg; #[cfg(feature = "SvgPathSeg")] #[allow(unused_imports)] pub use gen_SvgPathSeg::*; #[cfg(feature = "SvgPathSegArcAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegArcAbs; #[cfg(feature = "SvgPathSegArcAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegArcAbs::*; #[cfg(feature = "SvgPathSegArcRel")] #[allow(non_snake_case)] mod gen_SvgPathSegArcRel; #[cfg(feature = "SvgPathSegArcRel")] #[allow(unused_imports)] pub use gen_SvgPathSegArcRel::*; #[cfg(feature = "SvgPathSegClosePath")] #[allow(non_snake_case)] mod gen_SvgPathSegClosePath; #[cfg(feature = "SvgPathSegClosePath")] #[allow(unused_imports)] pub use gen_SvgPathSegClosePath::*; #[cfg(feature = "SvgPathSegCurvetoCubicAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicAbs; #[cfg(feature = "SvgPathSegCurvetoCubicAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoCubicAbs::*; #[cfg(feature = "SvgPathSegCurvetoCubicRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicRel; #[cfg(feature = "SvgPathSegCurvetoCubicRel")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoCubicRel::*; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicSmoothAbs; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoCubicSmoothAbs::*; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoCubicSmoothRel; #[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoCubicSmoothRel::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticAbs; #[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoQuadraticAbs::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticRel; #[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoQuadraticRel::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticSmoothAbs; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoQuadraticSmoothAbs::*; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] #[allow(non_snake_case)] mod gen_SvgPathSegCurvetoQuadraticSmoothRel; #[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] #[allow(unused_imports)] pub use gen_SvgPathSegCurvetoQuadraticSmoothRel::*; #[cfg(feature = "SvgPathSegLinetoAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoAbs; #[cfg(feature = "SvgPathSegLinetoAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoAbs::*; #[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoHorizontalAbs; #[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoHorizontalAbs::*; #[cfg(feature = "SvgPathSegLinetoHorizontalRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoHorizontalRel; #[cfg(feature = "SvgPathSegLinetoHorizontalRel")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoHorizontalRel::*; #[cfg(feature = "SvgPathSegLinetoRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoRel; #[cfg(feature = "SvgPathSegLinetoRel")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoRel::*; #[cfg(feature = "SvgPathSegLinetoVerticalAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoVerticalAbs; #[cfg(feature = "SvgPathSegLinetoVerticalAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoVerticalAbs::*; #[cfg(feature = "SvgPathSegLinetoVerticalRel")] #[allow(non_snake_case)] mod gen_SvgPathSegLinetoVerticalRel; #[cfg(feature = "SvgPathSegLinetoVerticalRel")] #[allow(unused_imports)] pub use gen_SvgPathSegLinetoVerticalRel::*; #[cfg(feature = "SvgPathSegList")] #[allow(non_snake_case)] mod gen_SvgPathSegList; #[cfg(feature = "SvgPathSegList")] #[allow(unused_imports)] pub use gen_SvgPathSegList::*; #[cfg(feature = "SvgPathSegMovetoAbs")] #[allow(non_snake_case)] mod gen_SvgPathSegMovetoAbs; #[cfg(feature = "SvgPathSegMovetoAbs")] #[allow(unused_imports)] pub use gen_SvgPathSegMovetoAbs::*; #[cfg(feature = "SvgPathSegMovetoRel")] #[allow(non_snake_case)] mod gen_SvgPathSegMovetoRel; #[cfg(feature = "SvgPathSegMovetoRel")] #[allow(unused_imports)] pub use gen_SvgPathSegMovetoRel::*; #[cfg(feature = "SvgPatternElement")] #[allow(non_snake_case)] mod gen_SvgPatternElement; #[cfg(feature = "SvgPatternElement")] #[allow(unused_imports)] pub use gen_SvgPatternElement::*; #[cfg(feature = "SvgPoint")] #[allow(non_snake_case)] mod gen_SvgPoint; #[cfg(feature = "SvgPoint")] #[allow(unused_imports)] pub use gen_SvgPoint::*; #[cfg(feature = "SvgPointList")] #[allow(non_snake_case)] mod gen_SvgPointList; #[cfg(feature = "SvgPointList")] #[allow(unused_imports)] pub use gen_SvgPointList::*; #[cfg(feature = "SvgPolygonElement")] #[allow(non_snake_case)] mod gen_SvgPolygonElement; #[cfg(feature = "SvgPolygonElement")] #[allow(unused_imports)] pub use gen_SvgPolygonElement::*; #[cfg(feature = "SvgPolylineElement")] #[allow(non_snake_case)] mod gen_SvgPolylineElement; #[cfg(feature = "SvgPolylineElement")] #[allow(unused_imports)] pub use gen_SvgPolylineElement::*; #[cfg(feature = "SvgPreserveAspectRatio")] #[allow(non_snake_case)] mod gen_SvgPreserveAspectRatio; #[cfg(feature = "SvgPreserveAspectRatio")] #[allow(unused_imports)] pub use gen_SvgPreserveAspectRatio::*; #[cfg(feature = "SvgRadialGradientElement")] #[allow(non_snake_case)] mod gen_SvgRadialGradientElement; #[cfg(feature = "SvgRadialGradientElement")] #[allow(unused_imports)] pub use gen_SvgRadialGradientElement::*; #[cfg(feature = "SvgRect")] #[allow(non_snake_case)] mod gen_SvgRect; #[cfg(feature = "SvgRect")] #[allow(unused_imports)] pub use gen_SvgRect::*; #[cfg(feature = "SvgRectElement")] #[allow(non_snake_case)] mod gen_SvgRectElement; #[cfg(feature = "SvgRectElement")] #[allow(unused_imports)] pub use gen_SvgRectElement::*; #[cfg(feature = "SvgScriptElement")] #[allow(non_snake_case)] mod gen_SvgScriptElement; #[cfg(feature = "SvgScriptElement")] #[allow(unused_imports)] pub use gen_SvgScriptElement::*; #[cfg(feature = "SvgSetElement")] #[allow(non_snake_case)] mod gen_SvgSetElement; #[cfg(feature = "SvgSetElement")] #[allow(unused_imports)] pub use gen_SvgSetElement::*; #[cfg(feature = "SvgStopElement")] #[allow(non_snake_case)] mod gen_SvgStopElement; #[cfg(feature = "SvgStopElement")] #[allow(unused_imports)] pub use gen_SvgStopElement::*; #[cfg(feature = "SvgStringList")] #[allow(non_snake_case)] mod gen_SvgStringList; #[cfg(feature = "SvgStringList")] #[allow(unused_imports)] pub use gen_SvgStringList::*; #[cfg(feature = "SvgStyleElement")] #[allow(non_snake_case)] mod gen_SvgStyleElement; #[cfg(feature = "SvgStyleElement")] #[allow(unused_imports)] pub use gen_SvgStyleElement::*; #[cfg(feature = "SvgSwitchElement")] #[allow(non_snake_case)] mod gen_SvgSwitchElement; #[cfg(feature = "SvgSwitchElement")] #[allow(unused_imports)] pub use gen_SvgSwitchElement::*; #[cfg(feature = "SvgSymbolElement")] #[allow(non_snake_case)] mod gen_SvgSymbolElement; #[cfg(feature = "SvgSymbolElement")] #[allow(unused_imports)] pub use gen_SvgSymbolElement::*; #[cfg(feature = "SvgTextContentElement")] #[allow(non_snake_case)] mod gen_SvgTextContentElement; #[cfg(feature = "SvgTextContentElement")] #[allow(unused_imports)] pub use gen_SvgTextContentElement::*; #[cfg(feature = "SvgTextElement")] #[allow(non_snake_case)] mod gen_SvgTextElement; #[cfg(feature = "SvgTextElement")] #[allow(unused_imports)] pub use gen_SvgTextElement::*; #[cfg(feature = "SvgTextPathElement")] #[allow(non_snake_case)] mod gen_SvgTextPathElement; #[cfg(feature = "SvgTextPathElement")] #[allow(unused_imports)] pub use gen_SvgTextPathElement::*; #[cfg(feature = "SvgTextPositioningElement")] #[allow(non_snake_case)] mod gen_SvgTextPositioningElement; #[cfg(feature = "SvgTextPositioningElement")] #[allow(unused_imports)] pub use gen_SvgTextPositioningElement::*; #[cfg(feature = "SvgTitleElement")] #[allow(non_snake_case)] mod gen_SvgTitleElement; #[cfg(feature = "SvgTitleElement")] #[allow(unused_imports)] pub use gen_SvgTitleElement::*; #[cfg(feature = "SvgTransform")] #[allow(non_snake_case)] mod gen_SvgTransform; #[cfg(feature = "SvgTransform")] #[allow(unused_imports)] pub use gen_SvgTransform::*; #[cfg(feature = "SvgTransformList")] #[allow(non_snake_case)] mod gen_SvgTransformList; #[cfg(feature = "SvgTransformList")] #[allow(unused_imports)] pub use gen_SvgTransformList::*; #[cfg(feature = "SvgUnitTypes")] #[allow(non_snake_case)] mod gen_SvgUnitTypes; #[cfg(feature = "SvgUnitTypes")] #[allow(unused_imports)] pub use gen_SvgUnitTypes::*; #[cfg(feature = "SvgUseElement")] #[allow(non_snake_case)] mod gen_SvgUseElement; #[cfg(feature = "SvgUseElement")] #[allow(unused_imports)] pub use gen_SvgUseElement::*; #[cfg(feature = "SvgViewElement")] #[allow(non_snake_case)] mod gen_SvgViewElement; #[cfg(feature = "SvgViewElement")] #[allow(unused_imports)] pub use gen_SvgViewElement::*; #[cfg(feature = "SvgZoomAndPan")] #[allow(non_snake_case)] mod gen_SvgZoomAndPan; #[cfg(feature = "SvgZoomAndPan")] #[allow(unused_imports)] pub use gen_SvgZoomAndPan::*; #[cfg(feature = "SvgaElement")] #[allow(non_snake_case)] mod gen_SvgaElement; #[cfg(feature = "SvgaElement")] #[allow(unused_imports)] pub use gen_SvgaElement::*; #[cfg(feature = "SvgfeBlendElement")] #[allow(non_snake_case)] mod gen_SvgfeBlendElement; #[cfg(feature = "SvgfeBlendElement")] #[allow(unused_imports)] pub use gen_SvgfeBlendElement::*; #[cfg(feature = "SvgfeColorMatrixElement")] #[allow(non_snake_case)] mod gen_SvgfeColorMatrixElement; #[cfg(feature = "SvgfeColorMatrixElement")] #[allow(unused_imports)] pub use gen_SvgfeColorMatrixElement::*; #[cfg(feature = "SvgfeComponentTransferElement")] #[allow(non_snake_case)] mod gen_SvgfeComponentTransferElement; #[cfg(feature = "SvgfeComponentTransferElement")] #[allow(unused_imports)] pub use gen_SvgfeComponentTransferElement::*; #[cfg(feature = "SvgfeCompositeElement")] #[allow(non_snake_case)] mod gen_SvgfeCompositeElement; #[cfg(feature = "SvgfeCompositeElement")] #[allow(unused_imports)] pub use gen_SvgfeCompositeElement::*; #[cfg(feature = "SvgfeConvolveMatrixElement")] #[allow(non_snake_case)] mod gen_SvgfeConvolveMatrixElement; #[cfg(feature = "SvgfeConvolveMatrixElement")] #[allow(unused_imports)] pub use gen_SvgfeConvolveMatrixElement::*; #[cfg(feature = "SvgfeDiffuseLightingElement")] #[allow(non_snake_case)] mod gen_SvgfeDiffuseLightingElement; #[cfg(feature = "SvgfeDiffuseLightingElement")] #[allow(unused_imports)] pub use gen_SvgfeDiffuseLightingElement::*; #[cfg(feature = "SvgfeDisplacementMapElement")] #[allow(non_snake_case)] mod gen_SvgfeDisplacementMapElement; #[cfg(feature = "SvgfeDisplacementMapElement")] #[allow(unused_imports)] pub use gen_SvgfeDisplacementMapElement::*; #[cfg(feature = "SvgfeDistantLightElement")] #[allow(non_snake_case)] mod gen_SvgfeDistantLightElement; #[cfg(feature = "SvgfeDistantLightElement")] #[allow(unused_imports)] pub use gen_SvgfeDistantLightElement::*; #[cfg(feature = "SvgfeDropShadowElement")] #[allow(non_snake_case)] mod gen_SvgfeDropShadowElement; #[cfg(feature = "SvgfeDropShadowElement")] #[allow(unused_imports)] pub use gen_SvgfeDropShadowElement::*; #[cfg(feature = "SvgfeFloodElement")] #[allow(non_snake_case)] mod gen_SvgfeFloodElement; #[cfg(feature = "SvgfeFloodElement")] #[allow(unused_imports)] pub use gen_SvgfeFloodElement::*; #[cfg(feature = "SvgfeFuncAElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncAElement; #[cfg(feature = "SvgfeFuncAElement")] #[allow(unused_imports)] pub use gen_SvgfeFuncAElement::*; #[cfg(feature = "SvgfeFuncBElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncBElement; #[cfg(feature = "SvgfeFuncBElement")] #[allow(unused_imports)] pub use gen_SvgfeFuncBElement::*; #[cfg(feature = "SvgfeFuncGElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncGElement; #[cfg(feature = "SvgfeFuncGElement")] #[allow(unused_imports)] pub use gen_SvgfeFuncGElement::*; #[cfg(feature = "SvgfeFuncRElement")] #[allow(non_snake_case)] mod gen_SvgfeFuncRElement; #[cfg(feature = "SvgfeFuncRElement")] #[allow(unused_imports)] pub use gen_SvgfeFuncRElement::*; #[cfg(feature = "SvgfeGaussianBlurElement")] #[allow(non_snake_case)] mod gen_SvgfeGaussianBlurElement; #[cfg(feature = "SvgfeGaussianBlurElement")] #[allow(unused_imports)] pub use gen_SvgfeGaussianBlurElement::*; #[cfg(feature = "SvgfeImageElement")] #[allow(non_snake_case)] mod gen_SvgfeImageElement; #[cfg(feature = "SvgfeImageElement")] #[allow(unused_imports)] pub use gen_SvgfeImageElement::*; #[cfg(feature = "SvgfeMergeElement")] #[allow(non_snake_case)] mod gen_SvgfeMergeElement; #[cfg(feature = "SvgfeMergeElement")] #[allow(unused_imports)] pub use gen_SvgfeMergeElement::*; #[cfg(feature = "SvgfeMergeNodeElement")] #[allow(non_snake_case)] mod gen_SvgfeMergeNodeElement; #[cfg(feature = "SvgfeMergeNodeElement")] #[allow(unused_imports)] pub use gen_SvgfeMergeNodeElement::*; #[cfg(feature = "SvgfeMorphologyElement")] #[allow(non_snake_case)] mod gen_SvgfeMorphologyElement; #[cfg(feature = "SvgfeMorphologyElement")] #[allow(unused_imports)] pub use gen_SvgfeMorphologyElement::*; #[cfg(feature = "SvgfeOffsetElement")] #[allow(non_snake_case)] mod gen_SvgfeOffsetElement; #[cfg(feature = "SvgfeOffsetElement")] #[allow(unused_imports)] pub use gen_SvgfeOffsetElement::*; #[cfg(feature = "SvgfePointLightElement")] #[allow(non_snake_case)] mod gen_SvgfePointLightElement; #[cfg(feature = "SvgfePointLightElement")] #[allow(unused_imports)] pub use gen_SvgfePointLightElement::*; #[cfg(feature = "SvgfeSpecularLightingElement")] #[allow(non_snake_case)] mod gen_SvgfeSpecularLightingElement; #[cfg(feature = "SvgfeSpecularLightingElement")] #[allow(unused_imports)] pub use gen_SvgfeSpecularLightingElement::*; #[cfg(feature = "SvgfeSpotLightElement")] #[allow(non_snake_case)] mod gen_SvgfeSpotLightElement; #[cfg(feature = "SvgfeSpotLightElement")] #[allow(unused_imports)] pub use gen_SvgfeSpotLightElement::*; #[cfg(feature = "SvgfeTileElement")] #[allow(non_snake_case)] mod gen_SvgfeTileElement; #[cfg(feature = "SvgfeTileElement")] #[allow(unused_imports)] pub use gen_SvgfeTileElement::*; #[cfg(feature = "SvgfeTurbulenceElement")] #[allow(non_snake_case)] mod gen_SvgfeTurbulenceElement; #[cfg(feature = "SvgfeTurbulenceElement")] #[allow(unused_imports)] pub use gen_SvgfeTurbulenceElement::*; #[cfg(feature = "SvggElement")] #[allow(non_snake_case)] mod gen_SvggElement; #[cfg(feature = "SvggElement")] #[allow(unused_imports)] pub use gen_SvggElement::*; #[cfg(feature = "SvgmPathElement")] #[allow(non_snake_case)] mod gen_SvgmPathElement; #[cfg(feature = "SvgmPathElement")] #[allow(unused_imports)] pub use gen_SvgmPathElement::*; #[cfg(feature = "SvgsvgElement")] #[allow(non_snake_case)] mod gen_SvgsvgElement; #[cfg(feature = "SvgsvgElement")] #[allow(unused_imports)] pub use gen_SvgsvgElement::*; #[cfg(feature = "SvgtSpanElement")] #[allow(non_snake_case)] mod gen_SvgtSpanElement; #[cfg(feature = "SvgtSpanElement")] #[allow(unused_imports)] pub use gen_SvgtSpanElement::*; #[cfg(feature = "TaskController")] #[allow(non_snake_case)] mod gen_TaskController; #[cfg(feature = "TaskController")] #[allow(unused_imports)] pub use gen_TaskController::*; #[cfg(feature = "TaskControllerInit")] #[allow(non_snake_case)] mod gen_TaskControllerInit; #[cfg(feature = "TaskControllerInit")] #[allow(unused_imports)] pub use gen_TaskControllerInit::*; #[cfg(feature = "TaskPriority")] #[allow(non_snake_case)] mod gen_TaskPriority; #[cfg(feature = "TaskPriority")] #[allow(unused_imports)] pub use gen_TaskPriority::*; #[cfg(feature = "TaskPriorityChangeEvent")] #[allow(non_snake_case)] mod gen_TaskPriorityChangeEvent; #[cfg(feature = "TaskPriorityChangeEvent")] #[allow(unused_imports)] pub use gen_TaskPriorityChangeEvent::*; #[cfg(feature = "TaskPriorityChangeEventInit")] #[allow(non_snake_case)] mod gen_TaskPriorityChangeEventInit; #[cfg(feature = "TaskPriorityChangeEventInit")] #[allow(unused_imports)] pub use gen_TaskPriorityChangeEventInit::*; #[cfg(feature = "TaskSignal")] #[allow(non_snake_case)] mod gen_TaskSignal; #[cfg(feature = "TaskSignal")] #[allow(unused_imports)] pub use gen_TaskSignal::*; #[cfg(feature = "TaskSignalAnyInit")] #[allow(non_snake_case)] mod gen_TaskSignalAnyInit; #[cfg(feature = "TaskSignalAnyInit")] #[allow(unused_imports)] pub use gen_TaskSignalAnyInit::*; #[cfg(feature = "TcpReadyState")] #[allow(non_snake_case)] mod gen_TcpReadyState; #[cfg(feature = "TcpReadyState")] #[allow(unused_imports)] pub use gen_TcpReadyState::*; #[cfg(feature = "TcpServerSocket")] #[allow(non_snake_case)] mod gen_TcpServerSocket; #[cfg(feature = "TcpServerSocket")] #[allow(unused_imports)] pub use gen_TcpServerSocket::*; #[cfg(feature = "TcpServerSocketEvent")] #[allow(non_snake_case)] mod gen_TcpServerSocketEvent; #[cfg(feature = "TcpServerSocketEvent")] #[allow(unused_imports)] pub use gen_TcpServerSocketEvent::*; #[cfg(feature = "TcpServerSocketEventInit")] #[allow(non_snake_case)] mod gen_TcpServerSocketEventInit; #[cfg(feature = "TcpServerSocketEventInit")] #[allow(unused_imports)] pub use gen_TcpServerSocketEventInit::*; #[cfg(feature = "TcpSocket")] #[allow(non_snake_case)] mod gen_TcpSocket; #[cfg(feature = "TcpSocket")] #[allow(unused_imports)] pub use gen_TcpSocket::*; #[cfg(feature = "TcpSocketBinaryType")] #[allow(non_snake_case)] mod gen_TcpSocketBinaryType; #[cfg(feature = "TcpSocketBinaryType")] #[allow(unused_imports)] pub use gen_TcpSocketBinaryType::*; #[cfg(feature = "TcpSocketErrorEvent")] #[allow(non_snake_case)] mod gen_TcpSocketErrorEvent; #[cfg(feature = "TcpSocketErrorEvent")] #[allow(unused_imports)] pub use gen_TcpSocketErrorEvent::*; #[cfg(feature = "TcpSocketErrorEventInit")] #[allow(non_snake_case)] mod gen_TcpSocketErrorEventInit; #[cfg(feature = "TcpSocketErrorEventInit")] #[allow(unused_imports)] pub use gen_TcpSocketErrorEventInit::*; #[cfg(feature = "TcpSocketEvent")] #[allow(non_snake_case)] mod gen_TcpSocketEvent; #[cfg(feature = "TcpSocketEvent")] #[allow(unused_imports)] pub use gen_TcpSocketEvent::*; #[cfg(feature = "TcpSocketEventInit")] #[allow(non_snake_case)] mod gen_TcpSocketEventInit; #[cfg(feature = "TcpSocketEventInit")] #[allow(unused_imports)] pub use gen_TcpSocketEventInit::*; #[cfg(feature = "Text")] #[allow(non_snake_case)] mod gen_Text; #[cfg(feature = "Text")] #[allow(unused_imports)] pub use gen_Text::*; #[cfg(feature = "TextDecodeOptions")] #[allow(non_snake_case)] mod gen_TextDecodeOptions; #[cfg(feature = "TextDecodeOptions")] #[allow(unused_imports)] pub use gen_TextDecodeOptions::*; #[cfg(feature = "TextDecoder")] #[allow(non_snake_case)] mod gen_TextDecoder; #[cfg(feature = "TextDecoder")] #[allow(unused_imports)] pub use gen_TextDecoder::*; #[cfg(feature = "TextDecoderOptions")] #[allow(non_snake_case)] mod gen_TextDecoderOptions; #[cfg(feature = "TextDecoderOptions")] #[allow(unused_imports)] pub use gen_TextDecoderOptions::*; #[cfg(feature = "TextEncoder")] #[allow(non_snake_case)] mod gen_TextEncoder; #[cfg(feature = "TextEncoder")] #[allow(unused_imports)] pub use gen_TextEncoder::*; #[cfg(feature = "TextMetrics")] #[allow(non_snake_case)] mod gen_TextMetrics; #[cfg(feature = "TextMetrics")] #[allow(unused_imports)] pub use gen_TextMetrics::*; #[cfg(feature = "TextTrack")] #[allow(non_snake_case)] mod gen_TextTrack; #[cfg(feature = "TextTrack")] #[allow(unused_imports)] pub use gen_TextTrack::*; #[cfg(feature = "TextTrackCue")] #[allow(non_snake_case)] mod gen_TextTrackCue; #[cfg(feature = "TextTrackCue")] #[allow(unused_imports)] pub use gen_TextTrackCue::*; #[cfg(feature = "TextTrackCueList")] #[allow(non_snake_case)] mod gen_TextTrackCueList; #[cfg(feature = "TextTrackCueList")] #[allow(unused_imports)] pub use gen_TextTrackCueList::*; #[cfg(feature = "TextTrackKind")] #[allow(non_snake_case)] mod gen_TextTrackKind; #[cfg(feature = "TextTrackKind")] #[allow(unused_imports)] pub use gen_TextTrackKind::*; #[cfg(feature = "TextTrackList")] #[allow(non_snake_case)] mod gen_TextTrackList; #[cfg(feature = "TextTrackList")] #[allow(unused_imports)] pub use gen_TextTrackList::*; #[cfg(feature = "TextTrackMode")] #[allow(non_snake_case)] mod gen_TextTrackMode; #[cfg(feature = "TextTrackMode")] #[allow(unused_imports)] pub use gen_TextTrackMode::*; #[cfg(feature = "TimeEvent")] #[allow(non_snake_case)] mod gen_TimeEvent; #[cfg(feature = "TimeEvent")] #[allow(unused_imports)] pub use gen_TimeEvent::*; #[cfg(feature = "TimeRanges")] #[allow(non_snake_case)] mod gen_TimeRanges; #[cfg(feature = "TimeRanges")] #[allow(unused_imports)] pub use gen_TimeRanges::*; #[cfg(feature = "ToggleEvent")] #[allow(non_snake_case)] mod gen_ToggleEvent; #[cfg(feature = "ToggleEvent")] #[allow(unused_imports)] pub use gen_ToggleEvent::*; #[cfg(feature = "ToggleEventInit")] #[allow(non_snake_case)] mod gen_ToggleEventInit; #[cfg(feature = "ToggleEventInit")] #[allow(unused_imports)] pub use gen_ToggleEventInit::*; #[cfg(feature = "TokenBinding")] #[allow(non_snake_case)] mod gen_TokenBinding; #[cfg(feature = "TokenBinding")] #[allow(unused_imports)] pub use gen_TokenBinding::*; #[cfg(feature = "TokenBindingStatus")] #[allow(non_snake_case)] mod gen_TokenBindingStatus; #[cfg(feature = "TokenBindingStatus")] #[allow(unused_imports)] pub use gen_TokenBindingStatus::*; #[cfg(feature = "Touch")] #[allow(non_snake_case)] mod gen_Touch; #[cfg(feature = "Touch")] #[allow(unused_imports)] pub use gen_Touch::*; #[cfg(feature = "TouchEvent")] #[allow(non_snake_case)] mod gen_TouchEvent; #[cfg(feature = "TouchEvent")] #[allow(unused_imports)] pub use gen_TouchEvent::*; #[cfg(feature = "TouchEventInit")] #[allow(non_snake_case)] mod gen_TouchEventInit; #[cfg(feature = "TouchEventInit")] #[allow(unused_imports)] pub use gen_TouchEventInit::*; #[cfg(feature = "TouchInit")] #[allow(non_snake_case)] mod gen_TouchInit; #[cfg(feature = "TouchInit")] #[allow(unused_imports)] pub use gen_TouchInit::*; #[cfg(feature = "TouchList")] #[allow(non_snake_case)] mod gen_TouchList; #[cfg(feature = "TouchList")] #[allow(unused_imports)] pub use gen_TouchList::*; #[cfg(feature = "TrackEvent")] #[allow(non_snake_case)] mod gen_TrackEvent; #[cfg(feature = "TrackEvent")] #[allow(unused_imports)] pub use gen_TrackEvent::*; #[cfg(feature = "TrackEventInit")] #[allow(non_snake_case)] mod gen_TrackEventInit; #[cfg(feature = "TrackEventInit")] #[allow(unused_imports)] pub use gen_TrackEventInit::*; #[cfg(feature = "TransformStream")] #[allow(non_snake_case)] mod gen_TransformStream; #[cfg(feature = "TransformStream")] #[allow(unused_imports)] pub use gen_TransformStream::*; #[cfg(feature = "TransformStreamDefaultController")] #[allow(non_snake_case)] mod gen_TransformStreamDefaultController; #[cfg(feature = "TransformStreamDefaultController")] #[allow(unused_imports)] pub use gen_TransformStreamDefaultController::*; #[cfg(feature = "Transformer")] #[allow(non_snake_case)] mod gen_Transformer; #[cfg(feature = "Transformer")] #[allow(unused_imports)] pub use gen_Transformer::*; #[cfg(feature = "TransitionEvent")] #[allow(non_snake_case)] mod gen_TransitionEvent; #[cfg(feature = "TransitionEvent")] #[allow(unused_imports)] pub use gen_TransitionEvent::*; #[cfg(feature = "TransitionEventInit")] #[allow(non_snake_case)] mod gen_TransitionEventInit; #[cfg(feature = "TransitionEventInit")] #[allow(unused_imports)] pub use gen_TransitionEventInit::*; #[cfg(feature = "Transport")] #[allow(non_snake_case)] mod gen_Transport; #[cfg(feature = "Transport")] #[allow(unused_imports)] pub use gen_Transport::*; #[cfg(feature = "TreeBoxObject")] #[allow(non_snake_case)] mod gen_TreeBoxObject; #[cfg(feature = "TreeBoxObject")] #[allow(unused_imports)] pub use gen_TreeBoxObject::*; #[cfg(feature = "TreeCellInfo")] #[allow(non_snake_case)] mod gen_TreeCellInfo; #[cfg(feature = "TreeCellInfo")] #[allow(unused_imports)] pub use gen_TreeCellInfo::*; #[cfg(feature = "TreeView")] #[allow(non_snake_case)] mod gen_TreeView; #[cfg(feature = "TreeView")] #[allow(unused_imports)] pub use gen_TreeView::*; #[cfg(feature = "TreeWalker")] #[allow(non_snake_case)] mod gen_TreeWalker; #[cfg(feature = "TreeWalker")] #[allow(unused_imports)] pub use gen_TreeWalker::*; #[cfg(feature = "U2f")] #[allow(non_snake_case)] mod gen_U2f; #[cfg(feature = "U2f")] #[allow(unused_imports)] pub use gen_U2f::*; #[cfg(feature = "U2fClientData")] #[allow(non_snake_case)] mod gen_U2fClientData; #[cfg(feature = "U2fClientData")] #[allow(unused_imports)] pub use gen_U2fClientData::*; #[cfg(feature = "ULongRange")] #[allow(non_snake_case)] mod gen_ULongRange; #[cfg(feature = "ULongRange")] #[allow(unused_imports)] pub use gen_ULongRange::*; #[cfg(feature = "UaDataValues")] #[allow(non_snake_case)] mod gen_UaDataValues; #[cfg(feature = "UaDataValues")] #[allow(unused_imports)] pub use gen_UaDataValues::*; #[cfg(feature = "UaLowEntropyJson")] #[allow(non_snake_case)] mod gen_UaLowEntropyJson; #[cfg(feature = "UaLowEntropyJson")] #[allow(unused_imports)] pub use gen_UaLowEntropyJson::*; #[cfg(feature = "UdpMessageEventInit")] #[allow(non_snake_case)] mod gen_UdpMessageEventInit; #[cfg(feature = "UdpMessageEventInit")] #[allow(unused_imports)] pub use gen_UdpMessageEventInit::*; #[cfg(feature = "UdpOptions")] #[allow(non_snake_case)] mod gen_UdpOptions; #[cfg(feature = "UdpOptions")] #[allow(unused_imports)] pub use gen_UdpOptions::*; #[cfg(feature = "UiEvent")] #[allow(non_snake_case)] mod gen_UiEvent; #[cfg(feature = "UiEvent")] #[allow(unused_imports)] pub use gen_UiEvent::*; #[cfg(feature = "UiEventInit")] #[allow(non_snake_case)] mod gen_UiEventInit; #[cfg(feature = "UiEventInit")] #[allow(unused_imports)] pub use gen_UiEventInit::*; #[cfg(feature = "UnderlyingSink")] #[allow(non_snake_case)] mod gen_UnderlyingSink; #[cfg(feature = "UnderlyingSink")] #[allow(unused_imports)] pub use gen_UnderlyingSink::*; #[cfg(feature = "UnderlyingSource")] #[allow(non_snake_case)] mod gen_UnderlyingSource; #[cfg(feature = "UnderlyingSource")] #[allow(unused_imports)] pub use gen_UnderlyingSource::*; #[cfg(feature = "Url")] #[allow(non_snake_case)] mod gen_Url; #[cfg(feature = "Url")] #[allow(unused_imports)] pub use gen_Url::*; #[cfg(feature = "UrlSearchParams")] #[allow(non_snake_case)] mod gen_UrlSearchParams; #[cfg(feature = "UrlSearchParams")] #[allow(unused_imports)] pub use gen_UrlSearchParams::*; #[cfg(feature = "Usb")] #[allow(non_snake_case)] mod gen_Usb; #[cfg(feature = "Usb")] #[allow(unused_imports)] pub use gen_Usb::*; #[cfg(feature = "UsbAlternateInterface")] #[allow(non_snake_case)] mod gen_UsbAlternateInterface; #[cfg(feature = "UsbAlternateInterface")] #[allow(unused_imports)] pub use gen_UsbAlternateInterface::*; #[cfg(feature = "UsbConfiguration")] #[allow(non_snake_case)] mod gen_UsbConfiguration; #[cfg(feature = "UsbConfiguration")] #[allow(unused_imports)] pub use gen_UsbConfiguration::*; #[cfg(feature = "UsbConnectionEvent")] #[allow(non_snake_case)] mod gen_UsbConnectionEvent; #[cfg(feature = "UsbConnectionEvent")] #[allow(unused_imports)] pub use gen_UsbConnectionEvent::*; #[cfg(feature = "UsbConnectionEventInit")] #[allow(non_snake_case)] mod gen_UsbConnectionEventInit; #[cfg(feature = "UsbConnectionEventInit")] #[allow(unused_imports)] pub use gen_UsbConnectionEventInit::*; #[cfg(feature = "UsbControlTransferParameters")] #[allow(non_snake_case)] mod gen_UsbControlTransferParameters; #[cfg(feature = "UsbControlTransferParameters")] #[allow(unused_imports)] pub use gen_UsbControlTransferParameters::*; #[cfg(feature = "UsbDevice")] #[allow(non_snake_case)] mod gen_UsbDevice; #[cfg(feature = "UsbDevice")] #[allow(unused_imports)] pub use gen_UsbDevice::*; #[cfg(feature = "UsbDeviceFilter")] #[allow(non_snake_case)] mod gen_UsbDeviceFilter; #[cfg(feature = "UsbDeviceFilter")] #[allow(unused_imports)] pub use gen_UsbDeviceFilter::*; #[cfg(feature = "UsbDeviceRequestOptions")] #[allow(non_snake_case)] mod gen_UsbDeviceRequestOptions; #[cfg(feature = "UsbDeviceRequestOptions")] #[allow(unused_imports)] pub use gen_UsbDeviceRequestOptions::*; #[cfg(feature = "UsbDirection")] #[allow(non_snake_case)] mod gen_UsbDirection; #[cfg(feature = "UsbDirection")] #[allow(unused_imports)] pub use gen_UsbDirection::*; #[cfg(feature = "UsbEndpoint")] #[allow(non_snake_case)] mod gen_UsbEndpoint; #[cfg(feature = "UsbEndpoint")] #[allow(unused_imports)] pub use gen_UsbEndpoint::*; #[cfg(feature = "UsbEndpointType")] #[allow(non_snake_case)] mod gen_UsbEndpointType; #[cfg(feature = "UsbEndpointType")] #[allow(unused_imports)] pub use gen_UsbEndpointType::*; #[cfg(feature = "UsbInTransferResult")] #[allow(non_snake_case)] mod gen_UsbInTransferResult; #[cfg(feature = "UsbInTransferResult")] #[allow(unused_imports)] pub use gen_UsbInTransferResult::*; #[cfg(feature = "UsbInterface")] #[allow(non_snake_case)] mod gen_UsbInterface; #[cfg(feature = "UsbInterface")] #[allow(unused_imports)] pub use gen_UsbInterface::*; #[cfg(feature = "UsbIsochronousInTransferPacket")] #[allow(non_snake_case)] mod gen_UsbIsochronousInTransferPacket; #[cfg(feature = "UsbIsochronousInTransferPacket")] #[allow(unused_imports)] pub use gen_UsbIsochronousInTransferPacket::*; #[cfg(feature = "UsbIsochronousInTransferResult")] #[allow(non_snake_case)] mod gen_UsbIsochronousInTransferResult; #[cfg(feature = "UsbIsochronousInTransferResult")] #[allow(unused_imports)] pub use gen_UsbIsochronousInTransferResult::*; #[cfg(feature = "UsbIsochronousOutTransferPacket")] #[allow(non_snake_case)] mod gen_UsbIsochronousOutTransferPacket; #[cfg(feature = "UsbIsochronousOutTransferPacket")] #[allow(unused_imports)] pub use gen_UsbIsochronousOutTransferPacket::*; #[cfg(feature = "UsbIsochronousOutTransferResult")] #[allow(non_snake_case)] mod gen_UsbIsochronousOutTransferResult; #[cfg(feature = "UsbIsochronousOutTransferResult")] #[allow(unused_imports)] pub use gen_UsbIsochronousOutTransferResult::*; #[cfg(feature = "UsbOutTransferResult")] #[allow(non_snake_case)] mod gen_UsbOutTransferResult; #[cfg(feature = "UsbOutTransferResult")] #[allow(unused_imports)] pub use gen_UsbOutTransferResult::*; #[cfg(feature = "UsbPermissionDescriptor")] #[allow(non_snake_case)] mod gen_UsbPermissionDescriptor; #[cfg(feature = "UsbPermissionDescriptor")] #[allow(unused_imports)] pub use gen_UsbPermissionDescriptor::*; #[cfg(feature = "UsbPermissionResult")] #[allow(non_snake_case)] mod gen_UsbPermissionResult; #[cfg(feature = "UsbPermissionResult")] #[allow(unused_imports)] pub use gen_UsbPermissionResult::*; #[cfg(feature = "UsbPermissionStorage")] #[allow(non_snake_case)] mod gen_UsbPermissionStorage; #[cfg(feature = "UsbPermissionStorage")] #[allow(unused_imports)] pub use gen_UsbPermissionStorage::*; #[cfg(feature = "UsbRecipient")] #[allow(non_snake_case)] mod gen_UsbRecipient; #[cfg(feature = "UsbRecipient")] #[allow(unused_imports)] pub use gen_UsbRecipient::*; #[cfg(feature = "UsbRequestType")] #[allow(non_snake_case)] mod gen_UsbRequestType; #[cfg(feature = "UsbRequestType")] #[allow(unused_imports)] pub use gen_UsbRequestType::*; #[cfg(feature = "UsbTransferStatus")] #[allow(non_snake_case)] mod gen_UsbTransferStatus; #[cfg(feature = "UsbTransferStatus")] #[allow(unused_imports)] pub use gen_UsbTransferStatus::*; #[cfg(feature = "UserActivation")] #[allow(non_snake_case)] mod gen_UserActivation; #[cfg(feature = "UserActivation")] #[allow(unused_imports)] pub use gen_UserActivation::*; #[cfg(feature = "UserProximityEvent")] #[allow(non_snake_case)] mod gen_UserProximityEvent; #[cfg(feature = "UserProximityEvent")] #[allow(unused_imports)] pub use gen_UserProximityEvent::*; #[cfg(feature = "UserProximityEventInit")] #[allow(non_snake_case)] mod gen_UserProximityEventInit; #[cfg(feature = "UserProximityEventInit")] #[allow(unused_imports)] pub use gen_UserProximityEventInit::*; #[cfg(feature = "UserVerificationRequirement")] #[allow(non_snake_case)] mod gen_UserVerificationRequirement; #[cfg(feature = "UserVerificationRequirement")] #[allow(unused_imports)] pub use gen_UserVerificationRequirement::*; #[cfg(feature = "ValidityState")] #[allow(non_snake_case)] mod gen_ValidityState; #[cfg(feature = "ValidityState")] #[allow(unused_imports)] pub use gen_ValidityState::*; #[cfg(feature = "ValueEvent")] #[allow(non_snake_case)] mod gen_ValueEvent; #[cfg(feature = "ValueEvent")] #[allow(unused_imports)] pub use gen_ValueEvent::*; #[cfg(feature = "ValueEventInit")] #[allow(non_snake_case)] mod gen_ValueEventInit; #[cfg(feature = "ValueEventInit")] #[allow(unused_imports)] pub use gen_ValueEventInit::*; #[cfg(feature = "VideoColorPrimaries")] #[allow(non_snake_case)] mod gen_VideoColorPrimaries; #[cfg(feature = "VideoColorPrimaries")] #[allow(unused_imports)] pub use gen_VideoColorPrimaries::*; #[cfg(feature = "VideoColorSpace")] #[allow(non_snake_case)] mod gen_VideoColorSpace; #[cfg(feature = "VideoColorSpace")] #[allow(unused_imports)] pub use gen_VideoColorSpace::*; #[cfg(feature = "VideoColorSpaceInit")] #[allow(non_snake_case)] mod gen_VideoColorSpaceInit; #[cfg(feature = "VideoColorSpaceInit")] #[allow(unused_imports)] pub use gen_VideoColorSpaceInit::*; #[cfg(feature = "VideoConfiguration")] #[allow(non_snake_case)] mod gen_VideoConfiguration; #[cfg(feature = "VideoConfiguration")] #[allow(unused_imports)] pub use gen_VideoConfiguration::*; #[cfg(feature = "VideoDecoder")] #[allow(non_snake_case)] mod gen_VideoDecoder; #[cfg(feature = "VideoDecoder")] #[allow(unused_imports)] pub use gen_VideoDecoder::*; #[cfg(feature = "VideoDecoderConfig")] #[allow(non_snake_case)] mod gen_VideoDecoderConfig; #[cfg(feature = "VideoDecoderConfig")] #[allow(unused_imports)] pub use gen_VideoDecoderConfig::*; #[cfg(feature = "VideoDecoderInit")] #[allow(non_snake_case)] mod gen_VideoDecoderInit; #[cfg(feature = "VideoDecoderInit")] #[allow(unused_imports)] pub use gen_VideoDecoderInit::*; #[cfg(feature = "VideoDecoderSupport")] #[allow(non_snake_case)] mod gen_VideoDecoderSupport; #[cfg(feature = "VideoDecoderSupport")] #[allow(unused_imports)] pub use gen_VideoDecoderSupport::*; #[cfg(feature = "VideoEncoder")] #[allow(non_snake_case)] mod gen_VideoEncoder; #[cfg(feature = "VideoEncoder")] #[allow(unused_imports)] pub use gen_VideoEncoder::*; #[cfg(feature = "VideoEncoderConfig")] #[allow(non_snake_case)] mod gen_VideoEncoderConfig; #[cfg(feature = "VideoEncoderConfig")] #[allow(unused_imports)] pub use gen_VideoEncoderConfig::*; #[cfg(feature = "VideoEncoderEncodeOptions")] #[allow(non_snake_case)] mod gen_VideoEncoderEncodeOptions; #[cfg(feature = "VideoEncoderEncodeOptions")] #[allow(unused_imports)] pub use gen_VideoEncoderEncodeOptions::*; #[cfg(feature = "VideoEncoderInit")] #[allow(non_snake_case)] mod gen_VideoEncoderInit; #[cfg(feature = "VideoEncoderInit")] #[allow(unused_imports)] pub use gen_VideoEncoderInit::*; #[cfg(feature = "VideoEncoderSupport")] #[allow(non_snake_case)] mod gen_VideoEncoderSupport; #[cfg(feature = "VideoEncoderSupport")] #[allow(unused_imports)] pub use gen_VideoEncoderSupport::*; #[cfg(feature = "VideoFacingModeEnum")] #[allow(non_snake_case)] mod gen_VideoFacingModeEnum; #[cfg(feature = "VideoFacingModeEnum")] #[allow(unused_imports)] pub use gen_VideoFacingModeEnum::*; #[cfg(feature = "VideoFrame")] #[allow(non_snake_case)] mod gen_VideoFrame; #[cfg(feature = "VideoFrame")] #[allow(unused_imports)] pub use gen_VideoFrame::*; #[cfg(feature = "VideoFrameBufferInit")] #[allow(non_snake_case)] mod gen_VideoFrameBufferInit; #[cfg(feature = "VideoFrameBufferInit")] #[allow(unused_imports)] pub use gen_VideoFrameBufferInit::*; #[cfg(feature = "VideoFrameCopyToOptions")] #[allow(non_snake_case)] mod gen_VideoFrameCopyToOptions; #[cfg(feature = "VideoFrameCopyToOptions")] #[allow(unused_imports)] pub use gen_VideoFrameCopyToOptions::*; #[cfg(feature = "VideoFrameInit")] #[allow(non_snake_case)] mod gen_VideoFrameInit; #[cfg(feature = "VideoFrameInit")] #[allow(unused_imports)] pub use gen_VideoFrameInit::*; #[cfg(feature = "VideoMatrixCoefficients")] #[allow(non_snake_case)] mod gen_VideoMatrixCoefficients; #[cfg(feature = "VideoMatrixCoefficients")] #[allow(unused_imports)] pub use gen_VideoMatrixCoefficients::*; #[cfg(feature = "VideoPixelFormat")] #[allow(non_snake_case)] mod gen_VideoPixelFormat; #[cfg(feature = "VideoPixelFormat")] #[allow(unused_imports)] pub use gen_VideoPixelFormat::*; #[cfg(feature = "VideoPlaybackQuality")] #[allow(non_snake_case)] mod gen_VideoPlaybackQuality; #[cfg(feature = "VideoPlaybackQuality")] #[allow(unused_imports)] pub use gen_VideoPlaybackQuality::*; #[cfg(feature = "VideoStreamTrack")] #[allow(non_snake_case)] mod gen_VideoStreamTrack; #[cfg(feature = "VideoStreamTrack")] #[allow(unused_imports)] pub use gen_VideoStreamTrack::*; #[cfg(feature = "VideoTrack")] #[allow(non_snake_case)] mod gen_VideoTrack; #[cfg(feature = "VideoTrack")] #[allow(unused_imports)] pub use gen_VideoTrack::*; #[cfg(feature = "VideoTrackList")] #[allow(non_snake_case)] mod gen_VideoTrackList; #[cfg(feature = "VideoTrackList")] #[allow(unused_imports)] pub use gen_VideoTrackList::*; #[cfg(feature = "VideoTransferCharacteristics")] #[allow(non_snake_case)] mod gen_VideoTransferCharacteristics; #[cfg(feature = "VideoTransferCharacteristics")] #[allow(unused_imports)] pub use gen_VideoTransferCharacteristics::*; #[cfg(feature = "ViewTransition")] #[allow(non_snake_case)] mod gen_ViewTransition; #[cfg(feature = "ViewTransition")] #[allow(unused_imports)] pub use gen_ViewTransition::*; #[cfg(feature = "VisibilityState")] #[allow(non_snake_case)] mod gen_VisibilityState; #[cfg(feature = "VisibilityState")] #[allow(unused_imports)] pub use gen_VisibilityState::*; #[cfg(feature = "VisualViewport")] #[allow(non_snake_case)] mod gen_VisualViewport; #[cfg(feature = "VisualViewport")] #[allow(unused_imports)] pub use gen_VisualViewport::*; #[cfg(feature = "VoidCallback")] #[allow(non_snake_case)] mod gen_VoidCallback; #[cfg(feature = "VoidCallback")] #[allow(unused_imports)] pub use gen_VoidCallback::*; #[cfg(feature = "VrDisplay")] #[allow(non_snake_case)] mod gen_VrDisplay; #[cfg(feature = "VrDisplay")] #[allow(unused_imports)] pub use gen_VrDisplay::*; #[cfg(feature = "VrDisplayCapabilities")] #[allow(non_snake_case)] mod gen_VrDisplayCapabilities; #[cfg(feature = "VrDisplayCapabilities")] #[allow(unused_imports)] pub use gen_VrDisplayCapabilities::*; #[cfg(feature = "VrEye")] #[allow(non_snake_case)] mod gen_VrEye; #[cfg(feature = "VrEye")] #[allow(unused_imports)] pub use gen_VrEye::*; #[cfg(feature = "VrEyeParameters")] #[allow(non_snake_case)] mod gen_VrEyeParameters; #[cfg(feature = "VrEyeParameters")] #[allow(unused_imports)] pub use gen_VrEyeParameters::*; #[cfg(feature = "VrFieldOfView")] #[allow(non_snake_case)] mod gen_VrFieldOfView; #[cfg(feature = "VrFieldOfView")] #[allow(unused_imports)] pub use gen_VrFieldOfView::*; #[cfg(feature = "VrFrameData")] #[allow(non_snake_case)] mod gen_VrFrameData; #[cfg(feature = "VrFrameData")] #[allow(unused_imports)] pub use gen_VrFrameData::*; #[cfg(feature = "VrLayer")] #[allow(non_snake_case)] mod gen_VrLayer; #[cfg(feature = "VrLayer")] #[allow(unused_imports)] pub use gen_VrLayer::*; #[cfg(feature = "VrMockController")] #[allow(non_snake_case)] mod gen_VrMockController; #[cfg(feature = "VrMockController")] #[allow(unused_imports)] pub use gen_VrMockController::*; #[cfg(feature = "VrMockDisplay")] #[allow(non_snake_case)] mod gen_VrMockDisplay; #[cfg(feature = "VrMockDisplay")] #[allow(unused_imports)] pub use gen_VrMockDisplay::*; #[cfg(feature = "VrPose")] #[allow(non_snake_case)] mod gen_VrPose; #[cfg(feature = "VrPose")] #[allow(unused_imports)] pub use gen_VrPose::*; #[cfg(feature = "VrServiceTest")] #[allow(non_snake_case)] mod gen_VrServiceTest; #[cfg(feature = "VrServiceTest")] #[allow(unused_imports)] pub use gen_VrServiceTest::*; #[cfg(feature = "VrStageParameters")] #[allow(non_snake_case)] mod gen_VrStageParameters; #[cfg(feature = "VrStageParameters")] #[allow(unused_imports)] pub use gen_VrStageParameters::*; #[cfg(feature = "VrSubmitFrameResult")] #[allow(non_snake_case)] mod gen_VrSubmitFrameResult; #[cfg(feature = "VrSubmitFrameResult")] #[allow(unused_imports)] pub use gen_VrSubmitFrameResult::*; #[cfg(feature = "VttCue")] #[allow(non_snake_case)] mod gen_VttCue; #[cfg(feature = "VttCue")] #[allow(unused_imports)] pub use gen_VttCue::*; #[cfg(feature = "VttRegion")] #[allow(non_snake_case)] mod gen_VttRegion; #[cfg(feature = "VttRegion")] #[allow(unused_imports)] pub use gen_VttRegion::*; #[cfg(feature = "WakeLock")] #[allow(non_snake_case)] mod gen_WakeLock; #[cfg(feature = "WakeLock")] #[allow(unused_imports)] pub use gen_WakeLock::*; #[cfg(feature = "WakeLockSentinel")] #[allow(non_snake_case)] mod gen_WakeLockSentinel; #[cfg(feature = "WakeLockSentinel")] #[allow(unused_imports)] pub use gen_WakeLockSentinel::*; #[cfg(feature = "WakeLockType")] #[allow(non_snake_case)] mod gen_WakeLockType; #[cfg(feature = "WakeLockType")] #[allow(unused_imports)] pub use gen_WakeLockType::*; #[cfg(feature = "WatchAdvertisementsOptions")] #[allow(non_snake_case)] mod gen_WatchAdvertisementsOptions; #[cfg(feature = "WatchAdvertisementsOptions")] #[allow(unused_imports)] pub use gen_WatchAdvertisementsOptions::*; #[cfg(feature = "WaveShaperNode")] #[allow(non_snake_case)] mod gen_WaveShaperNode; #[cfg(feature = "WaveShaperNode")] #[allow(unused_imports)] pub use gen_WaveShaperNode::*; #[cfg(feature = "WaveShaperOptions")] #[allow(non_snake_case)] mod gen_WaveShaperOptions; #[cfg(feature = "WaveShaperOptions")] #[allow(unused_imports)] pub use gen_WaveShaperOptions::*; #[cfg(feature = "WebGl2RenderingContext")] #[allow(non_snake_case)] mod gen_WebGl2RenderingContext; #[cfg(feature = "WebGl2RenderingContext")] #[allow(unused_imports)] pub use gen_WebGl2RenderingContext::*; #[cfg(feature = "WebGlActiveInfo")] #[allow(non_snake_case)] mod gen_WebGlActiveInfo; #[cfg(feature = "WebGlActiveInfo")] #[allow(unused_imports)] pub use gen_WebGlActiveInfo::*; #[cfg(feature = "WebGlBuffer")] #[allow(non_snake_case)] mod gen_WebGlBuffer; #[cfg(feature = "WebGlBuffer")] #[allow(unused_imports)] pub use gen_WebGlBuffer::*; #[cfg(feature = "WebGlContextAttributes")] #[allow(non_snake_case)] mod gen_WebGlContextAttributes; #[cfg(feature = "WebGlContextAttributes")] #[allow(unused_imports)] pub use gen_WebGlContextAttributes::*; #[cfg(feature = "WebGlContextEvent")] #[allow(non_snake_case)] mod gen_WebGlContextEvent; #[cfg(feature = "WebGlContextEvent")] #[allow(unused_imports)] pub use gen_WebGlContextEvent::*; #[cfg(feature = "WebGlContextEventInit")] #[allow(non_snake_case)] mod gen_WebGlContextEventInit; #[cfg(feature = "WebGlContextEventInit")] #[allow(unused_imports)] pub use gen_WebGlContextEventInit::*; #[cfg(feature = "WebGlFramebuffer")] #[allow(non_snake_case)] mod gen_WebGlFramebuffer; #[cfg(feature = "WebGlFramebuffer")] #[allow(unused_imports)] pub use gen_WebGlFramebuffer::*; #[cfg(feature = "WebGlPowerPreference")] #[allow(non_snake_case)] mod gen_WebGlPowerPreference; #[cfg(feature = "WebGlPowerPreference")] #[allow(unused_imports)] pub use gen_WebGlPowerPreference::*; #[cfg(feature = "WebGlProgram")] #[allow(non_snake_case)] mod gen_WebGlProgram; #[cfg(feature = "WebGlProgram")] #[allow(unused_imports)] pub use gen_WebGlProgram::*; #[cfg(feature = "WebGlQuery")] #[allow(non_snake_case)] mod gen_WebGlQuery; #[cfg(feature = "WebGlQuery")] #[allow(unused_imports)] pub use gen_WebGlQuery::*; #[cfg(feature = "WebGlRenderbuffer")] #[allow(non_snake_case)] mod gen_WebGlRenderbuffer; #[cfg(feature = "WebGlRenderbuffer")] #[allow(unused_imports)] pub use gen_WebGlRenderbuffer::*; #[cfg(feature = "WebGlRenderingContext")] #[allow(non_snake_case)] mod gen_WebGlRenderingContext; #[cfg(feature = "WebGlRenderingContext")] #[allow(unused_imports)] pub use gen_WebGlRenderingContext::*; #[cfg(feature = "WebGlSampler")] #[allow(non_snake_case)] mod gen_WebGlSampler; #[cfg(feature = "WebGlSampler")] #[allow(unused_imports)] pub use gen_WebGlSampler::*; #[cfg(feature = "WebGlShader")] #[allow(non_snake_case)] mod gen_WebGlShader; #[cfg(feature = "WebGlShader")] #[allow(unused_imports)] pub use gen_WebGlShader::*; #[cfg(feature = "WebGlShaderPrecisionFormat")] #[allow(non_snake_case)] mod gen_WebGlShaderPrecisionFormat; #[cfg(feature = "WebGlShaderPrecisionFormat")] #[allow(unused_imports)] pub use gen_WebGlShaderPrecisionFormat::*; #[cfg(feature = "WebGlSync")] #[allow(non_snake_case)] mod gen_WebGlSync; #[cfg(feature = "WebGlSync")] #[allow(unused_imports)] pub use gen_WebGlSync::*; #[cfg(feature = "WebGlTexture")] #[allow(non_snake_case)] mod gen_WebGlTexture; #[cfg(feature = "WebGlTexture")] #[allow(unused_imports)] pub use gen_WebGlTexture::*; #[cfg(feature = "WebGlTransformFeedback")] #[allow(non_snake_case)] mod gen_WebGlTransformFeedback; #[cfg(feature = "WebGlTransformFeedback")] #[allow(unused_imports)] pub use gen_WebGlTransformFeedback::*; #[cfg(feature = "WebGlUniformLocation")] #[allow(non_snake_case)] mod gen_WebGlUniformLocation; #[cfg(feature = "WebGlUniformLocation")] #[allow(unused_imports)] pub use gen_WebGlUniformLocation::*; #[cfg(feature = "WebGlVertexArrayObject")] #[allow(non_snake_case)] mod gen_WebGlVertexArrayObject; #[cfg(feature = "WebGlVertexArrayObject")] #[allow(unused_imports)] pub use gen_WebGlVertexArrayObject::*; #[cfg(feature = "WebKitCssMatrix")] #[allow(non_snake_case)] mod gen_WebKitCssMatrix; #[cfg(feature = "WebKitCssMatrix")] #[allow(unused_imports)] pub use gen_WebKitCssMatrix::*; #[cfg(feature = "WebSocket")] #[allow(non_snake_case)] mod gen_WebSocket; #[cfg(feature = "WebSocket")] #[allow(unused_imports)] pub use gen_WebSocket::*; #[cfg(feature = "WebSocketDict")] #[allow(non_snake_case)] mod gen_WebSocketDict; #[cfg(feature = "WebSocketDict")] #[allow(unused_imports)] pub use gen_WebSocketDict::*; #[cfg(feature = "WebSocketElement")] #[allow(non_snake_case)] mod gen_WebSocketElement; #[cfg(feature = "WebSocketElement")] #[allow(unused_imports)] pub use gen_WebSocketElement::*; #[cfg(feature = "WebTransport")] #[allow(non_snake_case)] mod gen_WebTransport; #[cfg(feature = "WebTransport")] #[allow(unused_imports)] pub use gen_WebTransport::*; #[cfg(feature = "WebTransportBidirectionalStream")] #[allow(non_snake_case)] mod gen_WebTransportBidirectionalStream; #[cfg(feature = "WebTransportBidirectionalStream")] #[allow(unused_imports)] pub use gen_WebTransportBidirectionalStream::*; #[cfg(feature = "WebTransportCloseInfo")] #[allow(non_snake_case)] mod gen_WebTransportCloseInfo; #[cfg(feature = "WebTransportCloseInfo")] #[allow(unused_imports)] pub use gen_WebTransportCloseInfo::*; #[cfg(feature = "WebTransportCongestionControl")] #[allow(non_snake_case)] mod gen_WebTransportCongestionControl; #[cfg(feature = "WebTransportCongestionControl")] #[allow(unused_imports)] pub use gen_WebTransportCongestionControl::*; #[cfg(feature = "WebTransportDatagramDuplexStream")] #[allow(non_snake_case)] mod gen_WebTransportDatagramDuplexStream; #[cfg(feature = "WebTransportDatagramDuplexStream")] #[allow(unused_imports)] pub use gen_WebTransportDatagramDuplexStream::*; #[cfg(feature = "WebTransportDatagramStats")] #[allow(non_snake_case)] mod gen_WebTransportDatagramStats; #[cfg(feature = "WebTransportDatagramStats")] #[allow(unused_imports)] pub use gen_WebTransportDatagramStats::*; #[cfg(feature = "WebTransportError")] #[allow(non_snake_case)] mod gen_WebTransportError; #[cfg(feature = "WebTransportError")] #[allow(unused_imports)] pub use gen_WebTransportError::*; #[cfg(feature = "WebTransportErrorOptions")] #[allow(non_snake_case)] mod gen_WebTransportErrorOptions; #[cfg(feature = "WebTransportErrorOptions")] #[allow(unused_imports)] pub use gen_WebTransportErrorOptions::*; #[cfg(feature = "WebTransportErrorSource")] #[allow(non_snake_case)] mod gen_WebTransportErrorSource; #[cfg(feature = "WebTransportErrorSource")] #[allow(unused_imports)] pub use gen_WebTransportErrorSource::*; #[cfg(feature = "WebTransportHash")] #[allow(non_snake_case)] mod gen_WebTransportHash; #[cfg(feature = "WebTransportHash")] #[allow(unused_imports)] pub use gen_WebTransportHash::*; #[cfg(feature = "WebTransportOptions")] #[allow(non_snake_case)] mod gen_WebTransportOptions; #[cfg(feature = "WebTransportOptions")] #[allow(unused_imports)] pub use gen_WebTransportOptions::*; #[cfg(feature = "WebTransportReceiveStream")] #[allow(non_snake_case)] mod gen_WebTransportReceiveStream; #[cfg(feature = "WebTransportReceiveStream")] #[allow(unused_imports)] pub use gen_WebTransportReceiveStream::*; #[cfg(feature = "WebTransportReceiveStreamStats")] #[allow(non_snake_case)] mod gen_WebTransportReceiveStreamStats; #[cfg(feature = "WebTransportReceiveStreamStats")] #[allow(unused_imports)] pub use gen_WebTransportReceiveStreamStats::*; #[cfg(feature = "WebTransportReliabilityMode")] #[allow(non_snake_case)] mod gen_WebTransportReliabilityMode; #[cfg(feature = "WebTransportReliabilityMode")] #[allow(unused_imports)] pub use gen_WebTransportReliabilityMode::*; #[cfg(feature = "WebTransportSendStream")] #[allow(non_snake_case)] mod gen_WebTransportSendStream; #[cfg(feature = "WebTransportSendStream")] #[allow(unused_imports)] pub use gen_WebTransportSendStream::*; #[cfg(feature = "WebTransportSendStreamOptions")] #[allow(non_snake_case)] mod gen_WebTransportSendStreamOptions; #[cfg(feature = "WebTransportSendStreamOptions")] #[allow(unused_imports)] pub use gen_WebTransportSendStreamOptions::*; #[cfg(feature = "WebTransportSendStreamStats")] #[allow(non_snake_case)] mod gen_WebTransportSendStreamStats; #[cfg(feature = "WebTransportSendStreamStats")] #[allow(unused_imports)] pub use gen_WebTransportSendStreamStats::*; #[cfg(feature = "WebTransportStats")] #[allow(non_snake_case)] mod gen_WebTransportStats; #[cfg(feature = "WebTransportStats")] #[allow(unused_imports)] pub use gen_WebTransportStats::*; #[cfg(feature = "WebglColorBufferFloat")] #[allow(non_snake_case)] mod gen_WebglColorBufferFloat; #[cfg(feature = "WebglColorBufferFloat")] #[allow(unused_imports)] pub use gen_WebglColorBufferFloat::*; #[cfg(feature = "WebglCompressedTextureAstc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureAstc; #[cfg(feature = "WebglCompressedTextureAstc")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureAstc::*; #[cfg(feature = "WebglCompressedTextureAtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureAtc; #[cfg(feature = "WebglCompressedTextureAtc")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureAtc::*; #[cfg(feature = "WebglCompressedTextureEtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureEtc; #[cfg(feature = "WebglCompressedTextureEtc")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureEtc::*; #[cfg(feature = "WebglCompressedTextureEtc1")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureEtc1; #[cfg(feature = "WebglCompressedTextureEtc1")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureEtc1::*; #[cfg(feature = "WebglCompressedTexturePvrtc")] #[allow(non_snake_case)] mod gen_WebglCompressedTexturePvrtc; #[cfg(feature = "WebglCompressedTexturePvrtc")] #[allow(unused_imports)] pub use gen_WebglCompressedTexturePvrtc::*; #[cfg(feature = "WebglCompressedTextureS3tc")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureS3tc; #[cfg(feature = "WebglCompressedTextureS3tc")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureS3tc::*; #[cfg(feature = "WebglCompressedTextureS3tcSrgb")] #[allow(non_snake_case)] mod gen_WebglCompressedTextureS3tcSrgb; #[cfg(feature = "WebglCompressedTextureS3tcSrgb")] #[allow(unused_imports)] pub use gen_WebglCompressedTextureS3tcSrgb::*; #[cfg(feature = "WebglDebugRendererInfo")] #[allow(non_snake_case)] mod gen_WebglDebugRendererInfo; #[cfg(feature = "WebglDebugRendererInfo")] #[allow(unused_imports)] pub use gen_WebglDebugRendererInfo::*; #[cfg(feature = "WebglDebugShaders")] #[allow(non_snake_case)] mod gen_WebglDebugShaders; #[cfg(feature = "WebglDebugShaders")] #[allow(unused_imports)] pub use gen_WebglDebugShaders::*; #[cfg(feature = "WebglDepthTexture")] #[allow(non_snake_case)] mod gen_WebglDepthTexture; #[cfg(feature = "WebglDepthTexture")] #[allow(unused_imports)] pub use gen_WebglDepthTexture::*; #[cfg(feature = "WebglDrawBuffers")] #[allow(non_snake_case)] mod gen_WebglDrawBuffers; #[cfg(feature = "WebglDrawBuffers")] #[allow(unused_imports)] pub use gen_WebglDrawBuffers::*; #[cfg(feature = "WebglLoseContext")] #[allow(non_snake_case)] mod gen_WebglLoseContext; #[cfg(feature = "WebglLoseContext")] #[allow(unused_imports)] pub use gen_WebglLoseContext::*; #[cfg(feature = "WebglMultiDraw")] #[allow(non_snake_case)] mod gen_WebglMultiDraw; #[cfg(feature = "WebglMultiDraw")] #[allow(unused_imports)] pub use gen_WebglMultiDraw::*; #[cfg(feature = "WellKnownDirectory")] #[allow(non_snake_case)] mod gen_WellKnownDirectory; #[cfg(feature = "WellKnownDirectory")] #[allow(unused_imports)] pub use gen_WellKnownDirectory::*; #[cfg(feature = "WgslLanguageFeatures")] #[allow(non_snake_case)] mod gen_WgslLanguageFeatures; #[cfg(feature = "WgslLanguageFeatures")] #[allow(unused_imports)] pub use gen_WgslLanguageFeatures::*; #[cfg(feature = "WheelEvent")] #[allow(non_snake_case)] mod gen_WheelEvent; #[cfg(feature = "WheelEvent")] #[allow(unused_imports)] pub use gen_WheelEvent::*; #[cfg(feature = "WheelEventInit")] #[allow(non_snake_case)] mod gen_WheelEventInit; #[cfg(feature = "WheelEventInit")] #[allow(unused_imports)] pub use gen_WheelEventInit::*; #[cfg(feature = "WidevineCdmManifest")] #[allow(non_snake_case)] mod gen_WidevineCdmManifest; #[cfg(feature = "WidevineCdmManifest")] #[allow(unused_imports)] pub use gen_WidevineCdmManifest::*; #[cfg(feature = "Window")] #[allow(non_snake_case)] mod gen_Window; #[cfg(feature = "Window")] #[allow(unused_imports)] pub use gen_Window::*; #[cfg(feature = "WindowClient")] #[allow(non_snake_case)] mod gen_WindowClient; #[cfg(feature = "WindowClient")] #[allow(unused_imports)] pub use gen_WindowClient::*; #[cfg(feature = "Worker")] #[allow(non_snake_case)] mod gen_Worker; #[cfg(feature = "Worker")] #[allow(unused_imports)] pub use gen_Worker::*; #[cfg(feature = "WorkerDebuggerGlobalScope")] #[allow(non_snake_case)] mod gen_WorkerDebuggerGlobalScope; #[cfg(feature = "WorkerDebuggerGlobalScope")] #[allow(unused_imports)] pub use gen_WorkerDebuggerGlobalScope::*; #[cfg(feature = "WorkerGlobalScope")] #[allow(non_snake_case)] mod gen_WorkerGlobalScope; #[cfg(feature = "WorkerGlobalScope")] #[allow(unused_imports)] pub use gen_WorkerGlobalScope::*; #[cfg(feature = "WorkerLocation")] #[allow(non_snake_case)] mod gen_WorkerLocation; #[cfg(feature = "WorkerLocation")] #[allow(unused_imports)] pub use gen_WorkerLocation::*; #[cfg(feature = "WorkerNavigator")] #[allow(non_snake_case)] mod gen_WorkerNavigator; #[cfg(feature = "WorkerNavigator")] #[allow(unused_imports)] pub use gen_WorkerNavigator::*; #[cfg(feature = "WorkerOptions")] #[allow(non_snake_case)] mod gen_WorkerOptions; #[cfg(feature = "WorkerOptions")] #[allow(unused_imports)] pub use gen_WorkerOptions::*; #[cfg(feature = "WorkerType")] #[allow(non_snake_case)] mod gen_WorkerType; #[cfg(feature = "WorkerType")] #[allow(unused_imports)] pub use gen_WorkerType::*; #[cfg(feature = "Worklet")] #[allow(non_snake_case)] mod gen_Worklet; #[cfg(feature = "Worklet")] #[allow(unused_imports)] pub use gen_Worklet::*; #[cfg(feature = "WorkletGlobalScope")] #[allow(non_snake_case)] mod gen_WorkletGlobalScope; #[cfg(feature = "WorkletGlobalScope")] #[allow(unused_imports)] pub use gen_WorkletGlobalScope::*; #[cfg(feature = "WorkletOptions")] #[allow(non_snake_case)] mod gen_WorkletOptions; #[cfg(feature = "WorkletOptions")] #[allow(unused_imports)] pub use gen_WorkletOptions::*; #[cfg(feature = "WritableStream")] #[allow(non_snake_case)] mod gen_WritableStream; #[cfg(feature = "WritableStream")] #[allow(unused_imports)] pub use gen_WritableStream::*; #[cfg(feature = "WritableStreamDefaultController")] #[allow(non_snake_case)] mod gen_WritableStreamDefaultController; #[cfg(feature = "WritableStreamDefaultController")] #[allow(unused_imports)] pub use gen_WritableStreamDefaultController::*; #[cfg(feature = "WritableStreamDefaultWriter")] #[allow(non_snake_case)] mod gen_WritableStreamDefaultWriter; #[cfg(feature = "WritableStreamDefaultWriter")] #[allow(unused_imports)] pub use gen_WritableStreamDefaultWriter::*; #[cfg(feature = "WriteCommandType")] #[allow(non_snake_case)] mod gen_WriteCommandType; #[cfg(feature = "WriteCommandType")] #[allow(unused_imports)] pub use gen_WriteCommandType::*; #[cfg(feature = "WriteParams")] #[allow(non_snake_case)] mod gen_WriteParams; #[cfg(feature = "WriteParams")] #[allow(unused_imports)] pub use gen_WriteParams::*; #[cfg(feature = "XPathExpression")] #[allow(non_snake_case)] mod gen_XPathExpression; #[cfg(feature = "XPathExpression")] #[allow(unused_imports)] pub use gen_XPathExpression::*; #[cfg(feature = "XPathNsResolver")] #[allow(non_snake_case)] mod gen_XPathNsResolver; #[cfg(feature = "XPathNsResolver")] #[allow(unused_imports)] pub use gen_XPathNsResolver::*; #[cfg(feature = "XPathResult")] #[allow(non_snake_case)] mod gen_XPathResult; #[cfg(feature = "XPathResult")] #[allow(unused_imports)] pub use gen_XPathResult::*; #[cfg(feature = "XmlDocument")] #[allow(non_snake_case)] mod gen_XmlDocument; #[cfg(feature = "XmlDocument")] #[allow(unused_imports)] pub use gen_XmlDocument::*; #[cfg(feature = "XmlHttpRequest")] #[allow(non_snake_case)] mod gen_XmlHttpRequest; #[cfg(feature = "XmlHttpRequest")] #[allow(unused_imports)] pub use gen_XmlHttpRequest::*; #[cfg(feature = "XmlHttpRequestEventTarget")] #[allow(non_snake_case)] mod gen_XmlHttpRequestEventTarget; #[cfg(feature = "XmlHttpRequestEventTarget")] #[allow(unused_imports)] pub use gen_XmlHttpRequestEventTarget::*; #[cfg(feature = "XmlHttpRequestResponseType")] #[allow(non_snake_case)] mod gen_XmlHttpRequestResponseType; #[cfg(feature = "XmlHttpRequestResponseType")] #[allow(unused_imports)] pub use gen_XmlHttpRequestResponseType::*; #[cfg(feature = "XmlHttpRequestUpload")] #[allow(non_snake_case)] mod gen_XmlHttpRequestUpload; #[cfg(feature = "XmlHttpRequestUpload")] #[allow(unused_imports)] pub use gen_XmlHttpRequestUpload::*; #[cfg(feature = "XmlSerializer")] #[allow(non_snake_case)] mod gen_XmlSerializer; #[cfg(feature = "XmlSerializer")] #[allow(unused_imports)] pub use gen_XmlSerializer::*; #[cfg(feature = "XrBoundedReferenceSpace")] #[allow(non_snake_case)] mod gen_XrBoundedReferenceSpace; #[cfg(feature = "XrBoundedReferenceSpace")] #[allow(unused_imports)] pub use gen_XrBoundedReferenceSpace::*; #[cfg(feature = "XrEye")] #[allow(non_snake_case)] mod gen_XrEye; #[cfg(feature = "XrEye")] #[allow(unused_imports)] pub use gen_XrEye::*; #[cfg(feature = "XrFrame")] #[allow(non_snake_case)] mod gen_XrFrame; #[cfg(feature = "XrFrame")] #[allow(unused_imports)] pub use gen_XrFrame::*; #[cfg(feature = "XrHand")] #[allow(non_snake_case)] mod gen_XrHand; #[cfg(feature = "XrHand")] #[allow(unused_imports)] pub use gen_XrHand::*; #[cfg(feature = "XrHandJoint")] #[allow(non_snake_case)] mod gen_XrHandJoint; #[cfg(feature = "XrHandJoint")] #[allow(unused_imports)] pub use gen_XrHandJoint::*; #[cfg(feature = "XrHandedness")] #[allow(non_snake_case)] mod gen_XrHandedness; #[cfg(feature = "XrHandedness")] #[allow(unused_imports)] pub use gen_XrHandedness::*; #[cfg(feature = "XrInputSource")] #[allow(non_snake_case)] mod gen_XrInputSource; #[cfg(feature = "XrInputSource")] #[allow(unused_imports)] pub use gen_XrInputSource::*; #[cfg(feature = "XrInputSourceArray")] #[allow(non_snake_case)] mod gen_XrInputSourceArray; #[cfg(feature = "XrInputSourceArray")] #[allow(unused_imports)] pub use gen_XrInputSourceArray::*; #[cfg(feature = "XrInputSourceEvent")] #[allow(non_snake_case)] mod gen_XrInputSourceEvent; #[cfg(feature = "XrInputSourceEvent")] #[allow(unused_imports)] pub use gen_XrInputSourceEvent::*; #[cfg(feature = "XrInputSourceEventInit")] #[allow(non_snake_case)] mod gen_XrInputSourceEventInit; #[cfg(feature = "XrInputSourceEventInit")] #[allow(unused_imports)] pub use gen_XrInputSourceEventInit::*; #[cfg(feature = "XrInputSourcesChangeEvent")] #[allow(non_snake_case)] mod gen_XrInputSourcesChangeEvent; #[cfg(feature = "XrInputSourcesChangeEvent")] #[allow(unused_imports)] pub use gen_XrInputSourcesChangeEvent::*; #[cfg(feature = "XrInputSourcesChangeEventInit")] #[allow(non_snake_case)] mod gen_XrInputSourcesChangeEventInit; #[cfg(feature = "XrInputSourcesChangeEventInit")] #[allow(unused_imports)] pub use gen_XrInputSourcesChangeEventInit::*; #[cfg(feature = "XrJointPose")] #[allow(non_snake_case)] mod gen_XrJointPose; #[cfg(feature = "XrJointPose")] #[allow(unused_imports)] pub use gen_XrJointPose::*; #[cfg(feature = "XrJointSpace")] #[allow(non_snake_case)] mod gen_XrJointSpace; #[cfg(feature = "XrJointSpace")] #[allow(unused_imports)] pub use gen_XrJointSpace::*; #[cfg(feature = "XrLayer")] #[allow(non_snake_case)] mod gen_XrLayer; #[cfg(feature = "XrLayer")] #[allow(unused_imports)] pub use gen_XrLayer::*; #[cfg(feature = "XrPermissionDescriptor")] #[allow(non_snake_case)] mod gen_XrPermissionDescriptor; #[cfg(feature = "XrPermissionDescriptor")] #[allow(unused_imports)] pub use gen_XrPermissionDescriptor::*; #[cfg(feature = "XrPermissionStatus")] #[allow(non_snake_case)] mod gen_XrPermissionStatus; #[cfg(feature = "XrPermissionStatus")] #[allow(unused_imports)] pub use gen_XrPermissionStatus::*; #[cfg(feature = "XrPose")] #[allow(non_snake_case)] mod gen_XrPose; #[cfg(feature = "XrPose")] #[allow(unused_imports)] pub use gen_XrPose::*; #[cfg(feature = "XrReferenceSpace")] #[allow(non_snake_case)] mod gen_XrReferenceSpace; #[cfg(feature = "XrReferenceSpace")] #[allow(unused_imports)] pub use gen_XrReferenceSpace::*; #[cfg(feature = "XrReferenceSpaceEvent")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceEvent; #[cfg(feature = "XrReferenceSpaceEvent")] #[allow(unused_imports)] pub use gen_XrReferenceSpaceEvent::*; #[cfg(feature = "XrReferenceSpaceEventInit")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceEventInit; #[cfg(feature = "XrReferenceSpaceEventInit")] #[allow(unused_imports)] pub use gen_XrReferenceSpaceEventInit::*; #[cfg(feature = "XrReferenceSpaceType")] #[allow(non_snake_case)] mod gen_XrReferenceSpaceType; #[cfg(feature = "XrReferenceSpaceType")] #[allow(unused_imports)] pub use gen_XrReferenceSpaceType::*; #[cfg(feature = "XrRenderState")] #[allow(non_snake_case)] mod gen_XrRenderState; #[cfg(feature = "XrRenderState")] #[allow(unused_imports)] pub use gen_XrRenderState::*; #[cfg(feature = "XrRenderStateInit")] #[allow(non_snake_case)] mod gen_XrRenderStateInit; #[cfg(feature = "XrRenderStateInit")] #[allow(unused_imports)] pub use gen_XrRenderStateInit::*; #[cfg(feature = "XrRigidTransform")] #[allow(non_snake_case)] mod gen_XrRigidTransform; #[cfg(feature = "XrRigidTransform")] #[allow(unused_imports)] pub use gen_XrRigidTransform::*; #[cfg(feature = "XrSession")] #[allow(non_snake_case)] mod gen_XrSession; #[cfg(feature = "XrSession")] #[allow(unused_imports)] pub use gen_XrSession::*; #[cfg(feature = "XrSessionEvent")] #[allow(non_snake_case)] mod gen_XrSessionEvent; #[cfg(feature = "XrSessionEvent")] #[allow(unused_imports)] pub use gen_XrSessionEvent::*; #[cfg(feature = "XrSessionEventInit")] #[allow(non_snake_case)] mod gen_XrSessionEventInit; #[cfg(feature = "XrSessionEventInit")] #[allow(unused_imports)] pub use gen_XrSessionEventInit::*; #[cfg(feature = "XrSessionInit")] #[allow(non_snake_case)] mod gen_XrSessionInit; #[cfg(feature = "XrSessionInit")] #[allow(unused_imports)] pub use gen_XrSessionInit::*; #[cfg(feature = "XrSessionMode")] #[allow(non_snake_case)] mod gen_XrSessionMode; #[cfg(feature = "XrSessionMode")] #[allow(unused_imports)] pub use gen_XrSessionMode::*; #[cfg(feature = "XrSessionSupportedPermissionDescriptor")] #[allow(non_snake_case)] mod gen_XrSessionSupportedPermissionDescriptor; #[cfg(feature = "XrSessionSupportedPermissionDescriptor")] #[allow(unused_imports)] pub use gen_XrSessionSupportedPermissionDescriptor::*; #[cfg(feature = "XrSpace")] #[allow(non_snake_case)] mod gen_XrSpace; #[cfg(feature = "XrSpace")] #[allow(unused_imports)] pub use gen_XrSpace::*; #[cfg(feature = "XrSystem")] #[allow(non_snake_case)] mod gen_XrSystem; #[cfg(feature = "XrSystem")] #[allow(unused_imports)] pub use gen_XrSystem::*; #[cfg(feature = "XrTargetRayMode")] #[allow(non_snake_case)] mod gen_XrTargetRayMode; #[cfg(feature = "XrTargetRayMode")] #[allow(unused_imports)] pub use gen_XrTargetRayMode::*; #[cfg(feature = "XrView")] #[allow(non_snake_case)] mod gen_XrView; #[cfg(feature = "XrView")] #[allow(unused_imports)] pub use gen_XrView::*; #[cfg(feature = "XrViewerPose")] #[allow(non_snake_case)] mod gen_XrViewerPose; #[cfg(feature = "XrViewerPose")] #[allow(unused_imports)] pub use gen_XrViewerPose::*; #[cfg(feature = "XrViewport")] #[allow(non_snake_case)] mod gen_XrViewport; #[cfg(feature = "XrViewport")] #[allow(unused_imports)] pub use gen_XrViewport::*; #[cfg(feature = "XrVisibilityState")] #[allow(non_snake_case)] mod gen_XrVisibilityState; #[cfg(feature = "XrVisibilityState")] #[allow(unused_imports)] pub use gen_XrVisibilityState::*; #[cfg(feature = "XrWebGlLayer")] #[allow(non_snake_case)] mod gen_XrWebGlLayer; #[cfg(feature = "XrWebGlLayer")] #[allow(unused_imports)] pub use gen_XrWebGlLayer::*; #[cfg(feature = "XrWebGlLayerInit")] #[allow(non_snake_case)] mod gen_XrWebGlLayerInit; #[cfg(feature = "XrWebGlLayerInit")] #[allow(unused_imports)] pub use gen_XrWebGlLayerInit::*; #[cfg(feature = "XsltProcessor")] #[allow(non_snake_case)] mod gen_XsltProcessor; #[cfg(feature = "XsltProcessor")] #[allow(unused_imports)] pub use gen_XsltProcessor::*; #[cfg(feature = "console")] #[allow(non_snake_case)] mod gen_console; #[cfg(feature = "console")] #[allow(unused_imports)] pub use gen_console::*; #[cfg(feature = "css")] #[allow(non_snake_case)] mod gen_css; #[cfg(feature = "css")] #[allow(unused_imports)] pub use gen_css::*; #[cfg(feature = "gpu_buffer_usage")] #[allow(non_snake_case)] mod gen_gpu_buffer_usage; #[cfg(feature = "gpu_buffer_usage")] #[allow(unused_imports)] pub use gen_gpu_buffer_usage::*; #[cfg(feature = "gpu_color_write")] #[allow(non_snake_case)] mod gen_gpu_color_write; #[cfg(feature = "gpu_color_write")] #[allow(unused_imports)] pub use gen_gpu_color_write::*; #[cfg(feature = "gpu_map_mode")] #[allow(non_snake_case)] mod gen_gpu_map_mode; #[cfg(feature = "gpu_map_mode")] #[allow(unused_imports)] pub use gen_gpu_map_mode::*; #[cfg(feature = "gpu_shader_stage")] #[allow(non_snake_case)] mod gen_gpu_shader_stage; #[cfg(feature = "gpu_shader_stage")] #[allow(unused_imports)] pub use gen_gpu_shader_stage::*; #[cfg(feature = "gpu_texture_usage")] #[allow(non_snake_case)] mod gen_gpu_texture_usage; #[cfg(feature = "gpu_texture_usage")] #[allow(unused_imports)] pub use gen_gpu_texture_usage::*; web-sys-0.3.81/src/lib.rs000064400000000000000000000023321046102023000132110ustar 00000000000000//! Raw API bindings for Web APIs //! //! This is a procedurally generated crate from browser WebIDL which provides a //! binding to all APIs that browsers provide on the web. //! //! This crate by default contains very little when compiled as almost all of //! its exposed APIs are gated by Cargo features. The exhaustive list of //! features can be found in `crates/web-sys/Cargo.toml`, but the rule of thumb //! for `web-sys` is that each type has its own cargo feature (named after the //! type). Using an API requires enabling the features for all types used in the //! API, and APIs should mention in the documentation what features they //! require. #![doc(html_root_url = "https://docs.rs/web-sys/0.3")] #![no_std] #![allow(deprecated)] extern crate alloc; mod features; #[allow(unused_imports)] pub use features::*; pub use js_sys; pub use wasm_bindgen; /// Getter for the `Window` object /// /// [MDN Documentation] /// /// *This API requires the following crate features to be activated: `Window`* /// /// [MDN Documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Window #[cfg(feature = "Window")] pub fn window() -> Option { use wasm_bindgen::JsCast; js_sys::global().dyn_into::().ok() }